Entity.Get_T_().md

March 19, 2022 ยท View on GitHub

DefaultEcs

DefaultEcs.Entity

Entity.Get() Method

Gets the component of type T on the current Entity.

public ref T Get<T>();

Type parameters

T

The type of the component.

Returns

T
A reference to the component.

Exceptions

System.Exception
Entity was not created from a World or does not have a component of type T.

Contents

  1. 0.1DefaultEcs.Entity
  2. 1Entity.Get() Method