Is there an Awake on Scene start?

How would I go about creating an initialize or ‘awake’ on scene start? I have read the api, done many tutorials and can’t figure it out.

The only way I can think of, is doing an awake on fps controller, but that would just be a work around.

Thanks!

initalize what?

There is the standard Awake() function, which gets called for each script (that implements it) during scene start.

or are you trying to initalize something, like a prefab?

Galen

well I want to dynamically create my terrain using a prefab. So I would like an ‘awake’ on scene creation.

basically wondering if you can attach a script to the scene in anyway??

You can only attach scripts to objects, so use an empty object or the camera or something.

–Eric

gotcha thanks.