Skip to content

Instantly share code, notes, and snippets.

@baobao
Created December 16, 2019 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baobao/fa93313b0ed8df346df708de8a46b33b to your computer and use it in GitHub Desktop.
Save baobao/fa93313b0ed8df346df708de8a46b33b to your computer and use it in GitHub Desktop.
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