Timeline for Can't attach animation to script
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 9, 2015 at 21:00 | history | edited | Almo♦ | CC BY-SA 3.0 |
edited title
|
Dec 9, 2015 at 20:56 | answer | added | Foggzie | timeline score: 2 | |
Dec 9, 2015 at 11:49 | comment | added | Nika Kasradze | just another bit of info: you can use transform.GetComponent<COMPONENT>() to access another component on the same object. | |
Dec 9, 2015 at 5:43 | comment | added | SanSolo |
@jhocking is right. You have already assigned a clip to anim, so there is no need to call GetComponent. Just say anim.Play();
|
|
Sep 10, 2015 at 1:31 | comment | added | jhocking | Why are you calling GetComponent on anim, when anim is an Animation component? | |
Aug 9, 2015 at 16:03 | answer | added | John Smith | timeline score: 0 | |
Aug 9, 2015 at 10:40 | review | First posts | |||
Aug 9, 2015 at 12:14 | |||||
Aug 9, 2015 at 10:37 | history | asked | AndreaTerenz | CC BY-SA 3.0 |