in UNITY on PLAY..... what scrip active ?

hi …
How can I know, BEING IN UNITY, when running my game by clicking the PLAY button …
How can I know which scripts have run, or have they been activated?

In other words, I need to know which script to start, right at the moment of starting the test of my game.
i will apreciate any comment … thanks

Hi! This page https://docs.unity3d.com/Manual/ExecutionOrder.html will explain what is executed in what order (per script)

You can also adjust the script execution order as documented here: https://docs.unity3d.com/Manual/class-MonoManager.html if you want to force something to run before another thing.

Otherwise just add a debug.log in each awake and start and onenable of each script and that will quickly show you what runs first (but thats a much longer way to working this out)

Good luck :slight_smile:

thanks …relly really thanks …
helps a lot
but …
i need to find somenthing that my game do at start but i can not find …
i knwo i put on an script but i can not find …
thats the reason i need to knwo where that
void Start ( ) is …
thansk again

any comment will apreciate so much
thanks

You’ve been a member of this community for more than a decade. You have more than 650 posts with most of them dedicated to programming. How do you not know the answer to this question?

thanks … the answer is very easy, because I had never programmed in unity.
I only use it to sell 3D … and a couple of simple buttons to animate those 3D objects
now I have gotten into games, and I am starting that branch of unity.

I leave my store here …
https://assetstore.unity.com/publishers/33675
.
.
6489800--729602--anatomy.jpg

anyone have any real help?
How can I detect the sequence that VOID STAR () ran first?
i will apreciate so much any comment please !!!

I will jump in here. May I ask, did you write this code? Granted when you inherit a project that has a ton of objects and associated scripts, it’s hard to know where the game actually “starts”. Often developers will use a GameManager object and place startup code attached to it. Otherwise, you could place Debug.Log statements in each of your Start() methods in your scripts and view the console, if you have developed the game yourself. But as mentioned, the order of events is listed here Unity - Manual: Order of execution for event functions . And also, what specific problem are you trying to solve? This post describes how to use Debug.Log Tips for new Unity users . I hope this helps.