using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEditor; namespace TweenAnimation { public partial class TweenAnimationInspector : Editor { public void OnInspector_TweenAlpha(TweenModule module) { OnInspector_Base(module); TweenAlpha tween = module as TweenAlpha; float alpha = ui.GUIFloat("From", tween.from, "f1"); alpha = Mathf.Clamp(alpha, 0, 1); tween.from = alpha; alpha = ui.GUIFloat("To", tween.to, "f1"); alpha = Mathf.Clamp(alpha, 0, 1); tween.to = alpha; tween.graphic = ui.GUIObject("Graphic", tween.graphic, typeof(Graphic)) as Graphic; } } }