Search Unity

  1. 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

Feedback Alt-P is a godsent

Discussion in '2020.1 Beta' started by Thygrrr, Feb 24, 2020.

  1. Thygrrr

    Thygrrr

    Joined:
    Sep 23, 2013
    Posts:
    133
    The new "Properties" inspector windows you get with right mouse button or Alt-P are so good.

    Thank you for adding that.

    (Don't try to get properties of an open scene though...)
     
  2. bjarkeck

    bjarkeck

    Joined:
    Oct 26, 2014
    Posts:
    272
    For those who don't have the latest Alpha, what is it!? Now you got me all hyped up :p
     
  3. Jichaels

    Jichaels

    Joined:
    Dec 27, 2018
    Posts:
    235
    Woooooooow I didn't know this was a thing, that's really cool !

    @bjarkeck Basically an Inspector popup with every field of the selected asset/object

    upload_2020-2-24_16-17-26.png
     
    SINePrime, Cromfeli, bjarkeck and 3 others like this.
  4. bjarkeck

    bjarkeck

    Joined:
    Oct 26, 2014
    Posts:
    272
    Guys, you are killing me, screenshot! :p

    Edit: Thanks! That is sweet
     
    Last edited: Feb 25, 2020
    Cromfeli likes this.
  5. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,726
    Yeah it's brilliant I can't live without this simple change, been recommending it heavily. Unity should shout about it more, makes everything easier.
     
    Thygrrr likes this.
  6. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    5,122
    I can't press alt+P with one hand on my keyboard. I would prefer a shortcut that can be fired single-handed. Having one hand on the mouse to select the asset, using the other to quickly trigger the shortcut.
     
    Stexe, oxysofts, WildStyle69 and 3 others like this.
  7. SINePrime

    SINePrime

    Joined:
    Jan 24, 2019
    Posts:
    35
    Nice, been waiting for UX improvements.

    Can the hotkey be rebound to, say, middle mouse button for instance?
     
    TextusGames and Peter77 like this.
  8. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    5,005
    Isn't it in the newish keyboard shortcut list?
     
    SINePrime and Peter77 like this.
  9. jdtec

    jdtec

    Joined:
    Oct 25, 2017
    Posts:
    176
    Is this the exact equivalent to what would otherwise be shown in the inspector if you left clicked on the object?
     
  10. willgoldstone

    willgoldstone

    Unity Technologies

    Joined:
    Oct 2, 2006
    Posts:
    776
    Hey folks, it's there, its just badly labelled - will find out why and fix. Here I've set mine to just P.

     
  11. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    6,189
    can this be made toggle-able? now it opens new window every time?
     
  12. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    7,051
    I like it too, but it makes things a little incoherent. How is it different from the inspector? Is it a single-use inspector?

    As with other minor additions to Unity lately, it feels like some developer woke up one day and said "I'll implement this today", instead of feeling like a part of some vision for Unity.
     
  13. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    5,005
    @willgoldstone, you could probably link to the preview thread for this. I tried to find it to do that, but couldn't really find it.
     
  14. benoitd_unity

    benoitd_unity

    Unity Technologies

    Joined:
    Jan 2, 2018
    Posts:
    210
    It will be named Focused Inspector. It is indeed a single-use inspector, for those use cases where you need to work on different Assets or GameObjects at the same time and don't want to constantly change your selection to do so.

    We do have plans for deeper workflow improvements but we felt this one would provide immediate value without disrupting existing workflows.

    You can also create a Focused Inspector from the ellipsis menu of a Component.

    Try it out and let us know what you think.
     
  15. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,726
    Yeah I can't use alt at all because it's rebound to CTRL on my keyboards. A habit picked up from mac. It's way way more efficient and comfortable to use CTRL if it's next to space :)

    So yeah same for the quick search as well. Would be nice if Unity fix it.
     
    Peter77 likes this.
  16. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    675
    Oh, very interesting. I'm doing something similar for a few years now. I have a simple script that provides pretty much the same functionality for ScriptableObjects (Focussed inspector on the left, my inspector on the right)
    upload_2020-3-6_14-24-32.png

    A few notes from my experience:

    I use double click to open the assets in a new window. This is very accessible and easy to remember, might be an interesting alternative/addition to using a shortcut from a UX perspective.

    Oftentimes, when opening the additional windows, it is so I can easily connect them to one another. The current workflow for the focussed Inspector would be to ping the object in order to have something draggable. In my case, I made a small draggable area in the top left, with which I don't have to do that extra step. Might be interesting to consider as well :)
     
    Last edited: Mar 6, 2020
  17. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    5,122
    That's a really smart improvement!
     
  18. benoitd_unity

    benoitd_unity

    Unity Technologies

    Joined:
    Jan 2, 2018
    Posts:
    210
    Yes I also like that suggestion, taking note of it.
     
    Peter77 likes this.
  19. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    5,122
    I guess that would be useful not only for the Focus Inspector, but the regular Inspector as well.
     
    Johannski and benoitd_unity like this.
  20. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    675
    Assetizer.gif
    Totally, that's also what I thought, so I made a simple DraggableAttribute. In the gif you can also see another advantage of the double click: There is no ambiguity whether the game object/ScriptableObject isthe one the Focused Inspector should be for, or the Component itself (This happens for SerializedFields in the normal inspector when using a shortcut).
     
    oxysofts, Jaimi and Peter77 like this.
  21. Player7

    Player7

    Joined:
    Oct 21, 2015
    Posts:
    1,535
    Seeing as you posted a picture of it... https://forum.unity.com/threads/editor-hotkey-shortcuts-editor.841693/

    Why can't you click on that hotkey map and have the command panel actually show all shortcuts that are mapped to that selected key(s) -including combo modifiers... it would certainly be useful in seeing what certain keys are being used for.. instead of looking at a giant fff off list things.. because its otherwise useless unless you know command to put in the input filter box. . or make filter box support a hotkey arg -P and it will list the shortcuts mapped to P
     
    JoNax97 likes this.
  22. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    3,552
    I'll rain on your parade with a few small bugs, floater = focused inspector:
    1. Ctrl+W doesn't close the frontmost floater.
    2. ALT+P on the same object keeps spawning new ones instead of bringing forward already opened one
    3. Floaters are created in cascade so we have to move them for inter object connection (and probably most usage).

    improvement:
    1. Double click would be nice but second click is already used to deselect and double click would induce delay in the interaction. So instead double middle click or right click + key modifier = new floater at the cursor. At the cursor gives faster access
    2. In fact there could be a "create floater near cursor" shortcut for fast change and a "create floater next to others" for convenient connection.
    3. Optionally create floaters side by side. Ideally this method should have enough layout intelligence to add the new floater next to the frontmost floater and keep that frontmost floater's size.

    What is this? It sounds like a trigger word from a James Bond.
     

    Attached Files:

  23. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    5,122
    It usually stands for a series of dots such as ...
    I guess he referred to the three vertically arranged dots button in the upper right area of the inspector.
     
unityunity