This commit is contained in:
SoulliesOfficial
2025-10-23 00:49:44 -04:00
parent 9b1b5ca93f
commit 61a397dd4c
9846 changed files with 2618439 additions and 793547 deletions

View File

@@ -0,0 +1,30 @@
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;
}
}