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/ReadOnlyTest.cs

31 lines
458 B
C#

3 months ago
using UnityEngine;
namespace NaughtyAttributes.Test
{
public class ReadOnlyTest : MonoBehaviour
{
[ReadOnly]
public int readOnlyInt = 5;
public ReadOnlyNest1 nest1;
}
[System.Serializable]
public class ReadOnlyNest1
{
[ReadOnly]
[AllowNesting]
public float readOnlyFloat = 3.14f;
public ReadOnlyNest2 nest2;
}
[System.Serializable]
public struct ReadOnlyNest2
{
[ReadOnly]
[AllowNesting]
public string readOnlyString;
}
}