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
1
Question by nathanvj · Sep 04, 2013 at 05:49 PM · animationcameraplayeridle

I can't look up and down because of animation on camera?

I have made an idle animation for my main camera on the player. So if he doesn't run or walk that animation will play. But if that animation plays, the player can not look up and down (Y-ass)

My question: How to solve this? Or: Is there a way to look up and down WITH the animation playing?

Comment
Add comment · Show 3
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$$ · Sep 04, 2013 at 05:51 PM 0
Share

Is your camera a child of a bone? if yes maybe you should move the local position of the camera around the bone is childed too.

avatar image nathanvj · Sep 04, 2013 at 06:02 PM 0
Share

$$anonymous$$y camera is a child of Player.

Player contains 2 children: The $$anonymous$$ain Camera The Graphics

The animation component is on the main camera.

avatar image Serveladik · Oct 16, 2018 at 04:43 PM 0
Share

What excactlly did you change? I know that is old post but...

2 Replies

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

Answer by fherbst · Sep 04, 2013 at 06:20 PM

Put your camera rotation code into LateUpdate. Then it will run after the animation is applied. Make sure to only overwrite the parts of the position/rotation you actually want to be not animated.

Comment
Add comment · Show 7 · 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 nathanvj · Sep 04, 2013 at 06:55 PM 0
Share

You mean the $$anonymous$$ouseLook script? I used standart assets for that, and it's C#..

avatar image fherbst · Sep 04, 2013 at 06:57 PM 0
Share

I don't know what scripts you are using. I was just telling you that the order in which Unity processes stuff is "Update, animations, LateUpdate"; this means that you can overwrite animations in LateUpdate. The $$anonymous$$ouseLook script works in Update by default, so try changing that.

avatar image nathanvj · Sep 04, 2013 at 07:04 PM 0
Share

Thanks I will try it tommorow. Ill mark your answers as good but I'm not sure I'm gonna do it right.

avatar image nathanvj · Sep 07, 2013 at 10:10 PM 0
Share

It works! You simply are a genius sir!

avatar image deadlycrow · Feb 22, 2014 at 04:44 PM 0
Share

and how "late update" something in C#?

Show more comments
avatar image
0

Answer by Will_Dev · Jun 19, 2017 at 03:06 PM

I am using the rigidbody fps controller in unity standard assets and i made a wallrun animation. The camera is supposed to rotate. I have chnaged update to lateupdate in the rigidbodyfpscontroller script and i can look up and down. But the camera doesnt rotate when i wallrun. Any solutions?,I know this is late. But how did you achieve this? Could you share?

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

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Animation error please help me! 1 Answer

Problem with getting the animation on my Character. 1 Answer

cant stop my animation 0 Answers

Camera switch | issue 0 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