Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

CUT-INSERT-RANGE Geek Inspector Addons [RELEASED]

Discussion in 'Assets and Asset Store' started by 3dmars, Mar 6, 2021.

  1. 3dmars

    3dmars

    Joined:
    Jan 3, 2016
    Posts:
    24
    cut-insert-range-CoverImage1950x1300.png


    This asset is a bundle of productivity editor extensions called Geek Inspector Addons. It extends the Unity Editor and enables:
    • cutting an array or list element range and placing elements in the Geek Clipboard,
    • inserting array or list elements available in the Geek Clipboard at a clicked index in an array or list,
    • appending array or list elements available in the Geek Clipboard after a clicked index in an array or list,
    • deleting an array or list element range,
    • setting and resizing the array or list element range.

    This Geek Inspector Addons bundle includes three families of commands called: “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.

    Below you can find a video describing how you can use this asset:


    BUNDLE COMMANDS
    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
    GEEK CONTEXT MENU ITEMS

    cut-insert-range-context-menu-cropped-c256.gif
    After the installation of "CUT-INSERT-RANGE Geek Inspector Addons" new menu items will be appended to the standard Unity context menu related to array and list properties. Submenus are not visible in the above image. Below you can see example submenus:

    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 range start,
    • END – current fixed 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.


    You can find more details in the Unity Asset Store and on the plugin website at https://4ai.io/cut-insert-range-geek-inspector-addons/.

    If you are interested in other addons, you can find more information on all current and planned Geek Inspector Addons at https://4ai.io/geek-inspector-addons/ .

     
unityunity