This commit is contained in:
Даниил Заикин
2026-06-17 20:44:53 +03:00
parent 9d153773c2
commit b133e7c656
1880 changed files with 244545 additions and 0 deletions
@@ -0,0 +1,30 @@
using UnityEngine;
namespace NaughtyAttributes.Test
{
public class RequiredTest : MonoBehaviour
{
[Required]
public Transform trans0;
public RequiredNest1 nest1;
}
[System.Serializable]
public class RequiredNest1
{
[Required]
[AllowNesting] // Because it's nested we need to explicitly allow nesting
public Transform trans1;
public RequiredNest2 nest2;
}
[System.Serializable]
public class RequiredNest2
{
[Required("trans2 is invalid custom message - hohoho")]
[AllowNesting] // Because it's nested we need to explicitly allow nesting
public Transform trans2;
}
}