0

如何简单地淡化应用了标准着色器的游戏对象?

这是我的代码。如果我将着色器切换到 Sprites.default 它可以工作。

public void foo(float val)
{
     _isFade=true;
     float time=2.0f;
     float alphaVal=0.0f;
     LeanTween.alpha(gameObject, alphaVal, time);

     Debug.Log("YES calling fade in foo !!!! and gameObject = "+gameObject);
}
4

1 回答 1

1

确保在材质上将标准着色器的类型设置为“淡化”或“透明”。

于 2015-06-24T22:41:34.183 回答