raycastObject
Returns a RayObjectHit of an object if intersected by the current mouse-cursor position, or the Ray if specified.
Parameters
Description
Type
objectName
The name of the object we want to get the intersection data from.
string
ray (optional)
A ray specifying how we should intersect with the objects.
Usage:
Return value:
Last updated