Interface ISingleton<T>
- Namespace
- JLChnToZ.VRC.Foundation
A singleton interface for UdonSharpBehaviour.
public interface ISingleton<T> where T : UdonSharpBehaviour, ISingleton<T>
Type Parameters
T
- Extension Methods
Remarks
You will need to implement this within #IF !COMPILER_UDONSHARP block or the UdonSharp compiler will throw error.
Methods
Merge(T[])
This method will be called when pre-processor gathers all other instances and before removing them.
void Merge(T[] others)
Parameters
othersT[]All other instances of this singleton.
Remarks
Put your merge logic here.