public ObjectMouseRotationSettingsView(ObjectMouseRotationSettings settings) { _settings = settings; ToggleVisibilityBeforeRender = true; VisibilityToggleLabel = "Mouse Rotation Settings"; IndentContent = true; }
public void BeginRotationAroundCustomAxis(GameObject gameObject, ObjectMouseRotationSettings rotationSettings, Vector3 customRotationAxis) { if (gameObject != null && !_isActive) { _isActive = true; _gameObject = gameObject; _gameObjectTransform = _gameObject.transform; _mouseRotationSettings = rotationSettings; _rotatingAroundCustomAxis = true; _customRotationAxis = customRotationAxis; _accumulatedRotationInDegrees = 0.0f; } }