- Home /
Question by
bossforlife007 · Jul 08, 2018 at 02:39 PM ·
unity5visual studio
Why does this VS code not print
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Experiments : MonoBehaviour {
int myInt = 5;
void Start()
{
Debug.Log(myInt);
}
Comment
Are you sure the script is attached to an active gameObject in your scene?
Also, are you sure that log messages are not disabled in the console?
Answer by madhav-aspiration · Jul 10, 2018 at 11:58 AM
Check Log is Highlight in unity Console
screen-shot-2018-07-10-at-52509-pm.png
(17.2 kB)