Forum Discussion
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)5 Replies
Replies have been turned off for this discussion
- kurtisaurusExplorer
Hey M100FAT ! Do you have a small project you can share that shows this so I can try to repro it?
Thanks!
- M100FATExplorer
At the moment I'm afraid I don't really have time for that, I will however when I do have time.
- kpfeiferHonored Guest
Actually maybe even a screenshot of your hierarchy that contains the ActiveStateTracker and the object in question would be helpful.
- M100FATExplorer
Hello, thanks for your reply, if I view references in Unity it tells me the pokes and grabs in the OVR rig on the hands have the activestatetrackers, the object Appearing room is the object that is getting toggled.
One of the children of the appearing room is a pokable item which may be relevant.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device