Class CornersUIGradient
Attach to an Image. Applies a different color to each corner of the Image and linearly interpolates between each.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
UnityEngine.EventSystems.UIBehaviour
UnityEngine.UI.BaseMeshEffect
CornersUIGradient
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/Corners Gradient")]
[RequireComponent(typeof(Image))]
public class CornersUIGradient : BaseMeshEffect, IMeshModifier
Fields
BottomLeftColor
Color of the bottom left corner
Declaration
public Color BottomLeftColor
Field Value
| Type | Description |
|---|---|
| UnityEngine.Color |
BottomRightColor
Color of the bottom right corner
Declaration
public Color BottomRightColor
Field Value
| Type | Description |
|---|---|
| UnityEngine.Color |
TopLeftColor
Color of the top left corner
Declaration
public Color TopLeftColor
Field Value
| Type | Description |
|---|---|
| UnityEngine.Color |
TopRightColor
Color of the top right corner
Declaration
public Color TopRightColor
Field Value
| Type | Description |
|---|---|
| UnityEngine.Color |
Methods
ModifyMesh(VertexHelper)
Do not call directly. Called by Unity
Declaration
public override void ModifyMesh(VertexHelper vertexHelper)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.UI.VertexHelper | vertexHelper | VertexHelper |
Overrides
UnityEngine.UI.BaseMeshEffect.ModifyMesh(UnityEngine.UI.VertexHelper)
Implements
UnityEngine.UI.IMeshModifier