Skip to content

Instantly share code, notes, and snippets.

@der-hugo
der-hugo / Example.cs
Created November 15, 2023 09:27
Unity Inspector dropdown for a single layer (as contrary to the LayerMask)
using System;
using UnityEngine;
public class Example : MonoBehaviour
{
[SingleLayer] public int layer;
[ContextMenu(nameof(Test))]
private void Test()
{