CUT-INSERT-RANGE Geek Inspector Addons
Available in the Unity Asset Store!
The bundle extends the Unity Editor and enables:
- cutting a range of array or list elements and placing them in the Geek Clipboard,
- inserting array or list elements available in the Geek Clipboard into an array or list at a clicked index,
- appending array or list elements available in the Geek Clipboard after a clicked index in an array or list,
- deleting a range of array or list elements,
- setting and resizing the array or list element range.
The addons included in the bundle extend the Unity Editor as described below.
Full source code included.
BUY | GEEK INSPECTOR ADDONS | SUPPORT FORUM | BUG REPORTS | FORUM
CUT-INSERT-RANGE Geek Inspector Addons
Available in the Unity Asset Store!
BUNDLE COMMANDS
This Geek Inspector Addons bundle includes three families of commands described below: “CUT”, “INSERT”, “RANGE” commands. You can access them in the 4AI Geek Context Menu appended to a standard Unity context menu related to array and list properties. The command names are shortened in this description usually.
CUT COMMANDS
- CUT range
- CUT range LOCKED
- DELETE range
- DELETE range LOCKED
INSERT COMMANDS
- INSERT at [x] (appears when the range is unlocked)
- INSERT at [x] and LOCK (appears when the range is locked)
- INSERT and LOCK range at [x] (appears when the range is unlocked)
- APPEND at [x] (appears when the range is unlocked)
- APPEND at [x] and LOCK (appears when the range is locked)
RANGE COMMANDS
- SET RANGE to R (submenus)
- SET RANGE to R LOCKED (submenus)
- RESIZE RANGE by R (submenus)
- RESIZE RANGE by R LOCKED (submenus)
- SET range START and LOCK
- SET range END and LOCK
HOW TO USE IT
For the purpose of this documentation the term “right-click” will be used as the operation opening a context menu.
You can open the 4AI Geek Context Menu as any context menu in the Unity Inspector by right-clicking on an array or list element name (not a value). In some versions of Unity it is also possible to right-click on the array/list name itself – in this case it assumes that the clicked element index is zero. 4AI Geek Context Menu is appended to the standard Unity context menu items.
BUNDLE ADDONS
The bundle contains some of Geek Inspector Addons, including necessary Geek Inspector Addons Core 1.0 files. Check the Unity Asset Store for availability of the addons. The plugins are planned to have the following names:
- CUT Array / List range – Geek Inspector Addon
- INSERT Array / List elements – Geek Inspector Addon
- APPEND Array / List elements – Geek Inspector Addon
- DELETE Array / List range – Geek Inspector Addon
- SET Array / List RANGE to N – Geek Inspector Addon
- RESIZE Array / List RANGE by N – Geek Inspector Addon
- SET Array / List range <START, END> and LOCK – Geek Inspector Addon
ADDON DESCRIPTIONS
Below you can find descriptions of the current Geek Inspector Context Menu addons.
Common terms and identifiers simplifying the descriptions
- clickedINDEX – clicked array or list item index,
- START – current FIXED / LOCKED range start,
- END – current FIXED / LOCKED range end,
- R – current range size (equal to: END-START+1 in the LOCKED state or b-a+1 in the UNLOCKED state),
- <a, b> – a range where a = clickedINDEX and (b – a + 1) = R
- <START, END>, LOCKED range – a range locked to specific array or list elements that is modified if the position of elements change,
- FIXED range – a range that was usually LOCKED earlier and UNLOCKED later,
- regular range <a, b> – the range <a, b> where b >= a,
- GEEK CLIPBOARD – internal Geek Inspector Addons clipboard.
SINGLE COMMANDS
SET range START and LOCK
SET the array or list range START to clickedINDEX so that the final range is <clickedINDEX, END> and is LOCKED. See the LOCK range command for more information.
SET range END and LOCK
SET the array or list range END to clickedINDEX so that the final range is <START, clickedINDEX> and is LOCKED. See the LOCK range command for more information.
CUT range
CUT the range <clickedINDEX, clickedINDEX+R-1> so that it is copied to the GEEK CLIPBOARD and deleted.
The related context menu item is available when the range is UNLOCKED. The calculated range must be regular and must fit in the array or list.
CUT range LOCKED
CUT the LOCKED range <START, END> so that it is copied to the GEEK CLIPBOARD and deleted.
The related context menu item is available when the range is LOCKED. The range must be regular and must fit in the array or list.
DELETE range
DELETE the range <clickedINDEX, clickedINDEX+R-1>.
The related context menu item is available when the range is UNLOCKED. The calculated range must be regular and must fit in the array or list.
DELETE range LOCKED
DELETE the LOCKED range <START, END>.
The related context menu item is available when the range is LOCKED. The range must be regular and must fit in the array or list.
INSERT at [x]
INSERT the GEEK CLIPBOARD contents at x=clickedINDEX and just before the item[clickedINDEX]. No items are overridden during this operation.
The related context menu item is available when the range is UNLOCKED.
INSERT at [x] and LOCK
INSERT the GEEK CLIPBOARD contents at the x=clickedINDEX and just before the item[clickedINDEX]. Next, lock the range of inserted elements. No items are overridden during this operation.
The related context menu item is available when the range is LOCKED.
INSERT and LOCK range at [x]
INSERT the GEEK CLIPBOARD contents at the x=clickedINDEX and just before the item[clickedINDEX]. Next, lock the range of inserted elements. No items are overridden during this operation.
The related context menu item is available when the range is UNLOCKED.
APPEND at [x]
APPEND the GEEK CLIPBOARD contents just after the x=clickedINDEX and just before the next item: clickedINDEX+1. No items are overridden during this operation.
The related context menu item is available when the range is UNLOCKED.
APPEND at [x] and LOCK
APPEND the GEEK CLIPBOARD contents just after the x=clickedINDEX and just before the next item: clickedINDEX+1. Next, lock the range of appended elements. No items are overridden during this operation.
The related context menu item is available when the range is LOCKED.
SUBMENUS
SET RANGE to R (submenus)
SET range to <clickedINDEX, clickedINDEX+R-1> so that the range size equals R. R is chosen by one of the command submenu items.
SET RANGE to R LOCKED (submenus)
SET range to <START, START+R-1> so that the range size equals R. R is chosen by one of the command submenu items. Next, update the LOCKED range. The related context menu item is available when the range is LOCKED. See the LOCK range command for more information.
RESIZE RANGE by R (submenus)
RESIZE the range <clickedINDEX, clickedINDEX+currentR-1> by R, so that the final range is <clickedINDEX, clickedINDEX+currentR+R-1>, where currentR is the range size before the operation. R is chosen by one of the command submenu items.
RESIZE RANGE by R LOCKED (submenus)
RESIZE the range <START, END> by R, so that the final range is <START, END+R>, where currentR is the range size before the operation. R is chosen by one of the command submenu items. Next, update the LOCKED range. The related context menu item is available when the range is LOCKED. See the LOCK range command for more information.
Geek Inspector Addons
Available in the Unity Asset Store!
Below you can find some screenshots related to the plugin “CUT-INSERT-RANGE Geek Inspector Addons”.
More information coming soon
Visit our products in the Unity Asset Store!
Soon more information on the Geek Inspector Addons will be provided here.