Skip to content

Instantly share code, notes, and snippets.

View J-Bustin's full-sized avatar

Jonathan B. J-Bustin

View GitHub Profile
@elringus
elringus / ReadOnlyAttribute.cs
Created June 29, 2017 14:06
ReadOnly property drawer for Unity: add a [ReadOnly] attribute to a serialized field to make it show up as read only in the inspector
// Put this outside of an 'Editor' folder.
using UnityEngine;
public class ReadOnlyAttribute : PropertyAttribute { }