0
Gestartet

Found bug in MeasureRaycast.cs

Luke vor 4 Wochen in realvirtual.io Starter and Professional aktualisiert von Support vor 3 Wochen 2

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.

Antwort

Antwort

You are right - thanks a lot for reporting. Will be fixed in next release.

Antwort

You are right - thanks a lot for reporting. Will be fixed in next release.