Skip to content

Commit 5cdea6c

Browse files
committed
ver 2.0.0
1 parent b492d98 commit 5cdea6c

24 files changed

Lines changed: 195 additions & 122 deletions

en/context_menu.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
## Custom Context Menu
2+
---
3+
By right-clicking on a reference field, you can open the custom Reference Selector menu.<br>
4+
It supports not only standard reference fields, but also array and list fields.
5+
6+
![img](../images/context_menu1.png)
7+
8+
## Selection History
9+
---
10+
You can assign any object from the selection history as a reference.<br>
11+
Only objects whose types are assignable to the target reference field are displayed.
12+
13+
![img](../images/context_menu2.jpg)
14+
15+
## Hierarchy Tree
16+
---
17+
Searches for and assigns objects of the same type as the target reference field from parent, child, and sibling objects in the hierarchy.<br>
18+
When multiple objects are selected, the process is performed individually for each object.<br>
19+
For non-active objects, the search is also performed based on their respective positions in the hierarchy.<br>
20+
If no matching object is found, the reference is set to null.
21+
22+
![img](../images/context_menu3.jpg)
23+
24+
## Nearest Siblings
25+
---
26+
Searches through preceding and following sibling objects in the same hierarchy level until an object of the same type as the reference field is found.<br>
27+
Allows bidirectional copying of references between the nearest matching objects.<br>
28+
Supports array fields, and when multiple objects are selected, the process is performed individually for each object.
29+
30+
![img](../images/context_menu4.png)
31+
32+
## Get Component
33+
---
34+
Executes operations equivalent to the GetComponent family of APIs directly within the editor.<br>
35+
Supports array fields, and when multiple objects are selected, the process is performed individually for each object.
36+
37+
![img](../images/context_menu5.png)
38+
39+
## Recently Selected
40+
---
41+
Automatically assigns the most recently assignable reference object from the Selection History.
42+
43+
## Last Assigned
44+
---
45+
Reassigns the reference object that was most recently assigned via the Reference Selector menu.
46+

en/ref_field_assign.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

en/selection_history.md

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,39 @@
11
## Selection History
22
---
3-
This asset saves the selection history, allowing you to manage it through a custom menu displayed at the top of the Inspector.
3+
This asset stores the history of selected scene objects and asset objects.<br>
4+
The stored history can be accessed from the `Open History` menu displayed at the top of the Inspector.<br>
5+
This selection history is also used when assigning references via the **Reference Selector** context menu.<br>
6+
Additionally, you can directly open the Inspector window for a selected object by **Ctrl+clicking** it.
47

5-
- ***PREV***: Select the previous item from the selection history. (Number 3 key)
6-
- ***NEXT***: Select the next item from the selection history. (Number 4 key)
7-
- ***SelectionHistory***: View the full selection history and choose any item.
8+
- `PREV`: Selects the previous item in the selection history.
9+
- `NEXT`: Selects the next item in the selection history.
10+
- `Open History`: Displays the selection history list and allows you to select any item.
811

912
> [!TIP]
10-
> The selection history is retained even after modifying and recompiling the code.
13+
> The selection history is preserved even after script recompilation.<br>
14+
> History entries for scene objects are not lost when a scene is unloaded, and become valid again when the scene is reopened.
1115
12-
![img](https://emptybraces.github.io/reference-selector/images/selection_history1.jpg)
16+
![img](../images/selection_history1.jpg)
1317

1418
## Options
1519
---
16-
- ***Reset History***: Clears the selection history.
17-
- ***Hide Unselectable Items***: Hides items that cannot be selected from the context menu.
18-
- ***Hide SelectionHistory GUI***: Hides the selection history GUI in the Inspector. You can re-enable it from Tools/ReferenceSelector.
20+
- `Reset History`: Resets the selection history.
21+
- `Hide Unselectable Items`: Hides items that cannot be selected in the context menu.
22+
- `Hide SelectionHistory GUI`: Hides the **Selection History GUI** displayed at the top of the Inspector. It can be shown again from **Tools / Reference Selector**.
23+
- `Edit Shortcuts...`: Opens the shortcut settings window.
24+
- `Edit Preferences...`: Opens the **Reference Selector** preferences.
25+
- `Reference Selector Ver: X.X.X`: Displays the **Reference Selector** version.
1926

20-
![img](https://emptybraces.github.io/reference-selector/images/selection_history2.jpg)
27+
![img](../images/selection_history2.png)
2128

2229
## Shortcut Keys
2330
---
24-
The default settings are as follows:
31+
By default, the following shortcuts are assigned:
2532

26-
- ***Number 3 key***: PREV button
27-
- ***Number 4 key***: NEXT button
33+
- `Shift + Mouse Wheel Down`: PREV button
34+
- `Shift + Mouse Wheel Up`: NEXT button
2835

2936
> [!TIP]
30-
> You can change these settings at any time in the Edit/Shortcuts screen.
37+
> You can open the shortcut settings window at any time from **Edit / Shortcuts** or **Edit Shortcuts...**.
3138
32-
![img](https://emptybraces.github.io/reference-selector/images/selection_history3.jpg)
39+
![img](../images/selection_history3.jpg)

en/toc.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
- name: Introduction
22
href: ../index.md
3-
- name: Reference Field Assignment Feature
4-
href: ref_field_assign.md
5-
- name: Selection History Feature
3+
- name: Custom Context Menu
4+
href: context_menu.md
5+
- name: Selection History
66
href: selection_history.md

images/context_menu1.png

45.5 KB
Loading

images/context_menu2.jpg

88 KB
Loading

images/context_menu3.jpg

51.2 KB
Loading

images/context_menu4.png

13 KB
Loading

images/context_menu5.png

17.3 KB
Loading

images/intro1.jpg

-102 KB
Binary file not shown.

0 commit comments

Comments
 (0)