Created
March 5, 2024 10:47
-
-
Save baba-s/d46e56cc98e101fb799a961de1315b73 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Example : MonoBehaviour | |
{ | |
private JsonData m_jsonData; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
[Serializable] | |
public sealed class JsonData : ISerializationCallbackReceiver | |
{ | |
void ISerializationCallbackReceiver.OnBeforeSerialize() | |
{ | |
Debug.Log( "OnBeforeSerialize"); | |
} | |
void ISerializationCallbackReceiver.OnAfterDeserialize() | |
{ | |
Debug.Log( "OnAfterDeserialize"); | |
// ここで例外が発生 | |
if ( Application.isPlaying ) | |
{ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment