Advertisement
napland

CustomTransformInspectorButton

Aug 19th, 2016
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1.     private GUILayoutOption[] buttonOptions = new GUILayoutOption[1] { GUILayout.Width(200f) };
  2.     private bool Button(string label)
  3.     {
  4.         GUILayout.BeginHorizontal();
  5.         GUILayout.FlexibleSpace();
  6.         bool value = GUILayout.Button(label, buttonOptions);
  7.         GUILayout.FlexibleSpace();
  8.         GUILayout.EndHorizontal();
  9.         return value;
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement