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

Method GetPath

Source/Engine/Content/BinaryAsset.cpp:468–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466#endif
467
468StringView BinaryAsset::GetPath() const
469{
470#if USE_EDITOR
471 return Storage ? StringView(Storage->GetPath()) : StringView::Empty;
472#else
473 // In build all assets are packed into packages so use ID for original path lookup
474 return Content::GetRegistry()->GetEditorAssetPath(_id);
475#endif
476}
477
478uint64 BinaryAsset::GetMemoryUsage() const
479{

Callers 1

AddDependencyMethod · 0.45

Calls 2

StringViewClass · 0.50
GetEditorAssetPathMethod · 0.45

Tested by

no test coverage detected