Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Console error is given without filename when compiling

$
0
0
Hello, Upon compilation I am getting many errors like this: FindObjectsOfType can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene. Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function. The error explained what the mistake was, but there is no way to find out which file it's coming from.. I've literally used `FindObjectsOfType` in hundreds of places, no way I can *ctrl+F* the solution. Usually Debug console gives the filepath, like *Core.get_cameraSplineMove () (at Assets/Gameplay Scripts and Assets/General Gameplay/Core.cs:177*) but not this time. Is there a way to navigate to the root of issue?

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>