`ui-uitk`: USS Restrictions table bans `filter` and `transition-property`, both supported in Unity 6

Đang mở Phù hợp với người mới
#102 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
85/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
documentation

Hướng nghiên cứu

Đọc mục “USS Restrictions” trong skills/ui-uitk/SKILL.md, đặc biệt là các mục về filter và transition-property, rồi so sánh chúng với tài liệu Unity 6 được liên kết trong issue. Cập nhật các mục để mô tả những thuộc tính được hỗ trợ và mốc giới hạn phiên bản đã nêu; hoàn tất khi hướng dẫn không còn yêu cầu các agent xóa những kiểu hợp lệ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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, or none/initial/inherit only"

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+):

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-property row, or replace it with: "default is all; omit it when every changed property should animate, list property names to limit which ones animate."
  • Replace the filter row with a version note: "Unity 6.3+: filter / backdrop-filter supported (blur, grayscale, drop-shadow, …). Not available before 6.3."
  • Optionally mention filter: drop-shadow(...) in the box-shadow row as the 6.3+ alternative.
Ngôn ngữ chính
C#
Star
590
Fork
67
Merge trung bình
3 ngày 4 giờ
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Unity-Technologies/unity-agent-plugin

Tất cả issue của Unity-Technologies/unity-agent-plugin

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.