InspectableFieldOrderStyle.cs 845 B

12345678910111213141516171819202122
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //************** Copyright (c) 2016-2019 Marko Pintera ([email protected]). All rights reserved. *******************//
  3. namespace bs.Editor
  4. {
  5. /// <summary>
  6. /// Contains information about the order of a field when displayed in the inspector
  7. /// </summary>
  8. public sealed class InspectableFieldOrderStyle : InspectableFieldStyle
  9. {
  10. public InspectableFieldOrderStyle(int index)
  11. {
  12. this.Index = index;
  13. }
  14. /// <summary>
  15. /// Index that determines the order relative to other fields. Lower index means the field will be displayed before
  16. /// the fields with higher index.
  17. /// </summary>
  18. public int Index { get; set; }
  19. }
  20. }