Hi, i have build in different boxcolliders in my scene to detect where my orbitcamera is moving and reacts on it with different lightsetups. This works great.
But now ive created an sphere and i want to click on that object. On that sphere ive added a simple script to test it:
While running the sphere-message doesnt appear because the different box collider (for the camera) is overlaying my sphere. Is there any way to get both things working? However can i click on my object and check whether ive clicked on my sphere-collider?
Thanks for your time and any hints..
Edit: Ive tested to give the box collider for my camera script an extra layer and my sphere an extra layer. I thought this would help, but unfortunately not..
Put the box collider for the camera on the IgnoreRaycast layer.
answered Apr 22 '10 at 07:18 PM