You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
553 B
C#
24 lines
553 B
C#
using UnityEngine;
|
|
|
|
namespace NaughtyAttributes.Test
|
|
{
|
|
//[CreateAssetMenu(fileName = "TestScriptableObject", menuName = "NaughtyAttributes/TestScriptableObject")]
|
|
public class _TestScriptableObject : ScriptableObject
|
|
{
|
|
[MinMaxSlider(0.0f, 1.0f)]
|
|
public Vector2 minMaxSlider;
|
|
|
|
[Dropdown("GetVectorValues")]
|
|
public Vector3 vectorValue;
|
|
|
|
private DropdownList<Vector3> GetVectorValues()
|
|
{
|
|
return new DropdownList<Vector3>()
|
|
{
|
|
{ "Right", Vector3.right },
|
|
{ "Up", Vector3.up },
|
|
{ "Forward", Vector3.forward }
|
|
};
|
|
}
|
|
}
|
|
} |