- Home /
Question by
TensaZangetsu · Jan 09, 2016 at 12:10 PM ·
script.beginnerconsolefailureconsole errors
How do I make to print something in console on Unity 5.3
using UnityEngine; using System.Collections;
public class MiPrimerScript : MonoBehaviour {
// Use this for initialization
void Start () {
Debug.Log ("Hola");
}
// Update is called once per frame
void Update () {
}
}
I´m taking an internet class of Unity 3d one of the homeworks that the teacher left us was one that makes the console to say "Hola" but everytime I try it fails to say something.
duda.jpg
(69.6 kB)
Comment
when posting code, please do so as text (with the correct formatting - select the code and click the 101010 button) - screenshots aren't usually that helpful.
did you attach this script to a game object in your scene?
Answer by slimabob · Jan 11, 2016 at 09:51 PM
Make sure the script is attached to something in your level.