Quantcast
Channel: Questions in topic: "gui"
Viewing all articles
Browse latest Browse all 125

Best way to offset GUI element from scrollbar in custom inspector?

$
0
0
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?

Viewing all articles
Browse latest Browse all 125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>