Initial commit

This commit is contained in:
HussienX72u
2026-07-21 08:56:10 +03:00
commit 4017028111
9410 changed files with 2150500 additions and 0 deletions
@@ -0,0 +1,46 @@
using UnityEngine;
namespace NaughtyAttributes.Test
{
public class SortingLayerTest : MonoBehaviour
{
[SortingLayer]
public int layerNumber0;
[SortingLayer]
public string layerName0;
public SortingLayerNest1 nest1;
[Button]
public void DebugLog()
{
Debug.LogFormat("{0} = {1}", nameof(layerNumber0), layerNumber0);
Debug.LogFormat("{0} = {1}", nameof(layerName0), layerName0);
Debug.LogFormat("LayerToName({0}) = {1}", layerNumber0, SortingLayer.IDToName(layerNumber0));
Debug.LogFormat("NameToLayer({0}) = {1}", layerName0, SortingLayer.NameToID(layerName0));
}
}
[System.Serializable]
public class SortingLayerNest1
{
[SortingLayer]
public int layerNumber1;
[SortingLayer]
public string layerName1;
public SortingLayerNest2 nest2;
}
[System.Serializable]
public struct SortingLayerNest2
{
[SortingLayer]
public int layerNumber2;
[SortingLayer]
public string layerName2;
}
}