跳至主要内容

About UIFX - Long Shadow Filter

Overview

What?

UIFX-LongShadowFilter is a new visual effect for Unity's UI (uGUI) components that applies a long shadow filter of the component.

Why?

Unity's UI system currently doesn't have an option to render UI elements with visual striking effects such as long shadows.

How?

Just add the UIFX-LongShadowFilter component to your UI component. That's it!

Features

  • High quality shadow rendering
  • TextMeshPro supported
  • Easy to use
  • Highly optimised
  • Cross-platform
  • Built-in/URP/HDRP
  • Source code included
  • Well documented & supported
  • Also works in editor (no need to enter play mode)

Usage

Some example use cases:

Screenshot

Compatibility

Unity Version6.x2023.x2022.x2021.x2020.x2019.x2018.x2017.x
Supported
PlatformWindows/UWPmacOSLinuxAndroidiOS / tvOSWebGLPS4 / PS5XBox One
Supported
Render PipelineBuilt-inURPHDRP
Supported

Dependencies

This plugin requires the Unity.UI package that is included with Unity by default.

Supported Features

UI Feature        SupportedNotes
Components:
    Text
    TextMeshPro
    Image
    RawImage
    Mask
    Rect Mask 2D
    CanvasGroup
    Custom
Canvas Render Modes:
    Screen-Space Overlay
    Screen-Space Camera
    World SpaceX
Render Pipelines:
    Built-in
    URP
    HDRP
Colorspaces:
    Gamma
    Linear

Advanced

Performance

UIFX-LongShadowFilter has had several optimisation passes, so we can say with confidence that it is highly performant. Once the shadow has been computed it simply rendered as a texture so the effect is very fast. Changing properties of the component, the Graphic or the parent hierarchy will result in the shadow being recalcuated which can be expensive when the Distance property is too high.

Garbage Collection

This component has been optimised to reduce garbage generation.