- Home /
Disabling lights collision
Hello everyone,
I have a simple sphere game object with Shpere Collider, and Light component with Flare. I can't see light until i disable the SphereCollider on gameObject. But if i disable collider, i can't raycast them.
Can i disable light collision, somethings like light on render top?
Thanks.
Did you create a primitive sphere to be a collider of your light? if your did, you can just disable the renderer of that sphere.
But you should just add a sphere collider to your light. No need for the actual object.
Rather than attaching a light component to the sphere game object, create a light object, and make it a child of the sphere game object.
Sphere renderer already disabled, and as child object added light with flare, but SphereCollision disabling visibility of light and Flare, if i disable SphereCollider - light become visible. I can remove sphere collider, i need them.