Search Unity

Question Unity List Element Right-Click menu no longer includes "Properties..." ??

Discussion in 'Editor & General Support' started by quibit, Oct 8, 2023.

  1. quibit

    quibit

    Joined:
    Jan 1, 2019
    Posts:
    12
    I've found the "Properties..." context menu from a component List element extremely valuable and it doesn't seem to be showing in newer version of Unity for me (2022.3.9f1), is this something I can configure or is my Unity install corrupted or was it simply removed?

    The option still show in different versions of Unity.
    2021.1.14f1
    upload_2023-10-8_7-1-52.png

    2022.3.9f1
    upload_2023-10-8_7-3-39.png
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,402
    also visible in 2022.3.7f1,
    and release notes don't seem to mention anything related to that in .8, .9, .10,
    better report as a bug.
     
  3. Blake067

    Blake067

    Joined:
    Nov 9, 2017
    Posts:
    4
    2022.3.23f1 this bug still exists
    try this (in Editor Scripts)
    Code (CSharp):
    1.     using System;
    2.     using UnityEditor;
    3.     using UnityEngine;
    4.  
    5.     [InitializeOnLoad]
    6.     public static class ContextMenuFixing
    7.     {
    8.         static ContextMenuFixing()
    9.         {
    10.             EditorApplication.contextualPropertyMenu += OnPropertyContextMenu;
    11.         }
    12.  
    13.         private static void OnPropertyContextMenu(GenericMenu menu, SerializedProperty property)
    14.         {
    15.             if (property.propertyType == SerializedPropertyType.ObjectReference)
    16.             {
    17.                 if (property.objectReferenceValue is ScriptableObject scriptableObject)
    18.                 {
    19.                     menu.AddItem(new GUIContent("Properties (User)"), false, () =>
    20.                     {
    21.                         EditorUtility.OpenPropertyEditor(scriptableObject);
    22.                     });
    23.                 }
    24.             }
    25.         }
    26.     }
     
    Last edited: Apr 4, 2024