Search Unity

  1. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    Dismiss Notice

EditorGUI.ToggleLeft doesn't work with custom style?!

Discussion in 'Immediate Mode GUI (IMGUI)' started by mhofer, Oct 18, 2017.

  1. mhofer

    mhofer

    Joined:
    Aug 30, 2017
    Posts:
    18
    Apparently EditorGUI.ToggleLeft insists on using its builtin checkbox style in addition to the given style? I'm guessing this is a bug?

    ToggleLeft_wtf.PNG
     
    NMJ_GD and Senshi like this.
  2. NMJ_GD

    NMJ_GD

    Joined:
    Dec 28, 2019
    Posts:
    9
    2021 Here (Version 2019.4.18f1). It is still a Bug LOL. But if you want workaround it is selecting
    EditorStyles.label
    as a Guistyle
     
unityunity