Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Feb 25, 2018 at 02:04 AM by expat1999 for the following reason:

The question is answered, right answer was accepted

avatar image
1
Question by expat1999 · Feb 16, 2018 at 08:11 AM · editor-scriptingeditorguipropertydrawerfoldoutproperty fields

EditorGUI.Foldout -- Cannot interact with contents!

Quite simply, clicking on anything within an EditorGUI.Foldout will result in closing the Foldout. Also, if the clickable label is disabled, you can't interact with anything in at all.

:

If you have questions or need screenshots just ask! :D --- expat1999

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image RobAnthem · Feb 21, 2018 at 08:07 AM 1
Share

I'd suggest not using foldouts, you can easily get the same effect with any other bool-based editor layout function and style.

avatar image meat5000 ♦ · Feb 21, 2018 at 08:47 AM 2
Share

Is this similar to your issue? https://answers.unity.com/questions/299618/unity-editor-keeping-your-foldout-from-collapsing.html


https://answers.unity.com/questions/684414/custom-editor-foldout-doesnt-unfold-when-clicking.html


Folder has a toggleOnLabelClick field. Are you using the constructor that utilises it?

1 Reply

  • Sort: 
avatar image
1
Best Answer

Answer by expat1999 · Feb 25, 2018 at 02:04 AM

Found an answer to my own question in another Unity Answers post. It was probably worded better, judging by the comments on my own post, but here it is for those who may need it:

:

EditorGUI.Foldout consumes click so GUI.Button doesnt work when inside of foldout region.

:

The top reply makes use of EditorGui.BeginProperty, EditorGui.EndProperty as well as EditorGUIUtility.singleLineHeight (basically).

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MaxGuernseyIII · Feb 25, 2018 at 03:56 AM 0
Share

You might be the first person in the history of the Internet to recuse in this way...

Follow this Question

Answers Answers and Comments

85 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

EditorGUI.Foldout consumes click so GUI.Button doesnt work when inside of foldout region. 1 Answer

GetPropertyHeight infinite recursion on drawer 1 Answer

How to get width at which Inspector does line breaks (for Vectors) 1 Answer

Why is my property drawer not drawing on the next line? 1 Answer

Using EditorGUI.ObjectField in PropertyDrawer 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges