Unity.XR.XREAL.SingletonMonoBehaviour< T >
Inheritance diagram for Unity.XR.XREAL.SingletonMonoBehaviour< T >:
Static Public Member Functions | |
static T | CreateSingleton () |
Properties | |
static T | Singleton [get] |
Detailed Description
A generic singleton MonoBehaviour base class that ensures only one instance of the type exists in the scene.
- Type Constraints
-
T : MonoBehaviour
Member Function Documentation
◆ CreateSingleton()
|
static |
Creates or returns the singleton instance of type T .
- Returns
- The singleton instance of the type T .