文档

Unity Engine

Unity Engine

EnabledRefRO<T>

Stores a safe reference to a read-only component enable bit.
阅读时间1 分钟最后更新于 19 天前

Definition

public readonly struct EnabledRefRO<T> : IQueryTypeParameter where T : unmanaged, IEnableableComponent

Remarks

Do not store outside of stack

Constructors

Constructor

Description

EnabledRefRO`1(Unity.Entities.SafeBitRef)Constructor for read-only enable reference to enableable component.

Properties

Property

Description

IsValidProperty that returns true if the reference is valid, false otherwise.
ValueROProperty to get enabled value of this reference (true if enabled, false otherwise).

Static Properties

Property

Description

NullNull value for this reference.