FreeModifier.cs 409 B

123456789101112131415161718192021222324
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. [ModifierID("Free")]
  4. public class FreeModifier : ProceduralImageModifier {
  5. [SerializeField]private Vector4 radius;
  6. public Vector4 Radius {
  7. get {
  8. return radius;
  9. }
  10. set {
  11. radius = value;
  12. }
  13. }
  14. #region implemented abstract members of ProceduralImageModifier
  15. public override Vector4 CalculateRadius (Rect imageRect){
  16. return radius;
  17. }
  18. #endregion
  19. }