Turn off a models raycasting, for artist :)

I have a model in my scene that interferes with ray cast mouse clicks on objects from certain angles, is there a way an artist can turn that off without coding?

There is many ways to implement a solution. You can set the Right Mouse Button to disable the collider of an object, create an interface with buttons that disable it…

Thanks! Will try that

A tip is to change a little the material of “Collider Off” object, so that the artist can see which is enable and which isn’t.
And anticipating a little, when you try to re-enable the collider, you will need to do this by PickerBuffer, because the Raycast will no longer works

Is this in the PlayCanvas editor or in the app?

It was in the app, we solved it by turning off some hidden objects. Thanks for the help as always!

1 Like