Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

EntityManager.GetAssignableComponentTypes

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public List<Type> GetAssignableComponentTypes(Type interfaceType, List<Type> listOut);

Parameters

Parameter Description
interfaceType The type to check.
listOut The list to receive the output.

Returns

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

Description

Gets a list of the types of components that can be assigned to the specified component.

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


Declaration

public List<Type> GetAssignableComponentTypes(Type interfaceType);

Parameters

Parameter Description
interfaceType The type to check.

Returns

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

Description

Gets a list of the types of components that can be assigned to the specified component.

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