GetAssignableComponentTypes
Gets a list of the types of components that can be assigned to the specified component.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
GetAssignableComponentTypes(Type, List<Type>)
Gets a list of the types of components that can be assigned to the specified component.
[ExcludeFromBurstCompatTesting("Takes managed Type")]public List<Type> GetAssignableComponentTypes(Type interfaceType, List<Type> listOut)
Parameters
Returns
Type | Description |
|---|---|
| List<Type> | The list that was passed in, containing the System.Types that can be assigned to |
Remarks
Assignable components include those with the same compile-time type and those that inherit from the same compile-time type.
GetAssignableComponentTypes(Type)
Gets a list of the types of components that can be assigned to the specified component.
[ExcludeFromBurstCompatTesting("Takes managed Type")]public List<Type> GetAssignableComponentTypes(Type interfaceType)
Parameters
The type to check.
Returns
Type | Description |
|---|---|
| List<Type> | A new List object containing the System.Types that can be assigned to |
Remarks
Assignable components include those with the same compile-time type and those that inherit from the same compile-time type.