CyanLaser / CyanEmu

CyanEmu is a VRChat client emulator in Unity. Includes a player controller with interact system. Works with SDK2 and SDK3.
MIT License
360 stars 15 forks source link

UI Events and Interacts both execute, but only UI will in VRChat #30

Open CyanLaser opened 3 years ago

CyanLaser commented 3 years ago

Vowgan:

If you have a trigger collider on a UI button that has an Interact script on it as well as a SendCustomEvent for the button (with everything on the Default layer), in VRChat, the trigger collider blocks the use of the UI button so that the Interact fires instead of the button, however with CyanEmu both of these events fire, the interact on ClickDown, and the UI on ClickUp.
My case in entirely dumb and weird and I've fixed it by changing to a not dumb setup, but I don't know what this means for the raycasting interaction in CyanEmu, as it seems to be interacting with both on the different click types despite the collider blocking interaction in VRChat.