t furu/add WorldItemReferenceListTracer#12
Open
tfuru wants to merge 3 commits into
Open
Conversation
tfuru
commented
Jun 11, 2026
- WorldItemReferenceListTracer配下のクラス名およびファイル名の簡略化リファクタリング
- エディタウィンドウのメニュー名をWorldItemRefTracerに変更
- WorldItemReferenceListTracerのノードが重なる問題を解決するため自動配置アルゴリズムを刷新
There was a problem hiding this comment.
Pull request overview
WorldItemReferenceList に登録されている参照関係を可視化するための Unity EditorWindow(WorldItemReferenceListTracer / WorldItemRefTracer)を追加し、ノード重なり回避のための自動配置ロジックを刷新するPRです。
Changes:
- WorldItemReferenceListTracer の EditorWindow(表示・操作・描画)一式を新規追加
- スクリプト内
$.worldItemReference/_.worldItemReference参照の抽出と、参照関係のグラフ生成・自動整列を実装 - エディタメニュー名を
CCKProcessTracer/WorldItemRefTracerに変更し、ログ表示を整形
Reviewed changes
Copilot reviewed 30 out of 48 changed files in this pull request and generated 23 comments.
Show a summary per file
| File | Description |
|---|---|
| Editor/WorldItemReferenceListTracer/View.cs | ビュー座標変換(ズーム/スクロール)と入力処理 |
| Editor/WorldItemReferenceListTracer/View.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/TracerWindow.cs | EditorWindow 本体(描画呼び出し・更新/リセットUI・メニュー登録) |
| Editor/WorldItemReferenceListTracer/TracerWindow.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/README.md | 機能説明ドキュメント |
| Editor/WorldItemReferenceListTracer/README.md.meta | Unity text meta(新規) |
| Editor/WorldItemReferenceListTracer/ProcessObject/RefObjectFactory.cs | シーン走査、参照抽出、Connect生成、自動配置 |
| Editor/WorldItemReferenceListTracer/ProcessObject/RefObjectFactory.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/ProcessObject/RefObject.cs | 表示用データ(RefObject) |
| Editor/WorldItemReferenceListTracer/ProcessObject/RefObject.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/ProcessObject.meta | Unity folder meta(新規) |
| Editor/WorldItemReferenceListTracer/ObjectFrame.cs | GameObject枠(ObjectFrame)と選択処理 |
| Editor/WorldItemReferenceListTracer/ObjectFrame.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/Node/Node.cs | ノード表示とキー行(Button生成含む) |
| Editor/WorldItemReferenceListTracer/Node/Node.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/Node/Key.cs | 参照キー行とターゲット選択 |
| Editor/WorldItemReferenceListTracer/Node/Key.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/Node/Connect.cs | ノード間接続データ |
| Editor/WorldItemReferenceListTracer/Node/Connect.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/Node.meta | Unity folder meta(新規) |
| Editor/WorldItemReferenceListTracer/IButton.cs | ボタン押下インターフェース |
| Editor/WorldItemReferenceListTracer/IButton.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/Button.cs | ボタンデータ(Owner/rect/text) |
| Editor/WorldItemReferenceListTracer/Button.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/Draw/ObjectFrameDrawer.cs | ObjectFrame の背景/枠描画 |
| Editor/WorldItemReferenceListTracer/Draw/ObjectFrameDrawer.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/Draw/NodeDrawer.cs | Node の背景/区切り線描画 |
| Editor/WorldItemReferenceListTracer/Draw/NodeDrawer.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/Draw/LineDrawer.cs | Handles による線描画ユーティリティ |
| Editor/WorldItemReferenceListTracer/Draw/LineDrawer.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/Draw/ArrowDrawer.cs | Connect の矢印描画 |
| Editor/WorldItemReferenceListTracer/Draw/ArrowDrawer.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/Draw/ButtonDrawer.cs | IMGUIボタン描画(Owner別スタイル) |
| Editor/WorldItemReferenceListTracer/Draw/ButtonDrawer.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/Draw.meta | Unity folder meta(新規) |
| Editor/WorldItemReferenceListTracer/DragController.cs | ObjectFrame 名称部分のドラッグ移動 |
| Editor/WorldItemReferenceListTracer/DragController.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/DisplayUpdater.cs | 表示更新(描画オブジェクト再構築トリガ) |
| Editor/WorldItemReferenceListTracer/DisplayUpdater.cs.meta | Unity script meta(新規) |
| Editor/WorldItemReferenceListTracer/Penpot/README.md | Penpot 開発環境メモ |
| Editor/WorldItemReferenceListTracer/Penpot/README.md.meta | Unity text meta(新規) |
| Editor/WorldItemReferenceListTracer/Penpot/ui-sample.png.meta | Unity texture meta(新規) |
| Editor/WorldItemReferenceListTracer/Penpot/WorldItemReferenceListTracer.penpot.meta | Unity default importer meta(新規) |
| Editor/WorldItemReferenceListTracer/Penpot.meta | Unity folder meta(新規) |
| Editor/WorldItemReferenceListTracer.meta | Unity folder meta(新規) |
| Editor/Node/Node.cs | 既存ログ出力の改行→区切り文字へ変更 |
Files not reviewed (16)
- Editor/WorldItemReferenceListTracer.meta: Generated file
- Editor/WorldItemReferenceListTracer/Button.cs.meta: Generated file
- Editor/WorldItemReferenceListTracer/DisplayUpdater.cs.meta: Generated file
- Editor/WorldItemReferenceListTracer/DragController.cs.meta: Generated file
- Editor/WorldItemReferenceListTracer/Draw.meta: Generated file
- Editor/WorldItemReferenceListTracer/Draw/ArrowDrawer.cs.meta: Generated file
- Editor/WorldItemReferenceListTracer/Draw/ButtonDrawer.cs.meta: Generated file
- Editor/WorldItemReferenceListTracer/Draw/LineDrawer.cs.meta: Generated file
- Editor/WorldItemReferenceListTracer/Draw/NodeDrawer.cs.meta: Generated file
- Editor/WorldItemReferenceListTracer/Draw/ObjectFrameDrawer.cs.meta: Generated file
- Editor/WorldItemReferenceListTracer/IButton.cs.meta: Generated file
- Editor/WorldItemReferenceListTracer/Node.meta: Generated file
- Editor/WorldItemReferenceListTracer/Node/Connect.cs.meta: Generated file
- Editor/WorldItemReferenceListTracer/Node/Key.cs.meta: Generated file
- Editor/WorldItemReferenceListTracer/Node/Node.cs.meta: Generated file
- Editor/WorldItemReferenceListTracer/ObjectFrame.cs.meta: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+44
to
+49
| Vector2 basePos = new Vector2(draggingObject.objectFrame.nameButtonRect.x, draggingObject.objectFrame.nameButtonRect.y) - draggingObject.dragOffset; | ||
| Vector2 targetPos = canvasMousePos - dragStartOffset; | ||
| draggingObject.dragOffset = targetPos - basePos; | ||
|
|
||
| DisplayUpdater.Update(); | ||
| e.Use(); |
Comment on lines
+10
to
+15
| foreach (var obj in RefObjectFactory.refObjects) | ||
| { | ||
| obj.ResetDisplayState(); | ||
| } | ||
|
|
||
| RefObjectFactory.RebuildAndAlign(); |
Comment on lines
+8
to
+11
| public GameObject gameObject; | ||
| public List<string> scriptNames = new List<string>(); | ||
| public List<Node> nodes = new List<Node>(); | ||
| public ObjectFrame objectFrame; |
Comment on lines
+7
to
+25
| public static float scale = 1; | ||
| static Vector2 scaleCenterPosition = new Vector2(0, 0); | ||
| static Vector2 scrollPosition = new Vector2(0, 0); | ||
| static Vector2 beforeMousePosition = Vector2.zero; | ||
|
|
||
| public static void Reset() | ||
| { | ||
| scale = 1; | ||
| scrollPosition = Vector2.zero; | ||
| } | ||
|
|
||
| public static void Control() | ||
| { | ||
| if (Event.current.type == EventType.ScrollWheel) | ||
| { | ||
| scaleCenterPosition = Event.current.mousePosition; | ||
| scale += Event.current.delta.y * -.03f * scale; | ||
| if (scale < 0.01f) scale = 0.01f; | ||
| } |
Comment on lines
+1
to
+2
| fileFormatVersion: 2 | ||
| guid: ad37dfd3a55e64876b8ec77af30cb007 No newline at end of file |
Comment on lines
+1
to
+2
| fileFormatVersion: 2 | ||
| guid: 213bef77f7e8546beae81236772743cd No newline at end of file |
Comment on lines
+1
to
+2
| fileFormatVersion: 2 | ||
| guid: ed2748b1f13804b65a388c06f35c7118 No newline at end of file |
Comment on lines
+1
to
+2
| fileFormatVersion: 2 | ||
| guid: 91f067492ef4b438b9a7b29dac7a9c2b No newline at end of file |
Comment on lines
+9
to
+12
| public Rect rect; | ||
| public string text; | ||
| public Color textColor = new Color(0.933f, 0.933f, 0.933f, 1.000f); | ||
|
|
Comment on lines
+1
to
+2
| using System.Collections.Generic; | ||
| using UnityEngine; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.