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.

Official Survey and Discussion - "Right-Click" (contextual) menu in the Scene View

Discussion in 'World Building' started by gabrielw_unity, Sep 6, 2022.

  1. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    956
    **DISCLAIMER** This is an early survey only, no actual feature or timeline is implied or guaranteed.

    Hi there! We are beginning explorations for a "right-click menu" in the Scene View. Meaning, the fairly standard ability to right-click (or other shortcut) in the Scene View, and see a menu appear with contents matching the context.

    The intent here is to gather basic expectations and general feedback, before considering further. If enabled, this would be a major UX change for Unity, and we want to ensure everyone has a chance, early on, to discuss this.

    Please take a few minutes to fill out the short survey HERE, and use this thread for discussion. Thank you for your time and input!
     
    Wattosan likes this.
  2. warthos3399

    warthos3399

    Joined:
    May 11, 2019
    Posts:
    1,539
    All your presenting is to take what we already can do by right clicking the asset (lets say a rock), in the hierarchy and making it easier by just right clicking the object itself in-scene. Im not opposed to this idea, as other progs do this.

    I feel im not understanding exactly what your goal is. Does this mean the right click in the hierarchy will be removed, and only accessable from right clicking the object in-scene?. Maybe showing an example would better help people understand what you are presenting.
     
  3. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    956
    Hi Warthos :) I'm keeping it fairly general on purpose here, to not bias answers. To clarify a bit though - this is adding a new feature, not changing or removing others. The main benefit being to artists, who could now interact with an item directly in their view, vs needing to move over to the hierarchy and find the item there.

    Additionally, it opens up exciting new ways to interact with items not shown in the Hierarchy - vertices on meshes, spline points, tiles, etc.
     
    warthos3399 likes this.
  4. warthos3399

    warthos3399

    Joined:
    May 11, 2019
    Posts:
    1,539
    Thanks for clarifying that. I think its a great idea to impliment, and would speed up project time, my personal one is delete, so many times i just want to click and delete (as i do in other progs), and not have to make an additional process to do so.

    Moving (not removing) the right clicking menu in the hierarchy, to a right click in-scene would be great, and then elaborating on it would really help. Love the idea, thanks for your effort, appreciated :)
     
    gabrielw_unity likes this.
  5. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,077
    This thread never got any attention! womp womp.

    So in general yes, a thing like a right click menu that's invokable in the scene view is nice. It can't be on rmb since that's already used to rotate the camera and differentiating between click and drag is annoying and bad.


    One of the worst things about using Unity today is the difficulty of selecting things in the scene view. Especially in 2D games, you end up with a lot of transparent elements overlapping each other, and selecting the one you want is super annoying. You can end up clicking the same pixel 10+ times to get to the object you want. Prefabs and [SelectionBase] just not cooperating with each other does not help at all.

    The obvious solution, to me, is to have a pop-up menu you can bring up under the mouse that shows a hierarchy of all the objects that's under the mouse. We can do this ourselves (and have, at times!), but that's based on renderer/collider bounds, which is not as accurate as the algorithm Unity uses to decide what object(s) the mouse is over or not.

    A nice way to solve this partially for us (so we can make neat tools for our workflow instead of you having to fumble around to find a general purpose one) is to do two things:
    - Make it easy to open a temporary Overlay under where the mouse is (so we don't have to fiddle with drawing UI in DuringSceneGUI)
    - Expose the internal function that has to exist somewhere that decides "which objects are under the mouse" that's used to cycle through objects when we click in the scene view.