DontSerializeField.cs 783 B

12345678910111213141516171819202122
  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 prevents serialization of a field that would otherwise be serialized. Normally those fields
  11. /// are public fields of a <see cref="Component"/>, <see cref="Resource"/> or a class marked with a
  12. /// <see cref="SerializeObject"/> attribute.
  13. /// </summary>
  14. [AttributeUsage(AttributeTargets.Field)]
  15. public sealed class DontSerializeField : Attribute
  16. {
  17. }
  18. /** @} */
  19. }