Class ComparisonGizmoState
state of the comparison gizmo of the LookDev
Namespace: UnityEditor.Rendering.LookDev
Syntax
[Serializable]
public class ComparisonGizmoState
Properties
angle
Angle from vertical in radian
Declaration
public float angle { get; }
Property Value
Type | Description |
---|---|
Single |
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 |
---|---|
Single |
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 |
---|---|
Single |
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, Single, Single)
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 |
Single | length | Tne new length of this gizmo |
Single | 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 |