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

Method GetAssetsInternal

Source/Engine/Content/Content.cpp:901–910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

899#include "Engine/Scripting/ManagedCLR/MUtils.h"
900
901void* Content::GetAssetsInternal()
902{
903 AssetsLocker.Lock();
904 MArray* result = MCore::Array::New(Asset::TypeInitializer.GetClass(), Assets.Count());
905 int32 i = 0;
906 for (const auto& e : Assets)
907 MCore::GC::WriteArrayRef(result, e.Value->GetOrCreateManagedInstance(), i++);
908 AssetsLocker.Unlock();
909 return result;
910}
911
912#endif
913

Callers

nothing calls this directly

Calls 6

LockMethod · 0.80
UnlockMethod · 0.80
NewFunction · 0.50
GetClassMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected