Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 Anonymous 1 · Oct 06, 2011 at 09:13 AM · animationcameranewsimpleanimation.play

Animation not playing , please help

I have a Camera with a simple animation on it ( rotation , it is of 7 seconds). I have made a script through which i want to trigger the animation, but it doesn't seem to work. Here is the code and the Settings.

alt text

settings alt text

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by syclamoth · Oct 06, 2011 at 09:22 AM

Try putting that code in the 'Start' function instead, so that it only executes once instead of every frame. Possibly, the problem is that it is constatly trying to start the animation, and so it is resetting it to the beginning every time!

Also, you can't use WaitForSeconds outside of a coroutine- if you use SendMessage like that, instead of StartCoroutine, it will skip straight past that line.

Comment
Add comment · Show 4 · 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 Anonymous 1 · Oct 06, 2011 at 09:28 AM 1
Share

no luck , i noticed something - the animation doesn't play even when i check play automatically

avatar image syclamoth · Oct 06, 2011 at 09:45 AM 0
Share

How did you make your animation? There might be other things interfering here that you haven't told us about (possibly because you didn't think they were important). For example, how is the camera moved when it is not animating?

avatar image Anonymous 1 · Oct 06, 2011 at 09:59 AM 0
Share

alright , first of all the animation is made in Unity. Second the camera is a FPS camera , it is controlled by player when its not moving by engine

avatar image Anonymous 1 · Oct 06, 2011 at 10:53 AM 0
Share

i got it working by changing Update to start and reseting the variables of script and Camera (animation ) thanx :D

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

Camera Pan 1 Answer

Why isn't Cinemachine switching between cameras? 0 Answers

How to run 1 animation, then other 2 Answers

How to change values of animation? 0 Answers

Good Game by One Person, Is it Possible? 2 Answers


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