First commit for private source control. Older commits available on Github.

This commit is contained in:
2026-03-26 12:52:52 +00:00
parent a04c602626
commit 2d449c4a17
2176 changed files with 408185 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
using UnityEngine;
using System.Collections.Generic;
namespace NaughtyAttributes.Test
{
public class DropdownTest : MonoBehaviour
{
[Dropdown("intValues")]
public int intValue;
#pragma warning disable 414
private int[] intValues = new int[] { 1, 2, 3 };
#pragma warning restore 414
public DropdownNest1 nest1;
}
[System.Serializable]
public class DropdownNest1
{
[Dropdown("StringValues")]
public string stringValue;
private List<string> StringValues { get { return new List<string>() { "A", "B", "C" }; } }
public DropdownNest2 nest2;
}
[System.Serializable]
public class DropdownNest2
{
[Dropdown("GetVectorValues")]
public Vector3 vectorValue;
private DropdownList<Vector3> GetVectorValues()
{
return new DropdownList<Vector3>()
{
{ "Right", Vector3.right },
{ "Up", Vector3.up },
{ "Forward", Vector3.forward }
};
}
}
}