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

Method GetScripts

Source/Engine/Level/Actor.cpp:723–739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723Array<Script*> Actor::GetScripts(const MClass* type) const
724{
725 Array<Script*> result;
726 if (type->IsInterface())
727 {
728 for (auto script : Scripts)
729 if (script->GetClass()->HasInterface(type))
730 result.Add(script);
731 }
732 else
733 {
734 for (auto script : Scripts)
735 if (script->GetClass()->IsSubClassOf(type))
736 result.Add(script);
737 }
738 return result;
739}
740
741void Actor::SetIsActive(bool value)
742{

Callers

nothing calls this directly

Calls 4

HasInterfaceMethod · 0.45
GetClassMethod · 0.45
AddMethod · 0.45
IsSubClassOfMethod · 0.45

Tested by

no test coverage detected