diff --git a/Assets/UdonSharp/Editor/UdonSharpResolverContext.cs b/Assets/UdonSharp/Editor/UdonSharpResolverContext.cs index 872d665f..0d33af47 100644 --- a/Assets/UdonSharp/Editor/UdonSharpResolverContext.cs +++ b/Assets/UdonSharp/Editor/UdonSharpResolverContext.cs @@ -173,6 +173,7 @@ public bool ReplaceInternalEventName(ref string eventName) { "_inputLookHorizontal", new System.Tuple[] { new System.Tuple(typeof(float), "inputLookHorizontalFloatValue"), new System.Tuple(typeof(VRC.Udon.Common.UdonInputEventArgs), "inputLookHorizontalArgs") } }, { "_inputLookVertical", new System.Tuple[] { new System.Tuple(typeof(float), "inputLookVerticalFloatValue"), new System.Tuple(typeof(VRC.Udon.Common.UdonInputEventArgs), "inputLookVerticalArgs") } }, { "_onOwnershipTransferred", new System.Tuple[] { new System.Tuple(typeof(VRC.SDKBase.VRCPlayerApi), "onOwnershipTransferredPlayer") } }, + { "_onPostSerialization", new System.Tuple[] { new System.Tuple(typeof(VRC.Udon.Common.SerializationResult), "onPostSerializationResult") } }, }; public System.Tuple[] GetMethodCustomArgs(string methodName) diff --git a/Assets/UdonSharp/Scripts/UdonSharpBehaviour.cs b/Assets/UdonSharp/Scripts/UdonSharpBehaviour.cs index b3ff77b5..8c01a7e4 100644 --- a/Assets/UdonSharp/Scripts/UdonSharpBehaviour.cs +++ b/Assets/UdonSharp/Scripts/UdonSharpBehaviour.cs @@ -149,7 +149,7 @@ public virtual void OnPlayerCollisionStay(VRC.SDKBase.VRCPlayerApi player) { } public virtual void OnPlayerParticleCollision(VRC.SDKBase.VRCPlayerApi player) { } public virtual void OnPlayerRespawn(VRC.SDKBase.VRCPlayerApi player) { } - public virtual void OnPostSerialization() { } + public virtual void OnPostSerialization(VRC.Udon.Common.SerializationResult result) { } public virtual bool OnOwnershipRequest(VRC.SDKBase.VRCPlayerApi requestingPlayer, VRC.SDKBase.VRCPlayerApi requestedOwner) => true; public virtual void MidiNoteOn(int channel, int number, int velocity) { }