Skip to content

Instantly share code, notes, and snippets.

@ryuuguu
ryuuguu / ExampleBehavior.cs
Last active June 21, 2023 04:12 — forked from ProGM/ExampleBehavior.cs
A PropertyDrawer to show a popup field with a generic list of string for your Unity3d attribute
using System;
using UnityEngine;
public class ExampleBehavior : MonoBehaviour {
[DropDownList("Cat", "Dog")] public string Animal;
//using a method
[DropDownList(typeof(ExamplePropertyDrawersHelper), "methodExample")]
public string methodExample;
}