以下の内容はhttps://baba-s.hatenablog.com/entry/2018/06/19/090000より取得しました。


【Unity】シンプルにイージングを使用できる「Ease」紹介

はじめに

「Ease」を Unity プロジェクトに導入することで
シンプルにイージングを使用できるようになります

使用例

using ca.HenrySoftware.Rage;
using UnityEngine;
using UnityEngine.UI;

public class Example : MonoBehaviour
{
    public Image image;

    private void Start()
    {
        var type   = EaseType.BounceOut;
        var delay  = 0.5f;
        var scale  = new Vector3( 2, 2, 1 );
        var rotate = new Vector3( 0, 0, 180 );
        var color  = Color.black.GetVector3();

        Ease3.GoScaleTo   ( image, scale , 1, null, null, type, delay );
        Ease3.GoRotationTo( image, rotate, 1, null, null, type, delay );
        Ease3.GoColorTo   ( image, color , 1, null, null, type, delay );
    }
}

f:id:baba_s:20180516201912g:plain




以上の内容はhttps://baba-s.hatenablog.com/entry/2018/06/19/090000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14