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

OnPermissionGranted #1

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

OnPermissionGranted #1

TuskAW opened this issue Nov 22, 2023 · 0 comments

Comments

@TuskAW
Copy link

TuskAW commented Nov 22, 2023

File: MagicLeapMarkerTracker.cs

In OnPermissionGranted, the variable _permissionGranted is set after the _trackOnStart check:

if (_trackOnStart)
{
StartTracking();
}

_permissionGranted = true;

However, if _trackOnStart is true, StartTracking() checks if _permissionGranted is false, but because it is set to true after the _trackOnStart check, an error shows up in the log. _permissionGranted needs to be set before the _trackOnStart check:

_permissionGranted = true;

if (_trackOnStart)
{
StartTracking();
}

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