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

BufferLookup<T0>.GetEnabledRefROOptional

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

Declaration

public EnabledRefRO<T2> GetEnabledRefROOptional(Entity entity);

Parameters

Parameter Description
entity The referenced entity

Returns

EnabledRefRO<T2> Returns a safe reference to the component enabled state. If the component doesn't exist, returns a default EnabledRefRO<T0>.

Description

Gets a safe reference to the component enabled state.