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

Method LoadSurface

Source/Engine/AI/BehaviorTree.cpp:169–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169BytesContainer BehaviorTree::LoadSurface() const
170{
171 if (WaitForLoaded())
172 return BytesContainer();
173 ScopeLock lock(Locker);
174 if (!LoadChunks(GET_CHUNK_FLAG(0)))
175 {
176 const auto data = GetChunk(0);
177 BytesContainer result;
178 result.Copy(data->Data);
179 return result;
180 }
181 LOG(Warning, "\'{0}\' surface data is missing.", ToString());
182 return BytesContainer();
183}
184
185#if USE_EDITOR
186

Callers 3

onNodeLoadedMethod · 0.45
ProcessGroupMaterialMethod · 0.45
GetLayerMethod · 0.45

Calls 3

GetChunkFunction · 0.85
ToStringFunction · 0.70
CopyMethod · 0.45

Tested by

no test coverage detected