コード例 #1
0
 private void OnGizmoTransformChanged(GizmoTransform gizmoTransform, GizmoTransform.ChangeData changeData)
 {
     if (changeData.ChangeReason == GizmoTransform.ChangeReason.ParentChange ||
         changeData.TRSDimension == GizmoDimension.Dim3D)
     {
         UpdateCamLookSlider(Gizmo.GetWorkCamera());
     }
 }
コード例 #2
0
 private void OnTransformChanged(GizmoTransform transform, GizmoTransform.ChangeData changeData)
 {
     if (changeData.TRSDimension == GizmoDimension.Dim2D ||
         changeData.ChangeReason == GizmoTransform.ChangeReason.ParentChange)
     {
         _controllers[(int)LookAndFeel.CapType].UpdateTransforms();
     }
 }
コード例 #3
0
 private void OnTransformChanged(GizmoTransform transform, GizmoTransform.ChangeData changeData)
 {
     if (changeData.ChangeReason == GizmoTransform.ChangeReason.ParentChange ||
         changeData.TRSDimension == GizmoDimension.Dim3D)
     {
         _controllers[(int)LookAndFeel.CapType].UpdateTransforms(GetZoomFactor(Gizmo.GetWorkCamera()));
     }
 }
コード例 #4
0
 private void OnTransformChanged(GizmoTransform transform, GizmoTransform.ChangeData changeData)
 {
     if (changeData.TRSDimension == GizmoDimension.Dim2D ||
         changeData.ChangeReason == GizmoTransform.ChangeReason.ParentChange)
     {
         _controllers[(int)LookAndFeel.LineType].UpdateTransforms();
         _cap2D.CapSlider2D(GetRealDirection(), GetRealEndPosition());
     }
 }
コード例 #5
0
        private void OnTransformChanged(GizmoTransform transform, GizmoTransform.ChangeData changeData)
        {
            if (changeData.ChangeReason == GizmoTransform.ChangeReason.ParentChange ||
                changeData.TRSDimension == GizmoDimension.Dim3D)
            {
                Camera camera     = Gizmo.GetWorkCamera();
                float  zoomFactor = GetZoomFactor(camera);

                _controllers[(int)LookAndFeel.LineType].UpdateTransforms(zoomFactor);
                _cap3D.CapSlider3D(GetRealDirection(), GetRealEndPosition(zoomFactor));
            }
        }
コード例 #6
0
 private void OnChanged(GizmoTransform.ChangeData changeData)
 {
     if (changeData.TRSDimension == GizmoDimension.Dim3D)
     {
         _firingChanged3DEvent = true;
         if (Changed != null)
         {
             Changed(this, changeData);
         }
         _firingChanged3DEvent = false;
     }
     else
     {
         _firingChanged2DEvent = true;
         if (Changed != null)
         {
             Changed(this, changeData);
         }
         _firingChanged2DEvent = false;
     }
 }
コード例 #7
0
 private void OnGizmoTransformChanged(GizmoTransform gizmoTransform, GizmoTransform.ChangeData changeData)
 {
     UpdateExtrudeSliderTransforms();
 }
コード例 #8
0
 private void OnGizmoTransformChanged(GizmoTransform transform, GizmoTransform.ChangeData changeData)
 {
     Update2DGizmoPosition();
 }
コード例 #9
0
ファイル: BoxGizmo.cs プロジェクト: youngbrett/TreehouseHack
 private void OnGizmoTransformChanged(GizmoTransform gizmoTransform, GizmoTransform.ChangeData changeData)
 {
     UpdateTickPositions();
 }