This commit is contained in:
r.nikolin 2023-11-08 12:10:35 +03:00
parent e45b8acf2a
commit 0b3381b5e3
1 changed files with 3 additions and 0 deletions

View File

@ -105,6 +105,9 @@ namespace BNG {
return;
}
if (cameraCaster == null)
return;
EventData.position = new Vector2(cameraCaster.pixelWidth / 2, cameraCaster.pixelHeight / 2);
eventSystem.RaycastAll(EventData, m_RaycastResultCache);