Skip to content

Instantly share code, notes, and snippets.

@karljj1
karljj1 / ObjectChangeEventsExample.cs
Last active June 17, 2025 15:40
Example of how to use ObjectChangeEvents in Unity
using System.Text;
using UnityEditor;
using UnityEngine;
[InitializeOnLoad]
public class ObjectChangeEventsExample
{
static ObjectChangeEventsExample()
{
ObjectChangeEvents.changesPublished += ChangesPublished;