unity中實現3d物體的顏色隨時間漸漸消失

實現的原理就是修改material的color屬性的Alpha值,經過把值逐漸變爲0來達到消失 注意:這種方法只對部分shader有做用,我用的是this 下面是代碼:code using System.Collections; using System.Collections.Generic; using UnityEngine; public class Test : MonoBehavio
相關文章
相關標籤/搜索