Refactor Asset::GetReferences to support file path references

This commit is contained in:
Wojtek Figat
2024-05-08 15:54:37 +02:00
parent b91f51fb46
commit 66b828ae92
29 changed files with 121 additions and 135 deletions

View File

@@ -1042,12 +1042,12 @@ void MaterialParams::Save(BytesContainer& data, const Array<SerializedMaterialPa
#if USE_EDITOR
void MaterialParams::GetReferences(Array<Guid>& output) const
void MaterialParams::GetReferences(Array<Guid>& assets) const
{
for (int32 i = 0; i < Count(); i++)
{
if (At(i)._asAsset)
output.Add(At(i)._asAsset->GetID());
assets.Add(At(i)._asAsset->GetID());
}
}

View File

@@ -417,13 +417,11 @@ public:
public:
#if USE_EDITOR
/// <summary>
/// Gets the asset references (see Asset.GetReferences for more info).
/// </summary>
/// <param name="output">The output.</param>
void GetReferences(Array<Guid>& output) const;
/// <param name="assets">The output assets.</param>
void GetReferences(Array<Guid>& assets) const;
#endif
bool HasContentLoaded() const;