- Home /
I want to put a random filter over the camera every few seconds.
I want to put a random filter over the camera every few seconds, i have a few functions that do something to the camera and i want to know how to cycle through them at random every few seconds?
Comment
How do you activate a filter? Is it a script? In that case you can use Invoke() to call a method after some delay and you can save the scripts in an array of gameobjects. Use Random.Range(0, arrayname.Length) to get a random index from your array. Then activate the script at that Position after deactivating the others.
Your answer
Follow this Question
Related Questions
Making a camera list 1 Answer
Multiple Cars not working 1 Answer
Random position in rectangle, but not in a camera view 1 Answer
Distribute terrain in zones 3 Answers