低調の美國生活

各種疑難雜症

[Unity Tips] 讓物件一閃一閃 / Blinking/Flashing/Flickering Effects Script

x305
3月2日2016年

在資源吃緊時,連用Animator/Animation都要省,所以改用Script來控制

sometimes we need to consider performance, especially when available resources are tight. In this case, we are using script to control it:



不多說,程式碼如下:

Here are the code I am using:

[codebox 1]

 

 


發佈於 3月2日2016年