Question by
TruffelsAndOranges · Sep 27, 2015 at 08:13 PM ·
start
Run script at game startup/run?
What I want to do is run a script when the game is run (in editor or when built). Is this possible? I tried using the "Script Execution Order", but that didn't work. I want this to be scene independent, which means I don't want to add a GameObject to a scene and run it through that GameObject.
Comment
Something along these lines but I want to instantiate a prefab, so it needs to be $$anonymous$$onoBehaviour-based: http://docs.unity3d.com/$$anonymous$$anual/RunningEditorCodeOnLaunch.html
Your answer
Follow this Question
Related Questions
Choosing the first scene to load 2 Answers
Cant find component after scene load but it exists ! HELP! 0 Answers
Game does not start in Xiaomi Redmi 4A 0 Answers