- Home /
Script for Application initialisation
Hi.
I am new to Unity and Unity Scripting, but for my educational game I'm writing I need a script that would be ran upon running my scene. I only saw gameobject-related scripts (as workaround I can imagine using some dummy gameObject and attaching a script to it. But is there an elegant solution?
Answer by Mike 3 · Jul 10, 2010 at 12:16 AM
There isn't a way to start off your game without at least a single gameobject with a script on - that's the only way to get an entry point.
The way I do my own stuff is basically a set of classes which do stuff, with a single init function inside, so that i call that one function from a script, and the rest is set up by my other classes, though that may be overkill in this case
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
How do I set my android app to landscape mode entirely? 1 Answer
Playing an Animation that is within a GameObject 1 Answer
How do I call a function in another gameObject's script? 5 Answers
Is all scripting GameObject based? 1 Answer