Jump to content

Unity questions

Go to solution Solved by HelloPeople,

check out "iheartgamedev " on YouTube. his explanations on animations in unity is very easy to understand.

and "brackeys " also has a lot of unity tutorial that are also easy to understand and entertaining.

"blackthornprod" also has some interesting tutorials on 2D games and animations and art design.

Hi! So I have many questions about unity and how it works and I thought I would ask unity themselves but they don't allow technical support on a free plan. So I am asking you here. So I have created some animation clips for different objects. And I have made a script which starts the Animator when you interact with an object. As I understand the Animator isn't separate for every object right? It is one Animator with separate controllers for different objects? Or is it? Is this right? If it is then I want to know how to do this:
The same way I do animator.enable can I do controller.enable where controller is the name of the specific controller I want to enable and like that enable separate animator instances for separate objects separately? So like if I activate the Animator for one object it only does that for that object.
Another thing, if I assign a script to an object why does it not activate only when I interact with this object? For example I have a script that does something when I click the mouse, but when I assign it to an object, it activates wherever I click? Why?
Also why do animations start automatically when you turn on Animator if I have the same action to turn them on, for example mouse click? 
Also how do event triggers work? For objects? how do I use them? I assign them and they basically do nothing, the animation runs even without them, simply when I activate Animator.
I have other questions as well but for now these need to be answered because I am very confused.
 

 

 

Link to comment
https://linustechtips.com/topic/1470539-unity-questions/
Share on other sites

Link to post
Share on other sites

I think some YouTube tutorials on the animator will help solve your questions.

 

It has been a while since I used unity but if I remember correctly you need a few things. 

 

1. You need an animation graph or something. This is a state machine visual diagram that you use to say which animation to play on start and which animations you can go to. 

 

2. The mesh needs an animation component and you add that graph thing to the animation component. 

 

Then you can control animations through code and stuff. 

 

You can configure most of the settings afaik. 

Link to comment
https://linustechtips.com/topic/1470539-unity-questions/#findComment-15677073
Share on other sites

Link to post
Share on other sites

check out "iheartgamedev " on YouTube. his explanations on animations in unity is very easy to understand.

and "brackeys " also has a lot of unity tutorial that are also easy to understand and entertaining.

"blackthornprod" also has some interesting tutorials on 2D games and animations and art design.

RELOAD BEFOR QUOTING. I EDIT MY POST ALOT!

MARK MY POST AS THE ANSWER IF I HELPED.

 

CPU: AMD Ryzen 5 5600 | GPU: RTX 2070 Super | Mobo: MSI X470 Gaming Pro | RAM: Corsair vengeance 32GB 8x2 3200mhz CL16 | SSD: Samsung QVO 870 1TB | PSU: SeaSonic FOCUS Plus 750 Gold 750 W 80+ Gold | Cooler: Thermaltake Contac Silent

12 | OS: Windows 11 Pro | Pcpartpicker: https://pcpartpicker.com/list/rGR6gb
Displays: ViewSonic XG2401 23.6" 1920 x 1080 144 Hz 

Laptop: Lenovo Ideapad Gaming i5-1130 RTX3050 16GB | OS: Windows 11 Pro

Link to comment
https://linustechtips.com/topic/1470539-unity-questions/#findComment-15679906
Share on other sites

Link to post
Share on other sites

On 11/28/2022 at 2:28 PM, fpo said:

I think some YouTube tutorials on the animator will help solve your questions.

 

It has been a while since I used unity but if I remember correctly you need a few things. 

 

1. You need an animation graph or something. This is a state machine visual diagram that you use to say which animation to play on start and which animations you can go to. 

 

2. The mesh needs an animation component and you add that graph thing to the animation component. 

 

Then you can control animations through code and stuff. 

 

You can configure most of the settings afaik. 

 

14 hours ago, HelloPeople said:

check out "iheartgamedev " on YouTube. his explanations on animations in unity is very easy to understand.

and "brackeys " also has a lot of unity tutorial that are also easy to understand and entertaining.

"blackthornprod" also has some interesting tutorials on 2D games and animations and art design.

Thanks! I will see about these graphs and check out some YouTube tutorials.

Link to comment
https://linustechtips.com/topic/1470539-unity-questions/#findComment-15680659
Share on other sites

Link to post
Share on other sites

On 11/30/2022 at 5:02 PM, stefanmz said:

 

Thanks! I will see about these graphs and check out some YouTube tutorials.

Thanks! I watched iheartgamedev and really learned a lot about animations! I was able to create them successfully and even customize them! Thanks a lot!  (the others weren't really what I was looking for) but iheartgamedev is definitely awesome and I love his content! Exactly what I need for unity. Thanks for the recommendation!

Link to comment
https://linustechtips.com/topic/1470539-unity-questions/#findComment-15684311
Share on other sites

Link to post
Share on other sites

On 12/3/2022 at 9:36 AM, stefanmz said:

Thanks! I watched iheartgamedev and really learned a lot about animations! I was able to create them successfully and even customize them! Thanks a lot!  (the others weren't really what I was looking for) but iheartgamedev is definitely awesome and I love his content! Exactly what I need for unity. Thanks for the recommendation!

welcome to the club!

RELOAD BEFOR QUOTING. I EDIT MY POST ALOT!

MARK MY POST AS THE ANSWER IF I HELPED.

 

CPU: AMD Ryzen 5 5600 | GPU: RTX 2070 Super | Mobo: MSI X470 Gaming Pro | RAM: Corsair vengeance 32GB 8x2 3200mhz CL16 | SSD: Samsung QVO 870 1TB | PSU: SeaSonic FOCUS Plus 750 Gold 750 W 80+ Gold | Cooler: Thermaltake Contac Silent

12 | OS: Windows 11 Pro | Pcpartpicker: https://pcpartpicker.com/list/rGR6gb
Displays: ViewSonic XG2401 23.6" 1920 x 1080 144 Hz 

Laptop: Lenovo Ideapad Gaming i5-1130 RTX3050 16GB | OS: Windows 11 Pro

Link to comment
https://linustechtips.com/topic/1470539-unity-questions/#findComment-15687203
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×