Closed xywang01 closed 2 years ago
This is a common unity issue, not related to bmlTUX. It means you have two event system components somewhere in the scene. You can use Unity’s search tools to help diagnose the problem. You only need one ever. They collect input events from the user, and shouldn’t be collected twice. You should keep the event system that is the “longest lived” in the scene. So if one is attached to a game object that won’t survive the whole scene, maybe delete it, and create a new one at the root of your scene that lasts for the lifetime of your scene.
On Mar 23, 2022, at 10:15 AM, Michael W @.***> wrote:
Hi Adam
After updating to v3.0.1, Unity will start complaining about the following:
"There are 2 event systems in the scene. Please ensure there is always exactly one event system in the scene UnityEngine.EventSystems.EventSystem:Update ()".
This message would disappear if I were to disable either the experiment runner object or the SteamVR Player object.
https://user-images.githubusercontent.com/15709552/159719623-34a1ed7a-7e81-4ce2-9f09-a320e675cdd4.png This does not affect the execution of the experiment; rather, it just produces thousands of warnings. Is this something that others also experience? Thanks!
— Reply to this email directly, view it on GitHub https://github.com/BioMotionLab/TUX/issues/65, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKKFU45XT4HJ53ZYX3XOMEDVBMRO7ANCNFSM5ROFW7LA. You are receiving this because you are subscribed to this thread.
For those of you who encounter a similar issue, this is due to the conflict between bmlTUX and SteamVR's InputModule. To stop the warnings from spamming your Console, you may consider disabling the Event System in SteamVR's Player prefab.
YOu can find the attached Event System through: Player -> InputModule -> Event System
I am not sure about the repercussions of disabling SteamVR's event system, but it might potentially affect using the UI component of SteamVR.
Just a reminder that you can provide your own GUI Prefab to the design file via settings. So you can copy my prefab, remove the event system, and point the design file to this new prefab, allowing you to use the SteamVR one if you prefer.
Adam
On Mar 23, 2022, at 5:58 PM, Michael W @.***> wrote:
Closed #65 https://github.com/BioMotionLab/TUX/issues/65.
— Reply to this email directly, view it on GitHub https://github.com/BioMotionLab/TUX/issues/65#event-6295141502, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKKFU4Z5RLPF2BB4GQUZSW3VBOHYXANCNFSM5ROFW7LA. You are receiving this because you commented.
Another option is to make a script with FindObjectsOfType
On Mar 23, 2022, at 6:35 PM, Adam Bebko @.***> wrote:
Just a reminder that you can provide your own GUI Prefab to the design file via settings. So you can copy my prefab, remove the event system, and point the design file to this new prefab, allowing you to use the SteamVR one if you prefer.
Adam
On Mar 23, 2022, at 5:58 PM, Michael W @. @.>> wrote:
Closed #65 https://github.com/BioMotionLab/TUX/issues/65.
— Reply to this email directly, view it on GitHub https://github.com/BioMotionLab/TUX/issues/65#event-6295141502, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKKFU4Z5RLPF2BB4GQUZSW3VBOHYXANCNFSM5ROFW7LA. You are receiving this because you commented.
Hi Adam
After updating to v3.0.1, Unity will start complaining about the following:
"There are 2 event systems in the scene. Please ensure there is always exactly one event system in the scene UnityEngine.EventSystems.EventSystem:Update ()".
This message would disappear if I were to disable either the experiment runner object or the SteamVR Player object.
This does not affect the execution of the experiment; rather, it just produces thousands of warnings. Is this something that others also experience? Thanks!