Table of Contents

Interface ISingleton<T>

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

others T[]

All other instances of this singleton.

Remarks

Put your merge logic here.