Unity Mecanim動畫 動畫片斷只執行一次

有時須要animator控制動畫只播放一次,經過state的設置比較麻煩:動畫 animtor.setBool("state",true); //再設回去 animtor.setBool("sate",false); 比較麻煩,最快方法: animator.Play("death", 0, 0); 注意:第二個參數是層級,要填寫正確的層級flag
相關文章
相關標籤/搜索