ShowInInspector.cs 998 B

1234567891011121314151617181920212223
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. using System;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Serialization
  7. * @{
  8. */
  9. /// <summary>
  10. /// Attribute that forces a field or a property to be visible in the inspector window in editor. Normally public fields
  11. /// are show in the inspector by default, and you can use this attribute to show private/protected/internal fields, or
  12. /// to show properties (never shown by default) as well. Member must be in a serializable object otherwise this
  13. /// attribute has no effect, and the type of the field/property must be a serializable type.
  14. /// </summary>
  15. [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
  16. public sealed class ShowInInspector : Attribute
  17. {
  18. }
  19. /** @} */
  20. }