How to add checkboxes to a gameobject's script in the inspector?

I’ve looked through the few docs available for editor programming including Unity’s extending editor tutorial, however I would like to know how to add check box variables to variables in a script attached to a gameobject.

I’d like to add booleans (by making them public they automatically appear in the editor in a check box) but each variable is on it’s own line.

X

Y

Z

I would like to put three check boxes on ONE line in the inspector like this:

X Y Z

I’ve seen scripts in the past that do this but I can’t seem to find one now to check the source :frowning:

Thanks for the help!

Hi, do you mean toogle buttons?
Check this out:

EditorGUILayout.Toogle