unity get public layermask variable

Code Example - unity get public layermask variable

                
                        int layer = (int)Mathf.Log(uninteractablePartsLayer.value, 2);
Debug.Log("uninteractablePartsLayer "+LayerMask.LayerToName(layer));