Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/BitStrap/Examples/AttributesExample.cs
2026-02-21 16:45:37 +08:00

27 lines
531 B
C#

using UnityEngine;
namespace BitStrap.Examples
{
public class AttributesExample : MonoBehaviour
{
[Header("This is an example of the custom attributes in BitStrap.")]
[LayerSelector]
public int selectedLayer;
[TagSelector]
public string selectedTag;
[ReadOnly]
public int readOnlyInt = 7;
[HelpBox("This is a HelpBox.", HelpBoxAttribute.MessageType.Warning)]
public int fieldWithHelpBox = 2;
[Button]
public void ButtonTest()
{
Debug.Log("You pressed the button and executed a method.");
}
}
}