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

Method LoadSurface

Source/Engine/Particles/ParticleEmitterFunction.cpp:112–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112bool ParticleEmitterFunction::LoadSurface(ParticleEmitterGraphCPU& graph, bool loadMeta)
113{
114 if (WaitForLoaded())
115 return true;
116 ScopeLock lock(Locker);
117 if (HasChunk(0))
118 {
119 if (!LoadChunks(GET_CHUNK_FLAG(0)))
120 {
121 const auto surfaceChunk = GetChunk(0);
122 MemoryReadStream stream(surfaceChunk->Get(), surfaceChunk->Size());
123 return graph.Load(&stream, loadMeta);
124 }
125 }
126 return true;
127}
128
129#if USE_EDITOR
130

Callers

nothing calls this directly

Calls 6

HasChunkFunction · 0.85
GetChunkFunction · 0.85
GetMethod · 0.45
SizeMethod · 0.45
LoadMethod · 0.45
CopyMethod · 0.45

Tested by

no test coverage detected