iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🤖

Toggling Objects with Modular Avatar

に公開

I recently started playing with Unity and was just happy to see a cube appear.

https://twitter.com/kentaro/status/1730906394323464462

I wanted to try something a bit more practical, and then someone told me about a handy tool called "Modular Avatar" that allows you to add features to avatars non-destructively, so I decided to give it a try.

What I Made

Here are the two things I actually made.

The first one is a setup where Ninja Surisuri-kun, the mascot character for SUZURI (an e-commerce site where you can easily create and sell original goods and items), appears on top of the head.

https://twitter.com/kentaro/status/1731720020647158144

For the second one, I made Surisuri-kun appear in large numbers from my fingertips as particles. I guess everyone goes through a phase of doing this kind of silly stuff at some point, haha.

https://twitter.com/kentaro/status/1732049804086387117

How to Make It

I just followed the official documentation "Toggling objects | Modular Avatar", but as someone completely new to Unity, there were several parts that were difficult for me to understand and didn't go smoothly.

For example, this part:

Create an Animator Controller asset and two animation clips.

People used to Unity probably find it trivial, but I didn't quite get it. I thought I was supposed to create them from the Animator screen, but those are "States," which are different things. It turned out I needed to create Animations from the context menu and then drop them onto the screen.

Also, although not directly related to Modular Avatar, objects appeared ridiculously large, so I had to mess with the object's Scale to make them smaller, and I struggled with adjusting their positions. Additionally, there were many settings for particles, and I had a hard time getting them to appear exactly how I wanted.

Still, you don't know these things until you try them, so I think it was a good opportunity.

Conclusion

So, I tried using Modular Avatar. It's quite convenient. I look forward to experimenting with various other things in the future.

GitHubで編集を提案

Discussion