123456789101112131415 |
- using UnityEngine;
- using UnityEngine.UI;
- namespace UnityEngine.UI
- {
- [DisallowMultipleComponent]
- public abstract class ProceduralImageModifier : MonoBehaviour {
- /// <summary>
- /// Calculates the border-radius for Procedural Image.
- /// </summary>
- /// <returns>The radius as Vector4. (started top-left, clockwise)</returns>
- /// <param name="imageRect">Rect of ProceduralImages RectTransform</param>
- public abstract Vector4 CalculateRadius (Rect imageRect);
- }
- }
|