Table of Contents

Method FindAndConnectInstance

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

FindAndConnectInstance()

Finds an instance of the given type in the open scenes and assign it to the instance field of the Singleton<T>.

[Version(3, 0, 0)]
public static Singleton.FindResult FindAndConnectInstance()

Returns

Singleton.FindResult

The result of the search. Only FoundOne is considered a success.

Remarks

You should generally not need to call this method; this is used by code that span prefabs.