- Home /
App get crash on animation of 2d object in Unity 4.3
Hi, Getting bit issue on playing animation when first object collide to second object its OnCollisionEnter2D method I am playing animation. I attached animation with second object and when I run code it gets crash. Here is what I am doing. declare string on top and call on collision. string blastAnim = "BlastAnim";
void OnCollisionEnter2D(Collision2D col){ Debug.Log("Collision Enter............."); animation.Play(blastAnim);
}
Is there an error when you play it in the editor?
No, when this line of code run animation.Play(blastAnim); and it error is "EXC_BAD_ACCESS (code =1, address=0x0)".
Your answer
Follow this Question
Related Questions
Scissor tool with 2d sprite 0 Answers
2D Mouse Aiming 2 Answers
Animation is not playing again in Unity 4.3 1 Answer
Whats the best way to handle this animation 0 Answers
SpriteManager 2 1 Answer