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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Question Draw Editor instance in Custom Property Drawer

Discussion in 'Immediate Mode GUI (IMGUI)' started by Cloudwalker_, Mar 22, 2023.

  1. Cloudwalker_


    Jan 3, 2014
    Is there a way to control the position of an editor in a custom property drawer?

    Editor Instance is created with Editor.CreateEditor() and then I call OnInspectorGUI to render the editor. The editor renders where the property begins and renders on top of my classes fields. I want to render the class fields for the property first, and then render the editor below them, but cannot figure out how to control the rect.

    The property is a serialized class so I can't use custom editors for the rendering.
  2. lapras_eth


    Jun 20, 2022
    wondering the same