我是中文使用者,我的英文不算好,但我會附上英文來進行討論。
English is not my first language, but I’ve included an English version to help with the discussion.
我目前正在 Unity 中使用 Spine 角色,並嘗試用 Amplify Shader Editor 製作一個垂直漸層效果(從腳到頭漸變顏色)。
這樣的效果在使用 SkeletonAnimation 組件時運作良好,Shader 能正確取得角色整體的空間,計算出漂亮一致的漸層。

但當我使用 SkeletonGraphic(UI 元件)時,問題就出現了:
無法呈現漂亮的漸層,即使使用 World Position → Transform → Object 的方式,也無法解決。

請問如何在 UI(SkeletonGraphic)實作具有範圍空間邏輯的shader?或是有其他推薦的解決方案嗎?
How to Achieve a Character-Wide Gradient Shader on Spine SkeletonGraphic (UI) in Unity?
I'm using Spine characters in Unity and trying to implement a vertical gradient effect via Amplify Shader Editor — a smooth color blend from feet to head.
This works perfectly when I use SkeletonAnimation, where the shader can calculate consistent space and apply the gradient as intended.

However, when switching to SkeletonGraphic (UI-based renderer), the gradient breaks:
The gradient does not render correctly, and even using World Position → Transform → Object does not solve the problem.

Is there a way to implement a shader with character-wide spatial logic for UI (SkeletonGraphic)? Or are there any other recommended solutions?
你可以從這裡下載這個專案:
You can download the project/package here:
Package file link