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 Raymond 2 · Feb 21, 2011 at 06:01 PM · animationthird-person-controller

3RD person controller animation problem

Heey, i'm using the 3rd person controller prefab for my own character model. But i get this error: Multiple visibility culling animations in the same hierarchy, animation culling for animation component in 3rd Person Controller will be turned off.

I changed everything i should change (as far as i know)

Here a description of what exactly i have done: I made a boned model in cinema4D all moves in one file, exported as fbx and imported to unity. I splitted the animations in the inspector, and gave them all the right name. I dragged it to the scene hierarchy as a child of 3rd Person Controller. In the inspector for the 3rd Person Controller i overwrited all the current animations with my animations (same names and same positions) and when testing i get the error.. anyone knows how to fix this??

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
0

Answer by Ilias · Mar 12, 2011 at 03:18 PM

You need an animation component, and drag all the animations in the component.

by example; If you have 5 animations for the model. ani 1: Idle ani 2: Walk ani 3: Shoot ani 4: Crouch ani 5: Reload

Resize the size into 5 and drag all the animations in the elements. Make sure the Animations are playing automatic.

Use the JS:

var minimumRunSpeed = 1.0;

function Start () { // Set all animations to loop animation.wrapMode = WrapMode.Loop;

 // Except our action animations, Dont loop those
 animation["**(the animation name of the animations of the player)**"].wrapMode = WrapMode.Once;

 // Put idle and run in a lower layer. They will only animate if our action animations are not playing
 animation["(the animation name of the animations of the player)"].layer = -1;
 animation["(the animation name of the animations of the player)"].layer = -1;
 animation["(the animation name of the animations of the player)"].layer = -1;

 animation.Stop();

}

function SetSpeed (speed : float) { if (speed > minimumRunSpeed) animation.CrossFade("(the animation name of the animations of the player)"); else animation.CrossFade("(the animation name of the animations of the player)"); }

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 Raymond 2 · Mar 13, 2011 at 08:55 PM 0
Share

Where do i attach this script to then??

avatar image Ilias · Mar 14, 2011 at 03:40 PM 0
Share

In the characterPlayer

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

No one has followed this question yet.

Related Questions

Can I make animations snap to a frame? 1 Answer

Third Person Controller animation problem 1 Answer

How to select an animation clip by index number? 7 Answers

How to add attack animations to the third person controller script? 1 Answer

How do I assign my own character to a 3rd person controller? 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