Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

EnabledRefRW<T0>

struct in Unity.Entities


Implements interfaces:IQueryTypeParameter

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Stores a safe reference to a read-writable component enable bit. Also keeps a pointer to the chunk disabled count, which is updated when the enabled bit is written to.

Do not store outside of stack

Static Properties

Property Description
Null Null value for this reference.

Properties

Property Description
IsValid Property that returns true if the reference is valid, false otherwise.
ValueRO Property to get enabled value of this reference (true if enabled, false otherwise).
ValueRW Property to get or set enabled value of this reference (true if enabled, false otherwise).

Constructors

Constructor Description
EnabledRefRW_1 Constructor for writable enable reference to enableable component.

Operators

Operator Description
EnabledRefRO<T> Convert into a read-only version EnabledRefRO of this EnabledRefRW