OnSelectionChanged.cs 1.2 KB

123456789101112131415161718192021222324
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. using System;
  4. namespace bs.Editor
  5. {
  6. /** @addtogroup Utility-Editor
  7. * @{
  8. */
  9. /// <summary>
  10. /// Notifies the runtime that the method this attribute is specified on serves as a callback for reporting when a new
  11. /// scene object containing a certain component type has been selected or deselected. The method must have two
  12. /// parameters. First parameter must derive from <see cref="bs.Component"/> type and determines for which
  13. /// components will be method be triggered. When callback is triggered this parameter will contain the instance of
  14. /// the component that was selected or deselected. The second parameter must be a boolean which determines whether the
  15. /// component as added (if true) or removed (if true) from the current selection.
  16. /// </summary>
  17. [AttributeUsage(AttributeTargets.Method)]
  18. public sealed class OnSelectionChanged : Attribute
  19. { }
  20. /** @} */
  21. }