You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has to do with the fact that there isn't a check if the text is in front or behind the camera. This results in strange issues.
The fix simply involves checking if the world position of the text object is in front of the camera when running GUIDrawTextEntry or GUIAttachTextEntry:
This has to do with the fact that there isn't a check if the text is in front or behind the camera. This results in strange issues.
The fix simply involves checking if the world position of the text object is in front of the camera when running GUIDrawTextEntry or GUIAttachTextEntry:
`
Vector3 worldPos = entry.anchor;
Vector3 heading = worldPos - camera.transform.position;
if (Vector3.Dot(camera.transform.forward, heading) <= 0)
`
The text was updated successfully, but these errors were encountered: