Quantcast
Channel: Latest Questions by karl_
Viewing all articles
Browse latest Browse all 90

How to use Editor Styles?

$
0
0

I'm trying to get the same effect as the small button in the Unity inspector, but to no avail. Here's what I've got:

EditorGUIUtility.LookLikeInspector();
if(GUILayout.Button("+", radioButton) )
{
    // Stuff
}

From reading the documentation it looks like it ought to behave just like a normal style on a GUILayout button, but I keep getting the "Uknown Identifer : 'radioButton' ". Am I using this incorrectly?


Viewing all articles
Browse latest Browse all 90

Trending Articles



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