画像のワイプ
こ のページ
を参考にCanvas imageを作り
Image TypeをFilledにする
名前
内容
Fill Method
ワイプの形
Fill Origin
ワイプの開始位置
Fill Amount
ワイプ量
Clock wise
ワイプの方向(Fill MethodがRadialの時)
スクリプトでワイプ量を変更したい場合
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class Wipe : MonoBehaviour {
public Image UIobj;
void Update (){
//0.01づつFill Amountが増える
UIobj.fillAmount += 0.01f;
}
}
戻る