Tag Info

New answers tagged

1

If in general clicking the unit has no other use than selecting the tile, you could simply put the units on the Ignore Raycast layer so you can select directly the tile, in this case you can also attach a script on the tiles with the OnMouseDown function. If you want to access, in that way, the unit, you could maintaing of structure describing the tiles (so ...


1

The properties are dependent on the override of the class that inherits from object which is currently being used. You can see what properties are required by looking at the overridden method that will have the format of THREE.ClassName.prototype.raycast. See below for a bit of insight into whats actually going on when you use the raycaster. Raycaster.js ...



Top 50 recent answers are included