ProceduralImageModifier.cs 475 B

123456789101112131415
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. namespace UnityEngine.UI
  4. {
  5. [DisallowMultipleComponent]
  6. public abstract class ProceduralImageModifier : MonoBehaviour {
  7. /// <summary>
  8. /// Calculates the border-radius for Procedural Image.
  9. /// </summary>
  10. /// <returns>The radius as Vector4. (started top-left, clockwise)</returns>
  11. /// <param name="imageRect">Rect of ProceduralImages RectTransform</param>
  12. public abstract Vector4 CalculateRadius (Rect imageRect);
  13. }
  14. }