`ui-uitk`: USS Restrictions table bans `filter` and `transition-property`, both supported in Unity 6
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 1/5
- 預估耗時
- 1 小時以內
- 新手友好度
- 85/100
- Issue 類型
- 文件
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- csharp
研究方向
閱讀skills/ui-uitk/SKILL.md中的「USS Restrictions」章節,特別是filter和transition-property項目,並將它們與 issue 中連結的 Unity 6 文件進行比較。更新這些項目,以說明支援的屬性和所述的版本界線;當指引不再要求 agents 移除有效樣式時,即告完成。
由索引模型根據 Issue 內容生成。
描述
Plugin: 0.1.8-beta (main @ 3831ddb) · Unity: 6000.6.7f1 · Windows 11, Claude Code
Problem
skills/ui-uitk/SKILL.md, section "USS Restrictions" ("These properties do NOT exist — NEVER use them"):
- L146:
filter→ "Not supported" - L151:
transition-property: <value>→ "Omit entirely, ornone/initial/inheritonly"
Both are documented, working USS properties. Following the table, an agent removes valid styles: it drops a blur, or rewrites transition-property: background-color; into a transition on every property.
Evidence
filter (Unity 6.3+):
- USS properties reference (6000.6) lists
filterandbackdrop-filter: https://docs.unity3d.com/6000.6/Documentation/Manual/UIE-USS-Properties-Reference.html - Built-in filters (
blur,grayscale,invert,opacity,sepia,tint,hue-rotate,contrast,drop-shadow): https://docs.unity3d.com/6000.6/Documentation/Manual/ui-systems/built-in-filters.html - API in 6000.6.7f1 (
UnityEngine.UIElementsModule.xml):IStyle.filter,IStyle.backdropFilter,IResolvedStyle.filter,FilterFunction,FilterFunctionType. - The manual page
ui-systems/uss-filter.htmlexists from 6000.3 and is absent in 6000.2.
transition-property (Unity 6.0 and earlier):
- "The transition property defines which USS properties the transition applies to." Values: property names,
all(default),initial,none,ignored; e.g.transition-property: color, rotate;— https://docs.unity3d.com/6000.0/Documentation/Manual/UIE-Transitions.html - API:
IStyle.transitionProperty. - Unity's own packages use it, e.g.
com.unity.render-pipelines.core/Editor/StyleSheets/RenderGraphViewer.uss(transition-property: background-color;).
Suggested fix
- Remove the
transition-propertyrow, or replace it with: "default isall; omit it when every changed property should animate, list property names to limit which ones animate." - Replace the
filterrow with a version note: "Unity 6.3+:filter/backdrop-filtersupported (blur, grayscale, drop-shadow, …). Not available before 6.3." - Optionally mention
filter: drop-shadow(...)in thebox-shadowrow as the 6.3+ alternative.
- 主要語言
- C#
- 星號
- 617
- 分支
- 67
- 平均合併
- 1 天 3 小時
- 30 天內合併 PR
- 13
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Unity-Technologies/unity-agent-plugin 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 80/100
Unity-Technologies/unity-agent-plugin#118 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
Unity-Technologies/unity-agent-plugin#105 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 72/100
Unity-Technologies/unity-agent-plugin#104 · 1 則留言 ·
維護者通常 1 天內回覆
查看 Unity-Technologies/unity-agent-plugin 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
ardalis/CleanArchitecture#1150 ·
維護者通常 1 天內回覆
-
area:data coverage
難度 1/5 1 小時以內 新手友好度 68/100
reacher-z/Awesome-CUA#5039 ·
維護者通常 19 天內回覆
-
Bug
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
Facepunch/sbox-public#12305 ·
維護者通常 5 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
JiaFeiMiao-K-Cat/DiscImageStudio#205 ·
維護者通常 1 天內回覆