public void ObjectInteractionUpdate(Component_GameMode.ObjectInteractionContextClass context) { if (createdViewport != null) { var cameraSettings = context.Viewport.CameraSettings; var ray = new Ray(cameraSettings.Position, cameraSettings.Rotation.GetForward() * cameraSettings.FarClipDistance); //update mouse position if (GetScreenPositionByRay(ray, out var screenPosition)) { createdViewport.UIContainer.PerformMouseMove(screenPosition); } } }
public void ObjectInteractionUpdate(Component_GameMode.ObjectInteractionContextClass context) { }
public void ObjectInteractionExit(Component_GameMode.ObjectInteractionContextClass context) { ChangingEnd(); }