CanBeInstantiated
Returns true if the specified type is instantiatable.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.Properties
- Assembly: UnityEngine.PropertiesModule
CanBeInstantiated(Type)
Returns if the specified type is instantiatable.
truepublic static bool CanBeInstantiated(Type type)
Parameters
The type to query.
Returns
Type | Description |
|---|---|
| bool | |
Remarks
Instantiatable is defined as either having a default or implicit constructor or having a registered instantiation method.
CanBeInstantiated<T>()
Returns if type is instantiatable.
trueTpublic static bool CanBeInstantiated<T>()
Returns
Type | Description |
|---|---|
| bool | |
Remarks
Instantiatable is defined as either having a default or implicit constructor or having a registered instantiation method.