ElementName override

This commit is contained in:
mnaumov
2021-06-10 12:05:30 -07:00
parent 95465b18a4
commit e1d2115cab
2 changed files with 7 additions and 0 deletions
@@ -71,9 +71,15 @@ namespace AZ
->Attribute(AZ::Edit::Attributes::NameLabelOverride, "")
->Attribute(AZ::Edit::Attributes::ContainerCanBeModified, false)
->Attribute(AZ::Edit::Attributes::AutoExpand, true)
->Attribute(AZ::Edit::Attributes::IndexedChildNameLabelOverride, &EditorMeshStats::GetLodLabel)
;
}
}
}
AZStd::string EditorMeshStats::GetLodLabel(int index) const
{
return AZStd::string::format("LOD %d", index);
}
} // namespace Render
} // namespace AZ
@@ -39,6 +39,7 @@ namespace AZ
AZ_CLASS_ALLOCATOR(EditorMeshStats, SystemAllocator, 0);
static void Reflect(ReflectContext* context);
AZStd::string GetLodLabel(int index) const;
AZStd::vector<EditorMeshStatsForLod> m_meshStatsForLod;
};