- Home /
Best way to offset GUI element from scrollbar in custom inspector?
Hello, I'm using a mixture of GUI and GUILayout classes in a custom inspector and I'm wondering what the best way of offsetting the GUI element's width (GUILayout does this automatically, but because we provide our own rect for GUI classes I'm not sure how to accomplish this).
I have got the y position of the last rect in my custom inspector and created an offset based on if that rects y position is high enough, but that seems like a bit of a dirty way to fix the problem. any thoughts?
Your answer
Follow this Question
Related Questions
EditorGUI, EditorGUILayout, GUI, GUILayout... pshhh... WHEN TO USE WHAT?! 3 Answers
GUIlayout scrollbar, Not working well... 1 Answer
How to disable horizontal scrollbar in GUILayout scroll view? 3 Answers
Is it possible to store and display EditorGUILayout.Toggles? 0 Answers
How to change thickness of ScrollBar of GUILayout ScrollView? 0 Answers