add new pack: Editor Attributes, complete GoTo cmd

This commit is contained in:
MinhHai
2026-01-09 15:01:29 +07:00
parent b9bf09f31a
commit 219c87f469
462 changed files with 18860 additions and 2 deletions
@@ -0,0 +1,21 @@
using UnityEngine;
using EditorAttributes;
namespace EditorAttributesSamples
{
[HelpURL("https://editorattributesdocs.readthedocs.io/en/latest/Attributes/NumericalAttributes/progressbar.html")]
public class ProgressBarSample : MonoBehaviour
{
[Header("ProgressBar Attribute:")]
[SerializeField, Range(0f, 100f)] private float value;
[SerializeField, ProgressBar] private int intBar;
[SerializeField, ProgressBar(100f, 50f)] private float floatBar;
void OnValidate()
{
intBar = (int)value;
floatBar = value;
}
}
}