- Home /
Turn signals using SetActiveRecursively(unity3)
I've made turn signals on a car by having one mesh for the left lights and one for the right. I turn these on and off every half second using SetActiveRecursively(). Is this a bad way of doing it? (causing bad frame rate)? If so how should I do it?
Edit: Btw I use UNITY 3.
Answer by Eric5h5 · Jun 23, 2014 at 05:11 PM
SetActiveRecursively is obsolete in Unity 4 so it shouldn't be used. While it would have basically no effect on framerate, it doesn't seem like it's an appropriate usage. There are only two lights so you can just use GameObject.SetActive on each one.
Sorry I didn't mention, but I use unity 3, so it's not obsolete and set active doesnt work that way in 3.
Correct me if I'm wrong, but does'nt .active only disable the parent and not the children? I think I have tried that already.
Would it be better to change the opacity of the material ins$$anonymous$$d of using SetActiveRecursively? Would that give better frame rate?
Your answer
Follow this Question
Related Questions
how to make a sphere/ball blinking 4 Answers
Problem with shaders and textures: drop FPS and blinks 2 Answers
SetActiveRecursively for renderer and collider 2 Answers
Network View - Player is blinking, and visible only partially during movement. 0 Answers
How do you activate parented rigid-bodies with joints? 0 Answers