GUIButtonBase.DrawButton C# (CSharp) Method

DrawButton() protected method

protected DrawButton ( ) : void
return void
	protected virtual void DrawButton() {
		if ( GUILayout.Button(text,style,layoutOptions.ToArray()) && enabled ) {
			if (OnButtonPressed != null) {
				OnButtonPressed(this);
			}
		}
	}