Rasagar/Library/PackageCache/com.unity.probuilder/Runtime/Core/HandleOrientation.cs

33 lines
1.0 KiB
C#
Raw Normal View History

2024-08-26 13:07:20 -07:00
namespace UnityEngine.ProBuilder
{
/// <summary>
/// Defines how the handle gizmo is oriented with regards to the current element selection.
/// </summary>
/// <remarks>
/// This overrides the Unity Pivot / Global setting when editing vertices, faces, or edges.
/// </remarks>
/// <remarks>Editor only.</remarks>
public enum HandleOrientation
{
/// <summary>
/// The gizmo is aligned to identity in world space.
/// </summary>
World = 0,
/// <summary>
/// The gizmo is aligned relative to the active mesh transform. This is also called "coordinate" or "model" space.
/// </summary>
ActiveObject = 1,
/// <summary>
/// The gizmo is aligned relative to the currently selected face. When editing vertices or edges, this falls back to <see cref="ActiveObject"/> alignment.
/// </summary>
ActiveElement = 2,
// /// <summary>
// /// The transform gizmo is user-set.
// /// </summary>
// Custom = 3
}
}