Android应用程序启动时背景画面的切换
1
Unity3D 画面扭曲切换效果脚本 DreamWipe.js 1. var camera1 : Camera; 2.var camera2 : Camera; 3.var fadeTime = 4.0; 4.var waveScale = .07; // Higher numbers make the effect more exaggerated. Can be negative, .5/-.5 is the max 5.var waveFrequency = 25.0; // Higher numbers make more waves in the effect 6.private var inProgress = false; 7.private var swap = false; 8. 9.function Start () { 10. ScreenWipe.use.InitializeDreamWipe(); 11.} 12.function Update () { 13. if (Input.GetKeyDown("space")) { 14. DoFade(); 15. } 16.} 17.function DoFade () { 18. if (inProgress) return; 19. inProgress = true; 20. 21. swap = !swap; 22. yield ScreenWipe.use.DreamWipe (swap? camera1 : camera2, swap? camera2 : camera1, fadeTime, waveScale, waveFrequency); 23. 24. inProgress = false; 25.}
2022-03-13 22:23:25 15KB Unity3D 脚本 画面扭曲
1
倍福利用变量CurrentVisu实现画面间切换
在WinCC (TIA Portal) 中如何通过控制器(改变变量的值)实现画面的切换