First commit for private source control. Older commits available on Github.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user