Skip to content

Instantly share code, notes, and snippets.

@mrpropellers
mrpropellers / SerializedPropertyExtensions.cs
Created February 28, 2022 23:38 — forked from aholkner/SerializedPropertyExtensions.cs
Unity editor extension providing value get/set methods for SerializedProperty. This simplifies writing PropertyDrawers against non-trivial objects.
using System.Collections;
using System.Reflection;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEngine;
// Provide simple value get/set methods for SerializedProperty. Can be used with
// any data types and with arbitrarily deeply-pathed properties.
public static class SerializedPropertyExtensions
{