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

Method GetActors

Source/Engine/Level/Level.cpp:1959–1967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1957}
1958
1959Array<Actor*> Level::GetActors(const MClass* type, bool activeOnly)
1960{
1961 Array<Actor*> result;
1962 CHECK_RETURN(type, result);
1963 ScopeLock lock(ScenesLock);
1964 for (int32 i = 0; i < Scenes.Count(); i++)
1965 ::GetActors(type, type->IsInterface(), Scenes[i], activeOnly, result);
1966 return result;
1967}
1968
1969Array<Script*> Level::GetScripts(const MClass* type, Actor* root)
1970{

Callers

nothing calls this directly

Calls 2

GetActorsFunction · 0.70
CountMethod · 0.45

Tested by

no test coverage detected