Repository navigation
Extensions
Andrew Rumak edited this page Sep 15, 2023
·
7 revisions
I will fill this page someday...
In the meantime, you can enable Intellisense to display self-documentation of these methods by following these steps: In Unity Editor, open Edit > Preferences > External Tools and enable "Generate .csproj files for" Registry packages and Git packages, then click "Regenerate project files". The next time you open Visual Studio, Intellisense will show you comments for MyBox's extension methods.
TResult Pipe<T, TResult>(this T argument, Func<T, TResult> function) β Take an object and pass it as an argument to a function
T PipeKeep<T, TResult>(this T argument, Func<T, TResult> function) β Take an object, pass it as an argument to a function, return the object
UnityEvent Once(this UnityEvent source, UnityAction action) β Adds a listener that executes only once to the UnityEvent
Also for different UnityEvents with up to 4 arguments (UnityEvent<T0, T1, T2, T3>)