M100FAT
2 years agoExplorer
ActiveStateTracker toggles gameobjects that aren't theirs
Some context: Activestatetracker is an oculus script that turns the children of certain objects off or on.
Hello,
I was noticing that something was turning some of my objects off at start. After using the "OnDisable" trick (add a script that logs something on OnDisable so the callstack will tell you what turned it off) I found that ActiveStateTracker turned it off. However the object in question isn't a child of any ActiveStateTracker. Has anyone come across this? Work around isn't very hard, just turn it on again but it is annoying.
Stacktrace:
Someone disabled me!
UnityEngine.Debug:Log (object)
WhoChangedMe:OnDisable () (at Assets/WhoChangedMe.cs:14)
Oculus.Interaction.ActiveStateTracker:SetDependentsActive (bool) (at ./Library/PackageCache/com.meta.xr.sdk.interaction@60.0.0/Runtime/Scripts/Interaction/Core/ActiveStateTracker.cs:92)
Oculus.Interaction.ActiveStateTracker:Start () (at ./Library/PackageCache/com.meta.xr.sdk.interaction@60.0.0/Runtime/Scripts/Interaction/Core/ActiveStateTracker.cs:77)