x


Opening a scene with a button

I need help opening a scene (that I have already created) when I click a button.

more ▼

asked Jun 09 '11 at 01:31 AM

Jared 3 gravatar image

Jared 3
7 3 3 9

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first
function OnGUI() {

  if (GUI.Button(Rect(10,10,50,50),"Load Scene"))
  Application.LoadLevel(name_level);

}

(replace name_level with your own level name)

more ▼

answered Jun 09 '11 at 01:39 AM

Dreamer gravatar image

Dreamer
1.5k 39 49 66

(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:

x16

asked: Jun 09 '11 at 01:31 AM

Seen: 540 times

Last Updated: Jun 09 '11 at 01:39 AM