docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ComparisonGizmoState

    state of the comparison gizmo of the LookDev

    Inheritance
    object
    ComparisonGizmoState
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering.LookDev
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    [Serializable]
    public class ComparisonGizmoState

    Properties

    angle

    Angle from vertical in radian

    Declaration
    public float angle { get; }
    Property Value
    Type Description
    float

    blendFactor

    The position of the blending slider. From value -1 on first extremity to value 1 on second extremity.

    Declaration
    public float blendFactor { get; set; }
    Property Value
    Type Description
    float

    center

    Position of the center

    Declaration
    public Vector2 center { get; }
    Property Value
    Type Description
    Vector2

    length

    Length between extremity

    Declaration
    public float length { get; }
    Property Value
    Type Description
    float

    point1

    Position of the first extremity

    Declaration
    public Vector2 point1 { get; }
    Property Value
    Type Description
    Vector2

    point2

    Position of the second extremity

    Declaration
    public Vector2 point2 { get; }
    Property Value
    Type Description
    Vector2

    Methods

    Update(Vector2, float, float)

    Update all fields while moving the bar

    Declaration
    public void Update(Vector2 center, float length, float angle)
    Parameters
    Type Name Description
    Vector2 center

    The new center position

    float length

    Tne new length of this gizmo

    float angle

    The new angle of this gizmo

    Update(Vector2, Vector2)

    Update all fields while moving one extremity

    Declaration
    public void Update(Vector2 point1, Vector2 point2)
    Parameters
    Type Name Description
    Vector2 point1

    The new first extremity position

    Vector2 point2

    The new second extremity position

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)