Forum Discussion

M100FAT's avatar
M100FAT
Explorer
2 years ago

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

  • Big_Flex's avatar
    Big_Flex
    Meta Employee

    Hi M100FAT, thanks for raising this issue! I've passed it to the Interaction SDK team for them to investigate. 

  • Hey M100FAT !  Do you have a small project you can share that shows this so I can try to repro it?

    Thanks!

    • M100FAT's avatar
      M100FAT
      Explorer

      At the moment I'm afraid I don't really have time for that, I will however when I do have time.

  • kpfeifer's avatar
    kpfeifer
    Honored Guest

    Actually maybe even a screenshot of your hierarchy that contains the ActiveStateTracker and the object in question would be helpful.

    • M100FAT's avatar
      M100FAT
      Explorer

      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.