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.
CrowdControl/Assets/Plugins/NaughtyAttributes/Scripts/Test/InputAxisTest.cs

35 lines
496 B
C#

3 months ago
using UnityEngine;
namespace NaughtyAttributes.Test
{
public class InputAxisTest : MonoBehaviour
{
[InputAxis]
public string inputAxis0;
public InputAxisNest1 nest1;
[Button]
private void LogInputAxis0()
{
Debug.Log(inputAxis0);
}
}
[System.Serializable]
public class InputAxisNest1
{
[InputAxis]
public string inputAxis1;
public InputAxisNest2 nest2;
}
[System.Serializable]
public struct InputAxisNest2
{
[InputAxis]
public string inputAxis2;
}
}