My PointerEventHandler doesn't work anymore

So I create a new component and I add it on my SceneRoot component ?

by user 224464722878005248

Yes you replace the ObjectRaycaster with it. SceneRoot would work

it’s important to understnad that all the children will be raycasted if you add it to the root and you have a large scene. Meaning if you KNOW you only want to raycast some part of your scene it’s better to add it just on a parent for this part of the hierarchy

Okay

by user 224464722878005248

We already have a task for improving this and then the “ignore skinned meshes” thing will be removed again as well. Sorry for the inconvinience. We just noticed that often times scenes were unnecessarily slow because of this behaviour

The MyEventHandler component btw is just my quick test - you dont need it of course ^^

Okay ^^

by user 224464722878005248

I got a big error (again)

by user 224464722878005248

image.png

by user 224464722878005248

My Needle doesn’t find its scripts anymore :confused:

by user 224464722878005248

by user 224464722878005248

I tried to use // @dont-generate-component
But nothing happened

by user 224464722878005248

Okay I deleted the SelectableTooth.cs component and now it’s working

by user 224464722878005248

yes - this will not delete scripts in the Assets folder. But it will prevent generating new components for this script

If you dont want to generate any components you can just delete the ComponentCompiler in your scene

It’s real that it’s a lot slower to use Skinned Mesh Raycaster :confused: I will try to use another technique

by user 224464722878005248

If I use colliders, I don’t need skinned mesh geometry ?

by user 224464722878005248

You could just add cubes as a bounding object to your teeth and disable the renderer (the MeshRenderer of the cube)

it would be an approximation of your teeth geometry - so the cubes would just be your “Collider meshes” basically

Okay because I use Mesh collider in my scene, so maybe it’s will be better to use them for that

by user 224464722878005248

Sorry for bothering you again
 But i got another error which I really don’t understand and I after update again :

by user 224464722878005248