- Home /
what's the problem? (ninja.js)
function PlayAnimationClip (anim: String) {
animation.Play(anim);
}
erro: Assets/ex2D/_demo/Scripts/ninja.js(4,9): BCE0144: 'UnityEngine.Component.animation' is obsolete. Property animation has been deprecated. Use GetComponent() instead. (UnityUpgradable)
-1
because:
bad question title.
no description, just a bad formatted code fragment and an error message.
also trivial debugging question that belongs to the Help Room.
Thanks for moving this I forgot. Was only intending to comment not answer.
Your answer
Follow this Question
Related Questions
I need help with a CharacterMotor script error in Unity5. This is formatted in Javascript. 0 Answers
BCE0019 "enabled" is not a member of "Object"(On JavaScript Script) 2 Answers
How do perform the operations as per the commands at client side in socket unity? 0 Answers
Only error comes when try to build for android not for windows? 0 Answers