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

Method GetScripts

Source/Engine/Level/Level.cpp:1969–1981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1967}
1968
1969Array<Script*> Level::GetScripts(const MClass* type, Actor* root)
1970{
1971 Array<Script*> result;
1972 CHECK_RETURN(type, result);
1973 ScopeLock lock(ScenesLock);
1974 const bool isInterface = type->IsInterface();
1975 if (root)
1976 ::GetScripts(type, isInterface, root, result);
1977 else
1978 for (int32 i = 0; i < Scenes.Count(); i++)
1979 ::GetScripts(type, isInterface, Scenes[i], result);
1980 return result;
1981}
1982
1983Scene* Level::FindScene(const Guid& id)
1984{

Callers

nothing calls this directly

Calls 2

GetScriptsFunction · 0.70
CountMethod · 0.45

Tested by

no test coverage detected