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

Method Script

Source/Engine/Scripting/Script.cpp:23–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#endif
22
23Script::Script(const SpawnParams& params)
24 : SceneObject(params)
25 , _enabled(true)
26 , _tickFixedUpdate(false)
27 , _tickUpdate(false)
28 , _tickLateUpdate(false)
29 , _tickLateFixedUpdate(false)
30 , _wasAwakeCalled(false)
31 , _wasStartCalled(false)
32 , _wasEnableCalled(false)
33{
34#if USE_EDITOR
35 _executeInEditor = GetClass()->HasAttribute(StdTypesContainer::Instance()->ExecuteInEditModeAttribute);
36#endif
37}
38
39void Script::SetEnabled(bool value)
40{

Callers

nothing calls this directly

Calls 3

GetClassFunction · 0.50
InstanceClass · 0.50
HasAttributeMethod · 0.45

Tested by

no test coverage detected