Method GetDescendantCount
GetDescendantCount(TypeIndex)
Returns how many component types are known to the Type
Declaration
[GenerateTestsForBurstCompatibility(GenericTypeArguments = new Type[] { typeof(Entity) })]
public static int GetDescendantCount(TypeIndex typeIndex)
Parameters
Type | Name | Description |
---|---|---|
Type |
typeIndex | Parent type |
Returns
Type | Description |
---|---|
int | Returns count of component types inheriting from typeIndex's component type |