Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug F key still doesn't work in Hierarchy

Discussion in 'Editor & General Support' started by Unifikation, Jul 5, 2023.

Thread Status:
Not open for further replies.
  1. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
    Fitting to fill Scene view, when having an object selected in the Scene View, should permit the use of the F shortcut.

    Also when the Animation timelines are the focus of input, too!

    It doesn't work in either case:

    Mac, Unity 2022.3.1
     
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,638
    1: Have you tried a more recent version?
    2: Have you reported a bug?
     
  3. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
     
  4. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,638
    I'm on a PC and I haven't used 2022.3 yet as my current project is 2021.3, and I'd be crazy to update major versions at this stage.

    I'm just going through the usual steps. There's point pointing out a bug in a version three versions behind if you haven't tested if it's present in the current major version. And if it is, then you should report a bug.
     
  5. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
    Why?

    Have you seen usability things like this fixed because of bug reports?

    I filed a bug report for this back in 2019. That's why the "still..." in the title.

    There is NO EVIDENCE that filing bug reports for common problems, big issues and work flows helps, at all.
     
  6. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,638
    And what do you think not putting in a bug report will accomplish?

    Apart from wasting my time reading more of your annoying posts.
     
  7. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
    That's not enough of an accomplishment?
     
    AcidArrow likes this.
  8. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
     
  9. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,638
    And what was the response to the bug report? No response? I can understand the ire there. If they couldn't reproduce it, that's understandable too.
     
  10. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
    No multiply this by about 3 dozen. That's a conservative number of my personal, reproduced bugs that have been blown off, ignored or won't fix.

    Probably about the same number of workflow flails, like this example, or more.

    And then there's regressions. Like the spacebar not working properly when all but a certain part of the Animation Window is clicked for a specific focus. etc.

    Does the F key work for you when the Animation Window or Hierarchy Window are the focus, on a PC?
     
  11. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,638
    It's always worked for me in every context. It's important to note it only works when your mouse is actually over the scene view window. Have you just never realised that?
     
  12. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
    Not on a Mac. It's behaviour is not as you, nor I, expect.

    Thanks for the attempts at gaslighting.
     
  13. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,902
    F on Hierarchy Window does work (I'm on a Mac and using 2021) when I have selected something in the hierarchy and the pointer is over the hierarchy pressing F does the following: If I use a mouse, the hierarchy smoothly scrolls so that the selected GO is in view, if I'm using a trackpad it spazzes out a few times and on repeated presses it works, so generally it's of above average Unity quality.

    But maybe I'm missing something, can you describe what behaviour you're expecting and is not happening for you?
     
  14. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
    2022 LTS: nada. Nothing happens when pressing F after a hierarchy selection, nor if an object is selected in the hierarchy and the mouse/pointer/trackpad is anywhere on the screen.

    This behaviour you describe, of the hierarchy eventually revealing the object selected in the hierarchy would be useful. Never seen this happen, in all my time using Unity. I have to scroll to find the selected object all the time, because Unity loses its hierarchical position when going in and out of play mode, in and out of being the app focused and when saving.

    I expect F key shortcut to focus on the object in the Scene view, regardless of mouse position and window/panel focus. Just like it does in Maya, the app they copied this function from.

    The only time F works, for me, is when I select an object in the Scene View with the pointer, or select another object in the scene view (example when I can't see the object currently selected in the scene view view) and then use UNDO to reselect the prior object. Otherwise it does nothing.
     
  15. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,902
    Pressing F steals focus and puts it over whatever window the pointer is over.
     
  16. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,638
    Uh, no?

    Other windows are also listening for input and may also want the F-key for input, such as the inspector. The hierarchy window focusing on the selected object in the hierarchy (as in it scrolls to it), for example, which makes sense. So if the mouse is over them, they get input over the scene view.

    So not a bug at all.

    Edit: A lot of other 3d programs, such as Blender, work this way too. As most windows have a lot of cross-over in their hotkeys, and whatever window your mouse is over is the one that swallows up input.
     
  17. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
    And in Maya (the origin of this shortcut's key and operation) and Blender, the focus operation FOCUSES on the OBJECT in the Scene view, regardless of the "focus" of panels/windows.

    Please stop trying to make Unity's failure here to be somehow rightful behaviour. The F shortcut doesn't have another purpose. It's Focus and Shift+F is Follow. They're both related to focusing on the object in the Scene view. If they do anything else, or nothing at all, they're not working. Not doing something that's correct for you, just not working.
     
  18. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,902
    Does this not work for you, or are you expecting something different to happen? I'm not super clear still:


    This is on 2022
     
  19. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
    This is broken behaviour, then. The purpose of this shortcut is to focus on the currently selected object in Scene views. Not focus on panels and windows. This is made more clear by the Shift+F associated Follow extension of the Focus-on-Object feature to Focus-And-Follow-The-Object.
     
  20. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,638
    That's not at all true in the context of Blender, at all. I literally just opened up the latest version of Blender, and it doesn't do this, and it never has (been using Blender well over a decade). Unity has always worked this way and you've just never figured it out.

    Stop making stuff up. This is your opinion as to how things should work, it is not a bug.
     
  21. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
    Outside of the Scene View AND having selected the object with the pointer in some direct way, the F key does nothing, for me.

    Either way... I'm expecting it to ALWAYS focus on the currently selected object in the Scene View, regardless of which panel/window is currently active, as this is the most useful behaviour. When editing an animation, pressing the F key should reveal/focus on the currently selected object. When editing properties of an object in the Inspector, the F key should focus on the object in the Scene View. etc.
     
  22. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
    Then it's just completely S***, by design.
     
  23. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,638
    In you opinion.
     
  24. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,638
    So... when I'm typing in a text box in the inspector, it should steal focus from me and focus on the selected game object in the scene view?

    You realise that would be strictly worse behaviour. Miss me with this workflow you apparently want.
     
  25. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
    Bit of a reach. My, what long arms you have.
     
  26. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,902
    Context aware shortcuts is not a bad idea, F always brings in focus what you have selected in the current context. In the animation window it focuses on the selected keyframes (or at least, it should). F is always focus on current selection in context. Context changes depending on pointer position.

    Some software have like "a" for fit all / fit to screen on 3d view and "F" for menus and stuff, but even then, "a" doesn't work when you have your mouse over other viewports / UI elements, because you might want that shortcut do something different there.
     
  27. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,638
    Well you said 'when editing properties in the inspector'.

    In any case it was a stretch because your stance is absurd. Most shortcuts in Unity are contextual to the currently focused window, and there is always going to be some overlap in what windows inputs windows are expecting.

    This is true for tons of other programs. Blender has bucket loads of crossover in its shortcuts, and there is dozens of contexts where you'd want to focus on what's selected, so the focus button (period key by default) focuses on what's selected in the window you have focus on. It would make no sense to always focus the default 3d view, especially when there's lots of cases when you don't even have a 3d view open.

    And lets be real, if AcidArrow and I are on similar pages about something, you may want to rethink your stance.
     
  28. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
    Ok. You win. Unity shouldn't improve.
     
  29. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,638
    What you're asking for is strictly worse. What you're asking for is the opposite of how most programs work.

    Unity has made the right choice in this particular instance and you're acting like a child that won't admit they were wrong/misunderstood something.
     
  30. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
    I'm not arguing against contextual shortcuts, but am making a case that the global (and most significant, and original point of the shortcut) context shouldn't be lost.
     
  31. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
    In your opinion, when has Unity made a wrong choice?
     
  32. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,638
    Sorry but no. The shortcut F is for 'Frame Selected', Not 'Frame Selected in Scene View'. I imagine Unity has always worked this way for much longer than you've used it, and it's how programs like Blender have worked for even longer. This means whatever is selected in the current focus/context. It's a familiar shortcut, and all 3d applications I've used have worked this way.

    If this isn't to your liking then I suggest a spoon full of concrete to harden the f up.

    Plenty of times. Just not this pointless hill you seem so keen to expire upon.
     
  33. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    997
    This shortcut is from Maya.

    Blender is famous, above all else, for some of the worst usability in the history of software. For good reason. Not the metric you think it is.
     
  34. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,638
    Lol. Blender is older than Maya, and Maya has always copied it's most significant features from Blender, such as the Grease Pencil. 'Focus Selected' has been around longer than Maya, too, I assure you.

    Usability is an opinionated thing. Last time I used Maya (which was years ago, admittedly), I found the experience horrid and wondered why anyone would even pay money for it. That is my opinion.

    On the other hand Blender is like riding a bike for me and I much prefer its workflow. Probably because I've used one nearly 15 years and seldom used the other. We have our preferences/opinions.

    And sometimes we just have to use something we don't like. The software I use in my normal day-job is horrible. But do I make ass about tit of myself on the internet? No. I get my work done.
     
  35. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,638
    Also if it bereaves you that much you could write a pretty simple editor script to make this the behaviour. You know, use the tools the editor gives you to modify it to suit your workflow.
     
  36. UnityJuju

    UnityJuju

    Unity Technologies

    Joined:
    Jun 15, 2021
    Posts:
    208
    Hey folks,
    I believe this conversation somewhat became a little stingy, so I'll be closing this topic. As stated by other users on this topic, I advise you to report this bug, being something by design or not, and let our devs take care of it.
     
    spiney199 likes this.
Thread Status:
Not open for further replies.