• 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 n-carlson1 · Oct 31, 2015 at 12:40 PM · animatoroffset

Need a little advice on the logic behind animators and offsets.

Going to try and explain this as thoroughly as I can because if it's confusing to me I can't imagine what it's like on the other side.

So I had an animator that controller my aiming and sprinting before that looked like this http://puu.sh/l3ouG/5cda7d28b0.png [1]

Everything worked fine and dandy when I finally lined it all up correctly. I then added in another animator on the same object for switching weapons which looked like this http://puu.sh/l3oxq/9df237a006.png [2]

Note that this is the second layer and I put the aiming/sprinting on the base layer. I'm not sure if that itself is the right logic for how it would function, but I'm working towards that. Now originally I had the object that the first animator was attached to on the Player > First person character > Gun camera (so the gun wouldn't appear to go through the walls) > UMP-45 (which is where the animator is)

Now after I implemented the gun switching part the layers went Player > first person character > gun camera > Hand (where the children are the inactive guns).

So it's on the same level as the original gun. Here is a picture to make it all clearer if it's not http://puu.sh/l3oMk/fdfc1d59aa.png [3]

The problem I have now is, when I start the level the gun is no longer in the bottom right where it should be, it's up in the top left at a weird rotation, but in the preview before I hit play, it's in the right spot. I know I could easily just go to the children and offset them so when I spawn it goes to the right spot, but that seems like the incorrect way to fix it. I'd rather the preview show where it will be and it be there, instead of it being off the screen somewhere in the preview and then correct on screen. I checked my WeaponIdle animation and it has no weird skews to cause it to go up there, so I don't know why implementing the layer on the mask would cause it to do that, when they both worked separately before that (i believe).

So...really long question for a potentially really quick answer.

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

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

2D Animation does not start 1 Answer

Animator position offset 0 Answers

SetIKPosition offset 1 Answer

Unable to set IK position with an offset, it keeps jittering. 0 Answers

Accessing AnimationState in Animator 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