Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using UnityEngine;
public class PrefabModeTest : MonoBehaviour
{
void Awake()
{
Debug.Log($"Awake : Prefabモードのワタシ {this}", this);
}
void OnEnable()
{
Debug.Log($"OnEnable : Prefabモードのワタシ {this}", this);
}
void Start()
{
Debug.Log($"Start : Prefabモードのワタシ {this}", this);
}
void Update()
{
Debug.Log($"Update : Prefabモードのワタシ {this}", this);
}
private void OnValidate()
{
if (Application.isPlaying)
{
Debug.Log($"OnValidate : Prefabモードのワタシ {Application.isPlaying}", this);
}
else
{
Debug.Log($"OnValidate : Prefabモードのワタシ {Application.isPlaying}", this);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment