예제 #1
0
    static void LogSelectedGameObjectInfo()
    {
        var go = Selection.activeGameObject;

        if (go == null)
        {
            Debug.Log("Please select a GameObject");
            return;
        }

        GameObjectTypeLogging.LogStageInformation(go);
    }
예제 #2
0
    static public void PrintPrefabInfo()
    {
        var go = Selection.activeGameObject;

        if (go == null)
        {
            Debug.Log("Please select a GameObject");
            return;
        }

        GameObjectTypeLogging.LogPrefabInformation(go);
    }
 private void Awake()
 {
     Debug.Log("Awake");
     GameObjectTypeLogging.LogStageInformation(gameObject);
     //GameObjectTypeLogging.LogPrefabInfo(gameObject);
 }
 private void OnValidate()
 {
     Debug.Log("OnValidate");
     GameObjectTypeLogging.LogStageInformation(gameObject);
     //GameObjectTypeLogging.LogPrefabInfo(gameObject);
 }