CanBeInstantiated
Returns true if the specified type is instantiatable.
阅读时间1 分钟最后更新于 1 个月前
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.