Skip to content

Instantly share code, notes, and snippets.

View streepje8's full-sized avatar
๐Ÿ‘€
Avid C# Enjoyer

streepje8

๐Ÿ‘€
Avid C# Enjoyer
View GitHub Profile
@tomkail
tomkail / BetterPropertyField.cs
Last active April 15, 2024 14:07
Unity editor helper that draws a serialized property (including children) fully, even if it's an instance of a custom serializable class.
using UnityEngine;
using UnityEditor;
using System.Collections;
public static class BetterPropertyField {
/// <summary>
/// Draws a serialized property (including children) fully, even if it's an instance of a custom serializable class.
/// Supersedes EditorGUILayout.PropertyField(serializedProperty, true);
/// </summary>
/// <param name="_serializedProperty">Serialized property.</param>