Add utility Copy option for various labels in assets editors

This commit is contained in:
Wojciech Figat
2022-03-22 17:16:15 +01:00
parent 885d2f0771
commit 832a4bf86a
5 changed files with 43 additions and 15 deletions

View File

@@ -46,7 +46,7 @@ namespace FlaxEditor.Windows.Assets
var group = layout.Group("General");
group.Label("Format: " + texture.Format);
group.Label(string.Format("Size: {0}x{1}", texture.Width, texture.Height));
group.Label(string.Format("Size: {0}x{1}", texture.Width, texture.Height)).AddCopyContextMenu();
group.Label("Mip levels: " + texture.MipLevels);
group.Label("Memory usage: " + Utilities.Utils.FormatBytesCount(texture.TotalMemoryUsage));
}