Entity.TryGetScript_TScript_(TScript).md

February 25, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS.Entity

Entity.TryGetScript(TScript) Method

Gets the script with the passed TScriptSystem.Type.

public bool TryGetScript<TScript>(out TScript result)
    where TScript : Friflo.Engine.ECS.Script, new();

Type parameters

TScript

Parameters

result TScript

Returns

System.Boolean
Returns true if the entity has a script the passed TScriptSystem.Type.
Otherwise false.

Contents

  1. 0.1Friflo.Engine.ECS.Entity
  2. 1Entity.TryGetScript(TScript) Method