Click or drag to resize

SingletonT Class

Singleton pattern class. This class detects if T is a MonoBehavior and will make a containing GameObject.
Inheritance Hierarchy
SystemObject
  IBM.Watson.DeveloperCloud.UtilitiesSingletonT

Namespace:  IBM.Watson.DeveloperCloud.Utilities
Assembly:  unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class Singleton<T>
where T : class

Type Parameters

T
The typename of the class to create as a singleton object.

The SingletonT type exposes the following members.

Constructors
  NameDescription
Public methodSingletonT
Initializes a new instance of the SingletonT class
Top
Properties
  NameDescription
Public propertyStatic memberInstance
Returns the Singleton instance of T.
Top
See Also