x


Editor Script: How to run a function when scene first loads?

I would like to have a portion of my Editor Script run right away when the scene is loaded, not just when Unity starts- but each time new scene is loaded. It seems this should be obvious...but I've been digging through the reference, here, the forums, no luck so far.

Thanks very much!

more ▼

asked May 05 '12 at 08:15 PM

yahodahan gravatar image

yahodahan
1 1 2

Having a Start function not working for you?

May 05 '12 at 08:16 PM DaveA

unfortunatly function Start() does not work in an editor script, only in runtime scripts. Thanks though :)

May 05 '12 at 08:32 PM yahodahan
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I think you mean an extension of Unity, look up here:

Extending the editor

Greetings.

more ▼

answered May 05 '12 at 09:57 PM

Noah 1 gravatar image

Noah 1
1.1k 33 45 50

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1676
x297
x17

asked: May 05 '12 at 08:15 PM

Seen: 489 times

Last Updated: May 05 '12 at 09:57 PM