#Is there a way to use the `PlayerLoop`
1 messages · Page 1 of 1 (latest)
Have you tried all of them or just guessing by their name?
@neat solstice Tried all of what?
One other point of context: I am not working in a MonoBehaviour; ECS ComponentSystemGroup in this case, but the issue is not specific to ECS.
The subsystems in GetCurrentPlayerLoop that are around the area you want to insert your hook.
@ember geyser I'm pretty sure there is a XR subsystem that happens around before render, but maybe only if you have XR packages installed.
@neat solstice There are no subsystems returned from GetCurrentPlayerLoop that are around the area I want to insert into; that is my issue. GetCurrentPlayerLoop is only returning subsystems up until the point frame rate matching (red arrow in screenshot) would occur before rendering.
How have you confirmed that? I wouldn't know of a way to check that without trying each one.
When I couldn't find the necessary subsystem in the GetCurrentPlayerLoop return I dumped all of them and found that the before render, render, and post render subsystems are not there.
Well, there's clearly some subsystems in there that happen at the end of a frame, like Profiler.EndFrame and TriggerEndOfFrameCallbacks, so that must mean there's some point where it goes from before render to after render.
The subsystem I was thinking of was this was:
UnityEngine.PlayerLoop.PostLateUpdate+XRPostLateUpdate.
Have you tried this one?