Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 Muckytears · Jul 15, 2015 at 10:53 AM · animation2derror

Problem with creating a Unity 2d Animation

Hey, So to keep it brief I'm trying to make a 2d game and wanted to try and implement an animation for my character. I have imported all the key frames, given the player an animator, attached an animation controller, selected the character and then created a new animation called 'MoonRun' When i try and drag the sprites to the animation timeline I get this little pop up

alt text

and by clicking either of them I get this error message alt text NullReferenceException: Object reference not set to an instance of an object UnityEditorInternal.DopeSheetEditor.SelectTypeForCreatingNewPptrDopeline (System.Object userData, System.String[] options, Int32 selected) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Animation/AnimationWindow/DopeSheetEditor.cs:705)

I was using a video guide but their screen looked a bit different and this didn't occur and have tried looking through other asks for similar problems but couldn't find the answer. Any help greatly appreciated

screen-shot-2015-07-14-at-210751.png (18.4 kB)
screen-shot-2015-07-14-at-210638.png (16.4 kB)
Comment
Add comment · Show 6
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 ahmedbenlakhdhar · Jul 15, 2015 at 12:17 PM 0
Share

$$anonymous$$aybe you need to add a Sprite Renderer component to your game object before adding sprites to the animation.

avatar image Muckytears · Jul 15, 2015 at 09:28 PM 0
Share

I have a sprite renderer already, incase it matters here is a picture of what is on the character entity

alt text

screen-shot-2015-07-15-at-222708.png (49.7 kB)
avatar image Pork-Roll-Lover · Sep 10, 2015 at 06:16 PM 0
Share

Got the same problem. On Unity3D pro Windows 10. Cannot drop sprite onto animation. Please help as I am stuck on project due to this bug.

avatar image artistshc · Oct 28, 2015 at 01:16 PM 0
Share

$$anonymous$$e too - this is always happening to me. I would love to know what causes it and how to go around it.

avatar image HomeWorld Arts · Nov 26, 2015 at 03:50 PM 1
Share

I have been having this problem as well. It must be something to do with the script attached to the game object since when I remove the script component I can drag sprites into the animation no problem.

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Ferrety6012 · Oct 28, 2015 at 01:30 PM

Mine fixed itself when I updated Unity to the latest version. If you are already on the latest version of Unity I can only assume that a re-install would serve the same purpose.

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
avatar image
0

Answer by Alpants · Apr 24, 2016 at 08:05 PM

This seems to be a duplicate of http://forum.unity3d.com/threads/difficulty-dragging-sprites-onto-animation-screen.341881/ Here is the answer I posted there:

I am experiencing this also. The problem seems to be getting the sprite element of the sprite renderer added as a property of the animation. I found a work around:

  1. Make sure your game object selected and your desired animation is selected

  2. Press the record button on the animator. The animation component should get unchecked in the properties window and turn pink

  3. Drag your first sprite into the "Sprite" property on the Sprite Renderer object attached to your game object in the properties panel

  4. This should automatically add the sprite component to the animator and add your first sprite. Now you should be able to drag one/more sprites into the animator as you normally would.

Hope this helps!

If it doesn't, you could try copying / renaming an existing animation file that has the sprite renderer component already attached, then erasing all sprites manually to start fresh.

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

9 People are following this question.

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

Related Questions

Please help me with my 2D animations - c# 2 Answers

2D Animation does not start 1 Answer

2d sprite animation issue 2 Answers

How to make a sprite stay at a consistant baseline during animation? 1 Answer

Zombie Cafe style game. 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