Feature: generate a version-accurate Unity API index for lookup_api

Đang mở
#40 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp, unity
Lĩnh vực
game-dev, tooling

Hướng nghiên cứu

Start by reading the existing lookup_api implementation and the lifecycle-only weekly data workflow; the issue does not name their file paths. Then assess Unity ScriptReference or reference assemblies as data sources and how analyze_project determines the Unity version. Done means version-selectable generated indexes provide accurate signatures and obsolete warnings for supported public UnityEngine types while keeping the data size reasonable.

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

Mô tả

feature mcp-server priority: medium

Why it matters

A hand-curated list of 59 entries cannot compete with the model's own memory, so lookup_api adds little value today. What models genuinely lack is version-accurate facts: which members exist in Unity 6.x, which are obsolete, and what the exact signatures are. A generated index makes the tool authoritative instead of decorative, and fulfils the M2 roadmap goal of "500+ entries".

Proposal

  • A build script that generates unity_api_index.json from Unity's ScriptReference (or from the UnityEngine/UnityEditor reference assemblies via reflection / System.Reflection.Metadata), capturing type, member, signature, [Obsolete] message, and since-version.
  • Store per Unity version (6000.0 LTS, latest 6.x), selectable via a unity_version argument (defaulting to the version found by analyze_project).
  • Keep the curated entries as "examples/notes" layered on top.
  • Ranked fuzzy search; return obsolete status and replacement prominently.
  • Run the generator in the weekly data workflow (as a PR), replacing the current lifecycle-only refresh.

Done when

lookup_api returns accurate signatures and obsolete warnings for any public UnityEngine type in the supported versions, with size kept reasonable (compressed or SQLite).

Ngôn ngữ chính
C#
Star
4
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

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 TMHSDigital/Unity-Developer-Tools

Tất cả issue của TMHSDigital/Unity-Developer-Tools

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.