Skip to main content
Participant
March 26, 2024

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)
    This topic has been closed for replies.

    5 replies

    BigFlex
    Meta Employee
    March 26, 2024

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

    New Participant
    March 28, 2024

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

    Thanks!

    M100FATAuthor
    Participant
    April 2, 2024

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

    kpfeifer
    New Participant
    March 29, 2024

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

    M100FATAuthor
    Participant
    April 2, 2024

    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.