Entity.Set_T_().md

March 19, 2022 ยท View on GitHub

DefaultEcs

DefaultEcs.Entity

Entity.Set() Method

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

public void Set<T>();

Type parameters

T

The type 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() Method