Entity.Set_T_(T).md

March 19, 2022 ยท View on GitHub

DefaultEcs

DefaultEcs.Entity

Entity.Set(T) Method

Sets the value of the component of type T on the current Entity.
This method is not thread safe.

public void Set<T>(in T component);

Type parameters

T

The type of the component.

Parameters

component T

The value of the component.

Exceptions

System.InvalidOperationException
Entity was not created from a World.

System.InvalidOperationException
Max number of component of type T reached.

Contents

  1. 0.1DefaultEcs.Entity
  2. 1Entity.Set(T) Method