❔ How to play animation from a [ ] ?
Is this possible? Can I make a [] <I don't know what they are called...) function on an Animator Component and play an Animation based on its Name by typing the Name inside the inspector? If that make sense... For example, if a cat walk across the room, once it hits a boxcollider, it should play whatever is written inside Elemet0 [ ] - then the cat keeps walking and hit another boxcollider and play whatever is written inside Element1[] etc etc...
Thankful for answers!
5 Replies
Hi! It looks like you're trying to learn Unity and C# at the same time!
The general recommendation you'll find on this server is to learn C# first; Unity does a lot of weird stuff, and if you don't know which bugs are caused by that Unity-specific stuff it can be extremely hard to debug. The bot will post a link to some "getting started with C#" resources. $helloworld
Written interactive course https://learn.microsoft.com/en-us/users/dotnet/collections/yz26f8y64n7k07
Videos https://dotnet.microsoft.com/learn/videos
"Animator Component" is one of those Unity-specific things, and asking on the Unity discord might get better answers, when you're ready for that. $unity
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.