文档

Unity Engine

Download Unity

Unity Engine

GetAssignableComponentTypes

Gets a list of the types of components that can be assigned to the specified component.
阅读时间1 分钟最后更新于 19 天前

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

interfaceType

The type to check.

listOut

The list to receive the output.

Returns

Type

Description

List<Type>The list that was passed in, containing the System.Types that can be assigned to
interfaceType
.

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

interfaceType

The type to check.

Returns

Type

Description

List<Type>A new List object containing the System.Types that can be assigned to
interfaceType
.

Remarks

Assignable components include those with the same compile-time type and those that inherit from the same compile-time type.