private static void DrawTransposerGizmos(CinemachineDolly target, GizmoType selectionType) { if (target.IsValid) { CinemachinePathEditor.DrawPathGizmos(target.m_Path, selectionType); } }
private static void DrawGizmos(CinemachineSmoothPath path, GizmoType selectionType) { CinemachinePathEditor.DrawPathGizmo(path, Selection.activeGameObject == path.gameObject ? path.m_Appearance.pathColor : path.m_Appearance.inactivePathColor); }
static void DrawGizmos(CinemachineSmoothPath path, GizmoType selectionType) { var isActive = Selection.activeGameObject == path.gameObject; CinemachinePathEditor.DrawPathGizmo(path, isActive ? path.m_Appearance.pathColor : path.m_Appearance.inactivePathColor, isActive); }
private static void DrawTrackeDollyGizmos(CinemachineTrackedDolly target, GizmoType selectionType) { if (target.IsValid) { CinemachinePath path = target.m_Path as CinemachinePath; if (path != null) { CinemachinePathEditor.DrawPathGizmos(path, selectionType); } } }
private static void DrawTrackeDollyGizmos(CinemachineTrackedDolly target, GizmoType selectionType) { if (target.IsValid) { CinemachinePathBase path = target.m_Path; if (path != null) { CinemachinePathEditor.DrawPathGizmo(path, path.m_Appearance.pathColor); } } }
private static void DrawTrackeDollyGizmos(CinemachineTrackedDolly target, GizmoType selectionType) { if (target.IsValid) { CinemachinePathBase path = target.m_Path; if (path != null) { CinemachinePathEditor.DrawPathGizmo(path, path.m_Appearance.pathColor); Vector3 pos = path.EvaluatePositionAtUnit(target.m_PathPosition, target.m_PositionUnits); Color oldColor = Gizmos.color; Gizmos.color = CinemachineCore.Instance.IsLive(target.VirtualCamera) ? CinemachineSettings.CinemachineCoreSettings.ActiveGizmoColour : CinemachineSettings.CinemachineCoreSettings.InactiveGizmoColour; Gizmos.DrawLine(pos, target.VirtualCamera.State.RawPosition); Gizmos.color = oldColor; } } }