Entity.GetScript_TScript_().md

February 25, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS.Entity

Entity.GetScript() Method

Get the script of the passed TScriptSystem.Type.

public TScript GetScript<TScript>()
    where TScript : Friflo.Engine.ECS.Script, new();

Type parameters

TScript

Returns

TScript
null if the entity has no script of the passed TScriptSystem.Type.

Remarks

Note: Use GetEntityScript(Entity, ScriptType) as non generic alternative.

Contents

  1. 0.1Friflo.Engine.ECS.Entity
  2. 1Entity.GetScript() Method
  3. 1.1Remarks