반응형

     

    방법1. 해당 스크립트에 디버그 로그를 찍는다.

     Debug.Log($"SendQueueMgr 스크립트가 포함된 오브젝트: {gameObject.name}");

    방법2. 스크립트를 생성한다.

    using UnityEngine;
    
    public class CheckSendQueueMgr : MonoBehaviour
    {
        void Start()
        {
            SendQueueMgr sendQueueMgr = FindObjectOfType<SendQueueMgr>();
            if (sendQueueMgr != null)
            {
                Debug.Log($"SendQueueMgr가 할당된 게임 오브젝트: {sendQueueMgr.gameObject.name}");
            }
            else
            {
                Debug.Log("SendQueueMgr가 할당된 게임 오브젝트를 찾을 수 없습니다.");
            }
        }
    }
    반응형
    • 네이버 블러그 공유하기
    • 네이버 밴드에 공유하기
    • 페이스북 공유하기
    • 카카오스토리 공유하기