Struct ComponentType
A struct to define a component including how it's accessed and what type of component it is
Namespace: Unity.Entities
Assembly: solution.dll
Syntax
[GenerateTestsForBurstCompatibility]
public struct ComponentType
Constructors
Name | Description |
---|---|
Component |
Create a component type |
Fields
Name | Description |
---|---|
Access |
The way the component type will be accessed |
Type |
A unique index of the component type |
Properties
Name | Description |
---|---|
Has |
True if any of the fields in the component type are type Entity |
Has |
The component type contains a Native |
Is |
True if the component type is a IBuffer |
Is |
True if the component type is flagged as a chunk component type |
Is |
True if the component type is appropriate for chunk serialization. Such types are blittable without containing pointer types or have been decorated with Chunk |
Is |
Bitflag set for component types inheriting from ICleanup |
Is |
True if the component type is a ICleanup |
Is |
True if the component type is a ICleanup |
Is |
True if the component type is a IComponent |
Is |
True if the component type is a IEnableable |
Is |
True if the component type is a managed component |
Is |
True if the component type is a IShared |
Is |
Obsolete. Use Is |
Is |
Obsolete. Use Is |
Is |
True if the component type does not contain actual fields or data |
Methods
Name | Description |
---|---|
Chunk |
Returns a Component |
Chunk |
Returns a Component |
Chunk |
Returns a Component |
Chunk |
Returns a Component |
Chunk |
Returns a Component |
Chunk |
Returns a Component |
Combine(params Component |
Combine multiple array of component type into one. Duplicate types are removed. It will allocate an array containing all component type. Useful for creating queries during initialization of systems. |
Compare |
Returns the sort order this component type compared to another |
Equals(object) | Checks to see if an object is equal to this component type. |
Equals(Component |
Checks if this component type has the same Type |
Exclude(Type) | Returns a Component |
Exclude(Type |
Returns a Component |
Exclude<T>() | Returns a Component |
From |
Returns a Component |
Get |
Gets the hash code for this component type |
Get |
|
Read |
Returns a Component |
Read |
Returns a Component |
Read |
Returns a Component |
Read |
Returns a Component |
Read |
Returns a Component |
Read |
Returns a Component |
To |
Returns a fixed string of the component type |
To |
Returns a managed string of the component type |
Operators
Name | Description |
---|---|
operator ==(Component |
Evaluates if two component types are equal based on Type |
operator >(Component |
Evaluates if one component type is greater than the the other. |
implicit operator Component |
Creates a new component type based on the type passed in |
operator !=(Component |
Evaluates if two component types are not equal based on Type |
operator <(Component |
Evaluates if one component type is less than the the other first by Type |