void OnTouchOrbitTypeChanged(SetOrbitTypeAction.OrbitType orbitType) { switch (orbitType) { case SetOrbitTypeAction.OrbitType.None: break; case SetOrbitTypeAction.OrbitType.WorldOrbit: m_OrbitDropdown.SetValueWithoutNotify(0); break; case SetOrbitTypeAction.OrbitType.OrbitAtSelection: break; case SetOrbitTypeAction.OrbitType.OrbitAtPoint: m_OrbitDropdown.SetValueWithoutNotify(1); break; } }
void Orbit(Vector2 delta, SetOrbitTypeAction.OrbitType orbitType) { switch (orbitType) { case SetOrbitTypeAction.OrbitType.WorldOrbit: m_Camera.Rotate(new Vector2(delta.y, delta.x)); break; case SetOrbitTypeAction.OrbitType.OrbitAtPoint: m_Camera.OrbitAroundLookAt(new Vector2(delta.y, delta.x)); break; default: throw new ArgumentOutOfRangeException(); } if (m_CameraViewSelector.GetValue() != null && m_CameraViewSelector.GetValue().cameraViewType != SetCameraViewTypeAction.CameraViewType.Default) { Dispatcher.Dispatch(SetCameraViewTypeAction.From(SetCameraViewTypeAction.CameraViewType.Default)); } OnInteraction(); }
void OnTouchOrbitTypeChanged(SetOrbitTypeAction.OrbitType orbitType) { m_TouchOrbitType = orbitType; }
public DebugOptionsData(bool gesturesTrackingEnabled, bool ARAxisTrackingEnabled, Vector3 spatialPriorityWeights, bool useDebugBoundingBoxMaterials, bool useCulling, bool useSpatialManifest, bool useHlods, int hlodDelayMode, int hlodPrioritizer, int targetFps, bool showActorDebug, SetOrbitTypeAction.OrbitType touchOrbitType) { this.gesturesTrackingEnabled = gesturesTrackingEnabled; this.ARAxisTrackingEnabled = ARAxisTrackingEnabled; this.spatialPriorityWeights = spatialPriorityWeights; this.useDebugBoundingBoxMaterials = useDebugBoundingBoxMaterials; this.useCulling = useCulling; this.useSpatialManifest = useSpatialManifest; this.useHlods = useHlods; this.hlodDelayMode = hlodDelayMode; this.hlodPrioritizer = hlodPrioritizer; this.targetFps = targetFps; this.showActorDebug = showActorDebug; }