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

Method RenameAsset

Source/Engine/Content/Cache/AssetsCache.cpp:551–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551bool AssetsCache::RenameAsset(const StringView& oldPath, const StringView& newPath)
552{
553 bool result = false;
554 ASSETS_CACHE_LOCK();
555 for (auto i = _registry.Begin(); i.IsNotEnd(); ++i)
556 {
557 if (i->Value.Info.Path == oldPath)
558 {
559 i->Value.Info.Path = newPath;
560 _isDirty = true;
561 result = true;
562 break;
563 }
564 }
565 return result;
566}
567
568#endif
569

Callers

nothing calls this directly

Calls 2

BeginMethod · 0.45
IsNotEndMethod · 0.45

Tested by

no test coverage detected