Summary
A simple singleton for
UnityEngine.Component types.- Assembly
- FlexiMotion
.dll - Namespace
- FlexiMotion
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["ComponentSingleton<T>"]
class Type type-node
Syntax
public static class ComponentSingleton<T> where T : Component
Type Parameters
| Name | Description |
|---|---|
| T |
Properties
| Name | Value | Summary |
|---|---|---|
| ExistingInstance | T |
Returns the
FlexiMotion.ComponentSingleton`1.Instance if it has already been created.static
|
| HasInstance | bool |
Has the
FlexiMotion.ComponentSingleton`1.Instance been created?static
|
| Instance | T |
Creates a new
UnityEngine.GameObject with a T component when first accessed.static
|