Skip to content

Object reference not set if the trigger is disabled #6

@JordoVR

Description

@JordoVR

Hello!

I've been using it for even more complex stuff now that it's compatible with the Unity UI and I've found that if you try calling a disabled trigger, you get an Object reference not set exception.
As the current behaviour in VRChat is to simply not do anything if the trigger is disabled, this behaviour shouldn't be too hard to replicate.

Thank you very much!

Error log:
NullReferenceException: Object reference not set to an instance of an object Iwsd.Emu_Trigger.SearchTrigger_Named (TriggerType triggerType, System.String name) (at Assets/iwsd_vrc/Tools/OnEditorEmu/Scripts/Emu_Trigger.cs:390)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions