Method ReadOnly
ReadOnly(Type)
Returns a Component
Declaration
[ExcludeFromBurstCompatTesting("Takes a managed Type")]
public static ComponentType ReadOnly(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type |
Returns
Type | Description |
---|---|
Component |
The component type |
ReadOnly(TypeIndex)
Returns a Component
Declaration
public static ComponentType ReadOnly(TypeIndex typeIndex)
Parameters
Type | Name | Description |
---|---|---|
Type |
typeIndex | The index |
Returns
Type | Description |
---|---|
Component |
The component type |
ReadOnly<T>()
Returns a Component
Declaration
[GenerateTestsForBurstCompatibility(GenericTypeArguments = new Type[] { typeof(Entity) })]
public static ComponentType ReadOnly<T>()
Returns
Type | Description |
---|---|
Component |
The component type |
Type Parameters
Name | Description |
---|---|
T | The type |