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