MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / AddScript

Function AddScript

Source/Engine/Level/Actor.h:360–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358 /// <returns>The created script instance, null otherwise.</returns>
359 template<typename T>
360 T* AddScript()
361 {
362 auto script = New<T>();
363 script->SetParent(this);
364 return script;
365 }
366
367public:
368 /// <summary>

Callers 1

Calls 1

SetParentMethod · 0.45

Tested by

no test coverage detected