as the title states: when i look at a light(model + spotlight), with the default FPS controller, it goes invisible. I have no idea why. Probarly something to do with the rendering, and the vision.
The model consist of 6 lights, 5 of which are Child objects of the sixth. Only when i look at the Child objects and can't see the parent object do the objects go invisable, I don't know if the parent goes invis but all the Child objects do, and i suspect the parent does aswell(they only go invis when i don't look at the parent so).
I'll post the switch, which turns the lights on and the lights themselves in a Prefab. I have now added the script, I'm not sure if it has any part in this.
Ok, just tested unchecking occlusion culling, and they stopped going invis. So the problem had to do with this. If I'm to have loths of these in my game it will cause lagg i suspect, so I'm still interested in finding a solution.
SwitchandLight.zip
Lights_Script.rar