Creating simple animations without an animator ?

Hello,

i want to create a simple animation like a muzzleflash or explosion etc. Can i do it without an animator for every of those objects ?

i guess i wouldnt need them. Well actually i do but i dont see benefits ? Is it possible to play a single animation without the need of an animator ?

btw iam using unity 2018

thank you
Justin

well yes it is. if you use the animation component.

wow just wow. sorry that was so obvious… damn…

Thank you !

Hi @zh4r0naX

Like already mentioned, you can still use old Animation component to play animations. See: Unity - Scripting API: Animation

You can just use Play and Stop to play your animation clips.

You can also use new Animator component, you’ll have to do little bit more setup work, but you don’t have to build complicated state graphs and blends.

You can for example create an empty state as default state, and then connect your separate animations only back to this empty state. You can simply use Play to trigger these states. See: Unity - Scripting API: Animator.Play

Unless you are thinking about using or extending your animation setup with Animator graph features it is simpler probably just to use Animation component + animation clips.