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.