Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

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

Open
TheHelpfulHelper opened this issue Aug 15, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@TheHelpfulHelper
Copy link

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.)

@TheHelpfulHelper TheHelpfulHelper added the enhancement New feature or request label Aug 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant