I modified iTween for working  Fade/Color to the uGUI elements such as Text, Image, Textmesh.
and It will work Action<T> Lambda method.

iTween.ValueTo(gameObject, iTween.Hash(
    "from", 1f,
    "to", 0f,
    "time", 1f,
    "onupdate", (System.Action<object>)(x => { missedInfo.color = new Color(1f, 0f, 0f, (float)x); }),
    "oncomplete", (System.Action<object>)(x => missedInfo.gameObject.SetActive(true))

* Caution: If you didn't install the Textmesh pro, You could see the Error message on Unity3D


2017/11/17 10:49 2017/11/17 10:49
TAG , ,

트랙백 주소 :: 이 글에는 트랙백을 보낼 수 없습니다