ElementName override
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user