Jump to content

Renan Viewport

Verified Members
  • Posts

    2
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi I tried to use Common.userPresence and tried to use the SystemEvent, and could not get the information of when the user removes the headset, I'm using a FOcus 3 but I can do a test on a XR Elite as well: void Start() { Wave.Essence.Events.SystemEvent.Listen(WVR_EventType.WVR_EventType_DeviceResume, OnEventResume1); Wave.Essence.Events.SystemEvent.Listen(WVR_EventType.WVR_EventType_DeviceSuspend, OnEventResume2); Wave.Essence.Events.SystemEvent.Listen(WVR_EventType.WVR_EventType_DeviceInfoUpdate, OnEventResume3); Wave.Essence.Events.SystemEvent.Listen(WVR_EventType.WVR_EventType_RenderingToBePaused, OnEventResume4); Wave.Essence.Events.SystemEvent.Listen(WVR_EventType.WVR_EventType_RenderingToBeResumed, OnEventResume5); } private void OnEventResume1(WVR_Event_t systemEvent) { Debug.LogError("--------------- CALLED EVENT 1"); } private void OnEventResume2(WVR_Event_t systemEvent) { Debug.LogError("--------------- CALLED EVENT 2"); } private void OnEventResume3(WVR_Event_t systemEvent) { Debug.LogError("--------------- CALLED EVENT 3"); } private void OnEventResume4(WVR_Event_t systemEvent) { Debug.LogError("--------------- CALLED EVENT 4"); } private void OnEventResume5(WVR_Event_t systemEvent) { Debug.LogError("--------------- CALLED EVENT 5"); }
  2. I tried to use this to test and I could not make it work on 5.4.0, here some tests I've made: void Start() { Wave.Essence.Events.SystemEvent.Listen(WVR_EventType.WVR_EventType_DeviceResume, OnEventResume1); Wave.Essence.Events.SystemEvent.Listen(WVR_EventType.WVR_EventType_DeviceSuspend, OnEventResume2); Wave.Essence.Events.SystemEvent.Listen(WVR_EventType.WVR_EventType_DeviceInfoUpdate, OnEventResume3); Wave.Essence.Events.SystemEvent.Listen(WVR_EventType.WVR_EventType_RenderingToBePaused, OnEventResume4); Wave.Essence.Events.SystemEvent.Listen(WVR_EventType.WVR_EventType_RenderingToBeResumed, OnEventResume5); } private void OnEventResume1(WVR_Event_t systemEvent) { Debug.LogError("--------------- CALLED EVENT 1"); } private void OnEventResume2(WVR_Event_t systemEvent) { Debug.LogError("--------------- CALLED EVENT 2"); } private void OnEventResume3(WVR_Event_t systemEvent) { Debug.LogError("--------------- CALLED EVENT 3"); } private void OnEventResume4(WVR_Event_t systemEvent) { Debug.LogError("--------------- CALLED EVENT 4"); } private void OnEventResume5(WVR_Event_t systemEvent) { Debug.LogError("--------------- CALLED EVENT 5"); }
×
×
  • Create New...