Class RotatableLinearUIGradient
Attach to an Image - updates the color of the image to be a linear gradient from StartColor to EndColor.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
UnityEngine.EventSystems.UIBehaviour
UnityEngine.UI.BaseMeshEffect
RotatableLinearUIGradient
Implements
UnityEngine.UI.IMeshModifier
Inherited Members
UnityEngine.UI.BaseMeshEffect.OnEnable()
UnityEngine.UI.BaseMeshEffect.OnDisable()
UnityEngine.UI.BaseMeshEffect.OnDidApplyAnimationProperties()
UnityEngine.UI.BaseMeshEffect.OnValidate()
UnityEngine.UI.BaseMeshEffect.ModifyMesh(UnityEngine.Mesh)
UnityEngine.UI.BaseMeshEffect.graphic
UnityEngine.EventSystems.UIBehaviour.Awake()
UnityEngine.EventSystems.UIBehaviour.Start()
UnityEngine.EventSystems.UIBehaviour.OnDestroy()
UnityEngine.EventSystems.UIBehaviour.IsActive()
UnityEngine.EventSystems.UIBehaviour.Reset()
UnityEngine.EventSystems.UIBehaviour.OnRectTransformDimensionsChange()
UnityEngine.EventSystems.UIBehaviour.OnBeforeTransformParentChanged()
UnityEngine.EventSystems.UIBehaviour.OnTransformParentChanged()
UnityEngine.EventSystems.UIBehaviour.OnCanvasGroupChanged()
UnityEngine.EventSystems.UIBehaviour.OnCanvasHierarchyChanged()
UnityEngine.EventSystems.UIBehaviour.IsDestroyed()
Namespace: LlamaSoftware.UI.Utility
Assembly: LlamaSoftware.UI.dll
Syntax
[AddComponentMenu("UI/Effects/Rotatable 2 Color Linear Gradient")]
public class RotatableLinearUIGradient : BaseMeshEffect, IMeshModifier
Fields
Angle
Angle of Rotation for the Gradient. 0 = Horizontal +-90 = Vertical +-180 = Reverse Horizontal
Declaration
[Range(-360F, 360F)]
public float Angle
Field Value
| Type | Description |
|---|---|
| System.Single |
EndColor
The ending color of the Gradient
Declaration
public Color EndColor
Field Value
| Type | Description |
|---|---|
| UnityEngine.Color |
StartColor
The starting color of the Gradient
Declaration
public Color StartColor
Field Value
| Type | Description |
|---|---|
| UnityEngine.Color |
WeightEndColor
Extra weight added to the starting color. 1 = only End Color (if WeightStartColor = 0) 0 = 50% End Color, 50% Start Color, if WeightStartColor = 0
Declaration
[Range(0F, 1F)]
public float WeightEndColor
Field Value
| Type | Description |
|---|---|
| System.Single |
WeightStartColor
Extra weight added to the starting color. 1 = only Start Color (if WeightEndColor = 0) 0 = 50% Start Color, 50% End Color, if WeightEndColor = 0
Declaration
[Range(0F, 1F)]
public float WeightStartColor
Field Value
| Type | Description |
|---|---|
| System.Single |
Methods
ModifyMesh(VertexHelper)
Called by Unity - do not call directly
Declaration
public override void ModifyMesh(VertexHelper vertexHelper)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.UI.VertexHelper | vertexHelper | Vertex Helper |
Overrides
UnityEngine.UI.BaseMeshEffect.ModifyMesh(UnityEngine.UI.VertexHelper)
Implements
UnityEngine.UI.IMeshModifier