Search Unity

Question EditorGUILayout.PropertyField without Foldout

Discussion in 'Immediate Mode GUI (IMGUI)' started by atmuc, May 20, 2023.

  1. atmuc

    atmuc

    Joined:
    Feb 28, 2011
    Posts:
    1,162
    When I use EditorGUILayout.PropertyField for an object inspector adds foldout triangle. How can I show PropertyField inspector without foldout?

    EditorGUILayout.PropertyField(MyObject);

    upload_2023-5-20_21-2-36.png
     
  2. atmuc

    atmuc

    Joined:
    Feb 28, 2011
    Posts:
    1,162
    Is it impossible?
     
  3. TSRajesh

    TSRajesh

    Joined:
    Jun 19, 2013
    Posts:
    69
     
  4. nathfade

    nathfade

    Joined:
    Aug 23, 2018
    Posts:
    3
    I have same question but for EditorGUI.PropertyField
     
  5. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,144
    And the same answer applies.