Documentation

Unity Engine


Unity Engine


GetComponentDataRW

Gets the value of a component for an entity associated with a system.
Read time 1 minuteLast updated 3 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

GetComponentDataRW<T>(SystemHandle)

Gets the value of a component for an entity associated with a system.
public RefRW<T> GetComponentDataRW<T>(SystemHandle system) where T : unmanaged, IComponentData

Parameters

The system handle.

Returns

Type

Description

RefRW<T>A RefRW<T> struct of type T containing access to the component value.

GetComponentDataRW<T>(Entity)

Gets the value of a component for an entity.
public RefRW<T> GetComponentDataRW<T>(Entity entity) where T : unmanaged, IComponentData

Parameters

entity

The entity.

Returns

Type

Description

RefRW<T>A RefRW<T> struct of type T containing access to the component value.