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 have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Button with Popup field

Discussion in 'Immediate Mode GUI (IMGUI)' started by szaryx, Feb 9, 2023.

  1. szaryx

    szaryx

    Joined:
    May 26, 2022
    Posts:
    3
    Hi,

    I’m learning UI Toolkit for Editor currently, and I’m trying to recreate the FloatReference property drawer in UI Toolkit from Unite 2017 talk “Game Architecture with Scriptable Objects”.


    I think can do most of the things, but I have with recreating this little 3 dots button that launches a popup with the option to select either a constant or a scriptable object.

    The sample project with IMGUI code in question is here: https://github.com/roboryantron/Unite2017 and specifically here:

    https://github.com/roboryantron/Uni...Code/Variables/Editor/FloatReferenceDrawer.cs

    I would appreciate any help with this.

    Thanks