List all current appstates

Is it possible to get a text list of the currently attached app states and if they are enabled or not? This is for debugging purposes.

No, there isn’t. It’s not entirely trivial to put it together either without some caveats, too… since an app state can be in one of three different arrays depending on some things.

Thanks. Am I wrong thinking it would be something like the protected getStates() method, but return all three arraylists? Would that be bad to call from the main render thread?

@8Keep123 said: Thanks. Am I wrong thinking it would be something like the protected getStates() method, but return all three arraylists? Would that be bad to call from the main render thread?

Extra synchronization would have to be added. The lists would have to be copied into a single list for returning, etc…

Really it might be easier just to add logging to your app states when that are attached/detached and then go back through the log to match them up.

1 Like

Or you could set a debug breakpoint and just look at the lists in the debugger.

1 Like

Thanks, I completely forgot about that… i’ll use breakpoints.