Skip to content

Instantly share code, notes, and snippets.

@romainPechot
Last active October 21, 2015 12:09
Show Gist options
  • Save romainPechot/acbdf7983d7be49fed71 to your computer and use it in GitHub Desktop.
Save romainPechot/acbdf7983d7be49fed71 to your computer and use it in GitHub Desktop.
[ReadOnly] attribute. Combined with [SerializeField] on a private variable.
using UnityEngine;
// put this script inside your Scripts folder.
public class ReadOnlyInspector : PropertyAttribute { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment