Example #1
0
 public Core.TextureLib.UCL_Texture2D Editor_DrawEaseCurve()
 {
     if (m_EaseTexture == null)
     {
         m_EaseTexture = new Ease.UCL_EaseTexture(new Vector2Int(128, 128), TextureFormat.ARGB32);
     }
     Ease.UCL_EaseTexture.DrawEase(m_Ease, m_EaseTexture);
     return(m_EaseTexture);
 }
Example #2
0
        public static void DrawEase(EaseType ease_type, UCL_Texture2D texture)
        {
            var ease = EaseCreator.Get(ease_type);

            if (ease == null)
            {
                return;
            }
            UCL_EaseTexture tex = texture as UCL_EaseTexture;

            if (tex == null)
            {
                return;
            }
            tex.SetEase(ease);
        }