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.