Documentation

Unity Engine

Unity Engine

GetRefRWOptional(Entity)

Obsolete. Use ComponentLookup<T>.TryGetRefRW instead. ///
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
Warning
Deprecated. This function should not be part of the public API, and will be removed in a future release.
public RefRW<T> GetRefRWOptional(Entity entity)

Parameters

entity

The referenced entity

Returns

Type

Description

RefRW<T>Returns a safe reference to the component data, or an invalid reference if
entity
does not have component
T
.