Author Topic: button click to open another scene  (Read 3341 times)

frog

  • Guest
button click to open another scene
« on: August 15, 2012, 02:38:51 AM »
I'm sure I'm missing something super obvious, but how do I get a button click to open another scene like in the Example 3?
In other words, I have a button on scene1 that when it is clicked I want to open scene2, while animating it a bit like the "Options" button in Example 3. (But example 3 opens another panel.)

Thanks, yes I am a newb.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: button click to open another scene
« Reply #1 on: August 15, 2012, 04:12:55 AM »
In that example it's done using UIButtonPlayAnimation. It activates the game object and plays its animation.

frog

  • Guest
Re: button click to open another scene
« Reply #2 on: August 15, 2012, 02:17:45 PM »
In that example the button press results in another panel being displayed.
What do I need to do to have a button press result in a scene load?

PhilipC

  • Guest
Re: button click to open another scene
« Reply #3 on: August 15, 2012, 03:07:07 PM »
Application.LoadLevel() is used to load levels... I'm not too sure how your expecting to load a level and do some sort of camera animation to it. Is this a 3D scene or are you looking for more GUI transitions?

frog

  • Guest
Re: button click to open another scene
« Reply #4 on: August 22, 2012, 03:59:43 AM »
OK, I thought there was another way.