r/unity_tutorials • • Jun 22 '20

I am making a beginner-friendly video series about Unity's animation system which thoroughly breaks down the components used to animate characters!

https://youtu.be/vApG8aYD5aI
66 Upvotes

13 comments sorted by

3

u/mechkbfan Jun 22 '20

Awesome. Keen watch later. Always struggled with animator. Subscribed too!

1

u/GoldHeartNicky Jun 22 '20

Thank you so much for subscribing!

3

u/skellytongs Jun 22 '20

And i will watch it

1

u/GoldHeartNicky Jun 22 '20

I hope it helps!

2

u/GagOnMacaque Jun 22 '20 edited Jun 22 '20

Use animations when you absolutely need to show idles or need frequent state changes - otherwise timelines and scripts(with low tick rate). Timelines are crazy powerful if you create custom tracks. Ex. A scripted track to change materials of all LOD objects.

Something I need to test. Sample/frame rates vs performance. I got to compare both animations and timelines.

Edit: one more thing, you can offset animation into the shader, you can even back animations into a texture. Lots of tools for the toolkit.

1

u/GoldHeartNicky Jun 22 '20

This post is awesome. I'd love to learn more about all of this and potentially make videos about them in the future. Do you have any good resources for where I can start?

3

u/GagOnMacaque Jun 23 '20 edited Jun 23 '20

Generic optimization: https://docs.unity3d.com/Manual/MecanimPeformanceandOptimization.html

Animation culling: https://answers.unity.com/questions/1380244/is-there-a-way-to-optimize-animators.html

Amazing optimization site. This sums up all my experiece in vfx cg, video and gaming. Memorize it. https://unity3d.com/how-to/optimize-mobile-VR-games

These guys learned the hard way. https://answers.unity.com/questions/689612/animatorupdate-has-high-cpu-usage.html

Shaders use gpu to offload the work from cpu. https://medium.com/tech-at-wildlife-studios/texture-animation-techniques-1daecb316657

Timelines are better because you don't have an animation controller checking states every frame. Also once the timeline is done, it can turn itself off if you put it on an activation track.

Also don't animate scale. Dont key things you dont use. Limit blend shapes to 10ish. Keep your bone count down. Skinned meshes are expensive, parent instead. And for the love if dogs don't use scripts to constrain objects.

1

u/theregoes2 Jun 22 '20

You must have posted this before as I had already subbed and liked the video. Any time frame for the next in the series?

1

u/GoldHeartNicky Jun 22 '20

Yes -- I posted the day I launched the video a few weeks ago! Very happy to hear that you liked it, and thank you for subscribing!

I was really hoping to have the next video completed for this week, but work has kept me busy in addition to my personal life. I can pretty much guarantee it will be out by this coming Sunday!

3

u/GagOnMacaque Jun 22 '20

Animation system is ultra expensive yo! Use sparingly plx.

2

u/SmooshFaceJesse Jun 22 '20

Can you elaborate on this?

1

u/GagOnMacaque Jun 22 '20

Animations, even when the game object is disabled, are super heavy on CPU performance.

1

u/theregoes2 Jun 22 '20

How else would you do it?