You're breathtaking!
This commit is contained in:
19
Source/Editor/Viewport/Modes/TransformGizmoMode.cs
Normal file
19
Source/Editor/Viewport/Modes/TransformGizmoMode.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
|
||||
namespace FlaxEditor.Viewport.Modes
|
||||
{
|
||||
/// <summary>
|
||||
/// The default editor mode that uses <see cref="FlaxEditor.Gizmo.TransformGizmo"/> for objects transforming.
|
||||
/// </summary>
|
||||
/// <seealso cref="FlaxEditor.Viewport.Modes.EditorGizmoMode" />
|
||||
public class TransformGizmoMode : EditorGizmoMode
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnActivated()
|
||||
{
|
||||
base.OnActivated();
|
||||
|
||||
Viewport.Gizmos.Active = Viewport.TransformGizmo;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user