Home
  • English
  • 中文
Home
  • English
  • 中文
  • Get Started

    • Install
    • Hello LGUI
    • Custom Button
    • Use custom font
    • Prefab workflow
    • Interaction
    • Button from scratch
  • Sample Projects

    • Sample Projects
  • Prefab Workflow

    • LGUI Prefab
    • PrefabEditor
    • LGUILifeCycleBehaviour
    • LGUIPrefabInterface
  • Rendering

    • LGUICanvas
    • Screen Space Overlay
    • World Space - UE Renderer
    • World Space - LGUI Renderer
    • LGUI render flow
    • UICanvasGroup
  • Visual Components

    • UIText
    • UIEffect
    • TextAnimation
    • UIBackgroundBlur
    • UIBackgroundPixelate
  • Events

    • LGUIEventDelegate
    • LGUIEventSystem
  • Interaction Components

    • UISelectable component
  • Layout

    • Basic Layout
    • Auto Layout
  • Tween Animation

    • LTween
    • Use LTween for UI element
  • Performance

    • LGUI Stat
  • ReleaseNotes

    • LGUI 3.x
    • LGUI 2.x
  • FAQ

    • Why use prefab?
    • Update project from LGUI2 to LGUI3
    • Project 3d world position to LGUI's screen 2d position
    • Deproject LGUI's screen position to world
    • Use custom material for UI elements
    • Disable interaction component
    • Find Child by DisplayName
    • Get actor or component inside prefab
    • Anti-aliasing

UIEffect

Select UIRenderable actor(UIText, UISprite, UITexture), add one of these components:
UIEffect Shadow, UIEffect Long Shadow, UIEffect Outline, UIEffect Position As UV, UIEffect Gradient Color:

Execute Order

Every UIEffect component have Execute Order property, this defines the effect execute order when there is multiple UIEffect component in same actor. Lower Execute Order will affect earlier than higher one.

Shadow

The Shadow component adds a simple outline effect to UIRenderable components such as UIText/UISprite/UITexture. It must be on a actor which have a UIRenderable component.

Property:Function:
Shadow ColorThe color of the shadow.
Multiply Source AlphaMultiplies the alpha of the UIRenderable onto the alpha of the effect.
Shadow OffsetThe offset of the shadow expressed as a vector.

Long Shadow

The Long Shadow component is like Shadow, but give us more control parameters, we can make very smooth shadow, or make it look thickness.

Property:Function:
Shadow ColorThe begin color of the shadow.
Shadow SizeThe offset of the shadow expressed as a vector.
Shadow SegmentMore segment will render more smooth shadow, but need more cost.
Use Gradient ColorUse Gradient Color to affect the shadow.
Gradient ColorConsider this is the end color of the shadow.
Multiply Source AlphaMultiplies the alpha of the UIRenderable onto the alpha of the effect.

Outline

The Outline component adds a simple outline effect to UIRenderable components such as UIText/UISprite/UITexture. It must be on a actor which have a UIRenderable component.

Property:Function:
Outline ColorThe color of the outline.
Outline SizeThe distance of the outline effect horizontally and vertically.
Multiply Source AlphaMultiplies the alpha of the UIRenderable onto the alpha of the effect.

Position As UV

This will modify selected uv channel, and use position.xy as uv data.

Gradient Color

The Gradient Color component can change UIRenderable's color to 2 or four different colors.

Property:Function:
Direction TypeGradient direction type, the options are Bottom to Top and *Top to Bottom" and "Left to Right" and "Right to Left" and "Four Cornor".
Multiply Source AlphaMultiplies the alpha of the UIRenderable onto the alpha of the effect.
Color 1/2/3/4If Direction Type is set to *Four Cornot" then four color will be used as four cornor color, otherwise only Color 1 and Color 2 is used for two color.
Last Updated:
Contributors: lf2007hf
Prev
UIText
Next
TextAnimation