codewriter-packages / Tri-Inspector

Free inspector attributes for Unity [Custom Editor, Custom Inspector, Inspector Attributes, Attribute Extensions]
MIT License
989 stars 48 forks source link

Add drawer for Button with parameters #119

Closed vanifatovvlad closed 1 year ago

vanifatovvlad commented 1 year ago

Button

[Button(ButtonSizes.Large)]
private void DoButtonWithParameters(Vector3 vec, string str = "default value")
{
    Debug.Log($"Button with parameters: {vec} {str}");
}