0

Found bug in MeasureRaycast.cs

Luke 15 hours ago in realvirtual.io Starter and Professional 0

I found and fixed a bug in the MeasureRaycast.cs script. Originally the "Raycast to Layer" setting would not work. I replaced the following lines.

layermask |= (1 << LayerMask.NameToLayer("RayCastToLayer"));
layermask = ~layermask;

With this

layermask = 1 << LayerMask.NameToLayer(RayCastToLayer);

And it seems to work now. Just posting for others in case they have the same issue.