Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by flashtech · Apr 13, 2010 at 05:57 PM · cameraguifly

FLYING from Camera Position A to B per Buttom click?

How can i make change the First Person or Camera position by clicking a Buttom?

In other words, With Which GUI-JavaScript command can I change my First Person or Camera View position, With a click on a button? I want to Fly from position A to position B

Thank you

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image flashtech · Apr 13, 2010 at 05:57 PM 0
Share

NOT BEA$$anonymous$$, but FLYING!

5 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Rafal Sankowski · Apr 13, 2010 at 07:28 PM

You can make animation clip for the camera. It allows you to create not just straight fly from A to B, but you can make move by curves also. The code should look like that:

//create button
if (GUI.Button(Rect (posX, posY, sizeX, sizeY), "fly to other point")) {
    //play animation
    animation.Play ("fly");
}

If u can't create animation clips, go there - click.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image flashtech · Apr 13, 2010 at 08:03 PM 0
Share

i have got not Unity2.6 only 2.5 whiteout the animationtool. is there another way to Real FLYING?

avatar image Rafal Sankowski · Apr 15, 2010 at 10:20 AM 1
Share

Can't you just download Unity 2.6?

avatar image
1

Answer by Tetrad · May 11, 2010 at 09:57 PM

You could use something like iTween to animate the position of the camera.

http://www.pixelplacement.com/iTween/

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by Chapter9 · May 15, 2010 at 05:16 AM

You may want to take a look at this also...

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image cregox · Sep 06, 2011 at 06:31 PM 0
Share

updated link (at least for now): http://answers.unity3d.com/questions/16090/zoom-out-from-first-person-to-third-person.html

avatar image
0

Answer by toby · Jul 29, 2011 at 08:55 AM

Hi guy, that animation flying works for me, what about if my Player were in the different coordinate and want to fly from that place to the desire destination? i don't want the Player replay the same clip because the location was change.. xD

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by CgShady · Feb 08, 2012 at 01:06 PM

You need path finding. 3.5 should let you do that.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Is there a way to change the order of the "Layers" Tab? 0 Answers

Cameras Switch Based On Button Click 1 Answer

camera zoom using gui button 2 Answers

Blender like Camera Control Shortcuts 1 Answer

How to move GUI objects to separate Camera Layer - and why? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges