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. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

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,125
    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,125
    Is it impossible?
     
  3. TSRajesh

    TSRajesh

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

    nathfade

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

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    19,831
    And the same answer applies.