Manipulator.cs 700 B

123456789101112131415161718192021222324
  1. using UnityEngine;
  2. namespace com.zibra.common.Manipulators
  3. {
  4. /// <summary>
  5. /// Base class for manipulators for all effects.
  6. /// </summary>
  7. public abstract class Manipulator : MonoBehaviour
  8. {
  9. #region Public interface
  10. #if UNITY_EDITOR
  11. /// <summary>
  12. /// (Editor only) Returns gizmo color that should be used with current manipulator.
  13. /// </summary>
  14. /// <remarks>
  15. /// This is needed since SDFs can be used with any manipulators,
  16. /// but we don't want SDFs to draw gizmos in same color for different types of manipulators.
  17. /// </remarks>
  18. public abstract Color GetGizmosColor();
  19. #endif
  20. #endregion
  21. }
  22. }