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 KaalKurayami · Aug 30, 2015 at 06:00 PM · unity 5entry

Problem with Entry state

I'm following this tutorial: https://www.youtube.com/watch?v=YbwlUvnpulE

The guy in the video doesn't have an entry state and it's impossible to remove the entry state. I've written the following code as per the tutorial to set which state to start:

 void Update () 
     {
         setAnimation (4);
     }
 
     void setAnimation(int animationNumber)
     {
         if (animationNumber == anim.GetInteger("animation") || -animationNumber == anim.GetInteger("animation")) 
         {
             anim.SetInteger ("animation", -animationNumber);
         } 
         else 
         {
             anim.SetInteger ("animation", animationNumber);
         }
 
     }

So it should be beginning with the fourth state but instead it begins with the default state I've set the entry state as and there is no way to remove it, so I'm not sure what to do. This is what it looks like in the base layer:

alt text

states-unity.png (22.3 kB)
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 KaalKurayami · Sep 02, 2015 at 03:08 PM 0
Share

@andsee Please can you help me resolve this problem.

1 Reply

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

Answer by andsee · Sep 02, 2015 at 04:40 PM

You can ignore the green entry state that was added in a recent version of unity it always points to the orange default state and just helps show where things start. The animation system is not my strong point and I don't have time to watch the full tutorial. But try right clicking on the Player_Run_Right and setting that as the default state as it appears in the tutorial.

After that the thing to check is your transitions and that they are comparing the animation variable correctly.

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 KaalKurayami · Sep 06, 2015 at 12:52 PM 0
Share

Sorry forgot to get back to you, I figured out the problem a few days ago. You were right to ignore the entry state. It was a simple problem with the "animation" that I was calling, it had to be a higher case "A" and not "a" because that's how I named it in the Animator. Thanks for your help.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

problem when using unity build and setting 1 Answer

Mask Component Missing 0 Answers

IPointerUpHandler.OnPointerUp accidentally triggered 0 Answers

monodevelop is not detecting using startapp; 0 Answers

Fading Objects does not work (Unity 5) 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