Struct RefRO<T>
ReadOnlyRef stores a safe read-only reference to a component data.
Implements
Namespace: Unity.Entities
Assembly: Unity.Entities.dll
Syntax
public readonly struct RefRO<T> : IQueryTypeParameter where T : struct, IComponentData
Type Parameters
Name | Description |
---|---|
T | Type of this component |
Constructors
Name | Description |
---|---|
Ref |
Stores a safe reference to a component from an array of components at the index. |
Properties
Name | Description |
---|---|
Is |
Property that returns true if the reference is valid, false otherwise. |
Value |
Returns a read-only reference to the component value itself. |
Methods
Name | Description |
---|---|
Optional(Native |
Stores a safe reference to a component from an array of components at the index. If the array is empty stores a null reference. |