Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Problem with DrawPreview in Editor

Discussion in 'Editor & General Support' started by thangnh111, Apr 12, 2024.

  1. thangnh111

    thangnh111

    Joined:
    Aug 4, 2020
    Posts:
    21
    I'm currently working with the Preview Editor, but there something different with a EditorWindow and Inspector.
    Example: i'm using EditorGUILayout to draw a label like this:
    upload_2024-4-12_7-27-45.png

    And the result is:

    upload_2024-4-12_7-28-14.png
     

    Attached Files:

  2. thangnh111

    thangnh111

    Joined:
    Aug 4, 2020
    Posts:
    21
    Why the text is arranging from bottom?
     
  3. thangnh111

    thangnh111

    Joined:
    Aug 4, 2020
    Posts:
    21
    I'm trying to use GUILayout.BeginArea, but this method seem to be doesn't work in side DrawPreview, the content inside BeginArea has gone away, nothing rendered :(