Skip to content

Add a method attribute to export private methods for use in SendCustomEventDelayed / SendCustomNetworkEvent #112

@TheHelpfulHelper

Description

@TheHelpfulHelper

Feature Description:
In order for a method/event to be accessible to SendCustomEventDelayed / SendCustomNetworkEvent it needs to be exported.
However making it public, means that now all other scripts can also call this method. This makes the intent of the method unclear (Is it just public so you can call it with SCED/SCNE or am I allowed to call it from other scripts as well?). Adding an attribute like that would make it clear that youre not "supposed" to call the method from another script. (Ofcourse you could still call it with SCE from another behaviour, but the main argument is showing use-intent for people using UdonSharp and for Intellisense. sort of like [SerializeField] for variables.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions