TypeTraits<T>
Helper class to avoid paying the cost of runtime type lookups. This is also used to abstract underlying type info in the runtime (e.g. RuntimeTypeHandle vs StaticTypeReg)
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Class
- Namespace: Unity.Properties
- Assembly: UnityEngine.PropertiesModule
public static class TypeTraits<T>
Static Properties
Property | Description |
|---|---|
| CanBeNull | Gets a value indicating whether |
| IsAbstract | Gets a value indicating whether |
| IsAbstractOrInterface | Gets a value indicating whether |
| IsArray | Gets a value indicating whether |
| IsContainer | Gets a value indicating whether |
| IsEnum | Gets a value indicating whether |
| IsEnumFlags | Gets a value indicating whether |
| IsInterface | Gets a value indicating whether |
| IsLazyLoadReference | Gets a value indicating whether |
| IsMultidimensionalArray | Gets a value indicating whether |
| IsNullable | Gets a value indicating whether |
| IsObject | Gets a value indicating whether |
| IsPrimitive | Gets a value indicating whether |
| IsPrimitiveOrString | Gets a value indicating whether |
| IsString | Gets a value indicating whether |
| IsUnityObject | Gets a value indicating whether |
| IsValueType | Gets a value indicating whether |