Hello,
I am currently having trouble with my script in unity because it logs multiple times to the console. I may be unaware that this is just a change in Unity, but I would like to know why it is doing this.
Here is my code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class test : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
Debug.Log("gameObject " + gameObject.name, gameObject);
}
}
The code is quiet generic for testing purposes, yet it appears three times in the console when I’m testing. I have checked many times to see if there is another object the script is attached to, but the script is only on this object. I have also tried it with different objects, and I have also recompiled my library to see if anything would fix the issue, but nothing seems to work. If there are any ideas on why this is happening, please let me know.
Thanks.