• 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
Question by xReaper7x · Mar 26, 2013 at 04:41 AM · animation2dmovementsprite

SpriteManager 2

Hey everyone i'm using Spritemanager 2 to do my animations and right now its not working... I added animations to the timeline and named and numbered them and this is my script link text

but when I move the player the animation doesn't player... I am using a packed sprite..

Here are some images..

alt text

Please help guys :D Thanks!

-Kevin

Comment

People who like this

0 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 robertbu · Mar 26, 2013 at 04:47 AM 0
Share

A basic question. You did build the atlas before you ran the app? Put CharacterSprite.PlayAnim(0) in Start() to separate out PackedSprite issues from your code logic issues.

1 Reply

  • Sort: 
avatar image

Answer by xReaper7x · Mar 26, 2013 at 05:08 AM

Yes I did build atlas..and OK i will try it tmrw what happens if its the animation?

Comment

People who like this

0 Show 3 · 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 robertbu · Mar 26, 2013 at 05:16 AM 0
Share

I've never had a bad PackedSprite. It is possible it is the material. I've occasionally had problems building the atlas. Sometimes my bad atlas has been the result of doing an atlas build while the app is running. To isolate the problem, force it to play in Start().

avatar image robertbu · Mar 26, 2013 at 06:21 AM 0
Share

Another common reason why a packed sprit does not show up is that you have not set the width and height. You have to set the width and height in the packed sprite component (and leave the scale in the transform at (1,1,1). The size is in world corrdiantes, do usually I just set them both to 1 and then adjust later.

avatar image xReaper7x · Mar 26, 2013 at 12:44 PM 0
Share

ok ya it works if it's in start... What should I do so it works in my code?

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

10 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

Related Questions

Animator warning in editor, animation is preventing script from working 1 Answer

When i make my character animated, he can only move up, down left and right (2D) (JS) 0 Answers

Scissor tool with 2d sprite 0 Answers

Beginner using the animation controller to get a sprite walking left and right..Need some help going from here 0 Answers

Sprite animation 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