0 votes
by (8.2k points)

Script is not showing in the console menu when I press the play button

ago by
<a href=https://fastpriligy.top/>buy generic priligy</a> In this article, we ll focus on medications for three reasons

1 Answer

0 votes
by (8.2k points)
edited by

Did you attach your script to any of the game objects after creating it?
drag and drop your script onto any game object (Direction Light) and play the game.
Script has to be attached to a game object (any game object) in the hierarchy panel.

using System;

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class test: MonoBehaviour

{

    // Start is called before the first frame update

    void Start()

    {

        Debug.Log("Hello");

        Debug.Log("Hello");

        Debug.Log("Hello");

        Debug.Log("Hello");

        Debug.Log("Hello");

    }
    // Update is called once per frame

    void Update()

    {

    }

}


 

TechXR runs courses in AR / VR / Metaverse / Game Development. Some of the popular Q&A in our courses are available here for easy discovery.

113 questions

117 answers

52 comments

105k users

...