Fix focus change

This commit is contained in:
Pascal Serrarens 2024-03-11 08:49:32 +01:00
parent 90b4c46988
commit fbfbb8cbaf

View File

@ -121,8 +121,10 @@ namespace Passer {
focusing = true;
return;
}
else
ProcessFocus();
if (!clicking) { // first activation
touchedObject = data.pointerCurrentRaycast.gameObject;
if (touchedObject == null) // object is a 3D object, as we do not use Physicsraycaster, use the focusObject