Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

MarkerTracking Permission #2

Open
TuskAW opened this issue Nov 22, 2023 · 0 comments
Open

MarkerTracking Permission #2

TuskAW opened this issue Nov 22, 2023 · 0 comments

Comments

@TuskAW
Copy link

TuskAW commented Nov 22, 2023

File: MagicLeapMarkerTracker.cs

The MLPermission.MarkerTracking permission isn't a dangerous one, so it will be better and faster to replace the call to RequestPermissions() in the Start method with the following:

        if( !MLPermissions.CheckPermission( MLPermission.MarkerTracking ).IsOk )
        {
            RequestPermissions();
        }
        else
        {
            _permissionGranted = true;
        }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant