Instantiate
Creates a new instance of the specified T.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.Properties
- Assembly: UnityEngine.PropertiesModule
Instantiate<T>()
Creates a new instance of the specified .
Tpublic static T Instantiate<T>()
Returns
Type | Description |
|---|---|
| T | A new instance of the |
Instantiate<T>(Type)
Creates a new instance of the given type type and returns it as .
Tpublic static T Instantiate<T>(Type derivedType)
Parameters
The type we want to create a new instance of.
Returns
Type | Description |
|---|---|
| T | a new instance of the |