bool RayToLocalPosition (Ray ray, out Vector2 position, out float distance)

Parameters

NameTypeDescription
ray Ray The ray in 3D world space to test against this panel.
out position Vector2 Position on the panel where the intersection happened, local to the panel's top left corner.
out distance float Distance from the ray's origin to the intersection in 3D space.

Returns

TypeDescription
bool Return true if a hit/intersection was detected.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.