Common Library

Changelog

Release history of the Common Library, newest first.

v0.3.1 2026-10-20

✨ Added

  • UdonDebug writes log messages prefixed with the type and object name of the behaviour that wrote them. In the editor, both names are color coded
  • IsLocallyOwned(), HasOwnership(player), SetOwnership(player) and TakeOwnership() extension methods for GameObject and UdonSharpBehaviour. The behaviour variants return false or do nothing when the behaviour has already been destroyed
  • [EventHook] marks overridable hooks with an empty body. Overrides do not need to call the base implementation
  • [MustCallBase] marks methods whose overrides must call the base implementation
  • [CustomEvent] marks methods invoked via SendCustomEvent or SendCustomEventDelayedSeconds
  • [NetworkEvent] marks methods invoked via SendCustomNetworkEvent
  • The editor now checks these attributes whenever scripts are reloaded and logs a warning for every violation. Clicking a warning selects the offending script
  • AbstractSynchronizedBehaviour: Start, Update, OnPlayerJoined, OnPlayerLeft, OnOwnershipTransferred, OnPostSerialization and OnDeserialization are now marked [MustCallBase], and _OnStateInitialized() is marked [EventHook]

🔧 Changed

  • VRChat Worlds SDK 3.8.1 or newer is now required
  • AbstractSynchronizedBehaviour.StateInitialized has been renamed to IsStateInitialized and is now public - see state initialization
  • AbstractSynchronizedBehaviour.OnStateInitialized() has been renamed to _OnStateInitialized(). Overrides using the old name no longer compile
  • Subclasses of AbstractSynchronizedBehaviour now always use manual synchronization unless they declare their own [UdonBehaviourSyncMode]
  • AbstractSynchronizedBehaviour now writes its log messages via UdonDebug

🐞 Fixed

📚 Documentation

  • _OnStateInitialized() now explains when it is invoked
  • The contribution guidelines now describe the package’s code conventions

v0.2.1 2026-10-18

🐞 Fixed

  • ArrayUtils.RemoveElement: the last element of the returned array was left empty (null or the type’s default value) unless the removed element was the last one
  • ArrayUtils.RemoveElement: a negative index now returns the array unchanged instead of throwing an exception
  • ArrayUtils.FindElement: searching for null now finds null elements; the fix in 0.2.0 was incomplete
  • ArrayUtils.FindElement: a negative or out-of-range offset now returns -1 instead of throwing an exception

v0.2.0 2026-10-18

✨ Added

  • AbstractSynchronizedBehaviour.StateInitialized tells you whether an object has state yet, either because the local owner set it or because it was received from the network - see state initialization
  • AbstractSynchronizedBehaviour.OnStateInitialized() is a hook that subclasses can override. It runs once, when the state is first initialized

🔧 Changed

  • AbstractSynchronizedBehaviour now implements OnDeserialization - implementations which override it must call base.OnDeserialization()
  • synchronizationBackoff now has a minimum of 0.1 seconds in the Inspector

🐞 Fixed

  • AbstractSynchronizedBehaviour: a pending synchronization retry could be skipped when the wait timer landed on exactly zero
  • AbstractSynchronizedBehaviour: an invalid synchronizationBackoff is now always logged as an error, even when synchronization debugging is off
  • ArrayUtils.RemoveElement: the returned array was filled with the removed element instead of the remaining ones

📚 Documentation

  • Subclasses of AbstractSynchronizedBehaviour must call the base implementation of every method they override
  • _EnsureOwnership() now explains that changing values before the state is initialized may reset them to their defaults
  • ArrayUtils.AddElement now explains how it differs from AddElementOrCreate

v0.1.0 2026-03-16

✨ Added