0

i am creating all new unity project and added Empty GameObject in to my first Scene, and also created and added script to that object, but when i'm trying to run my scene script dose not showing any output in my console window. here is my code

using System.Collections;
using UnityEngine;

public class ScriptObject : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        Debug.Log("Start method called.");
    }

    // Update is called once per frame
    void Update()
    {
        Debug.Log("Update method calling.");
    }
}
7
  • Are you sure the GameObject this script is attached is being created when you run the scene? Commented Aug 20, 2019 at 9:07
  • yes i have already attached script to my game object, i've search a lot yo solve this issue also i was reinstalled my unity still its not working Commented Aug 20, 2019 at 9:11
  • 1
    You sure you added this script to that gameObject and that gameObject and this script both are active during runtime? Can you post a screenshot? Commented Aug 20, 2019 at 9:11
  • here is the screenshot of my project : wetransfer.com/downloads/… Commented Aug 20, 2019 at 9:15
  • Are you trying to use built-in Unity's console or something like Terminal or CLT? If it's built-in console, please make a screenshot of it. Commented Aug 20, 2019 at 9:17

2 Answers 2

2

You need to turn on showing of another types of log messages ("Info" messages in your case).enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

Simple yet effective ;)
0

You need to be sure that your button of the console output is enabled. Just try to click on the button.Look at the screenshot

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.