Tri-Inspector/Editor.Samples/Buttons/Buttons_ButtonSample.cs
2023-06-24 16:06:50 +04:00

17 lines
390 B
C#

using TriInspector;
using UnityEngine;
public class Buttons_ButtonSample : ScriptableObject
{
[Button("Click me!")]
private void DoButton()
{
Debug.Log("Button clicked!");
}
[Button(ButtonSizes.Large)]
private void DoButtonWithParameters(Vector3 vec, string str = "default value")
{
Debug.Log($"Button with parameters: {vec} {str}");
}
}