unity find layer by name code example
Example: unity find layer by name
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Debug.Log(LayerMask.NameToLayer("TransparentFX"));
}
}
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Debug.Log(LayerMask.NameToLayer("TransparentFX"));
}
}