[Quick Tutorial] How to access Variables from another script - Unity

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Spent hours trying to figure this out... knew it couldn't be as complicated as other tutorials taught. Thanks so much.

gozeebo
Автор

Literally spent two days watching so many tutorials and yours was the shortest, simplest, and the only one that worked. Thanks!

kcdraws
Автор

Maan. i was searching hours for a better solution until i found this simple one
Thank u for the tutorial man u deserve deserve more subs

Dr.andonuts
Автор

And here I've been adding a step grabbing the game object and then the script component from it, awesome video

blairdog
Автор

this video is way better than those 20 mins videos explaining the same thing👍

kurt
Автор

Genius ! Am new to coding in Unity. I tried other ways, they worked but also were very buggy. This is just so so simple, but it works.

combatmedic
Автор

Bro, this is an amazing video concept, well done!

bluemischief
Автор

So lets say i wanted to have a scripts that stores all my stats for characters and such. I could use this method?

Omnivoid
Автор

Thanks you, This tutorial was so helpful, and I didn't have to go through any nonsence like most other tutorials from other creators.

messycubes
Автор

it was that simple but all the other tutorial make it look like you have to do quantum programming ... thank you

serogaiusufir
Автор

i've been strugling with this for a looong loong time, thank you g

svarei
Автор

thank you man, I was trying to watch other videos about it but it was too complicated and slow, you rock!

cookie_
Автор

THANK YOUUU I WAS STRUGGLING WITH UNITY SEARCHING FOR A PROBLEM AND AFTER I SAW YOUR VIDEO, U SAVED MY LIFE MAN

klediveliu
Автор

Does this actually work when you're controlling variables in the first script from the inspector? Kinda seems like it just makes new instances of that script.

vincentproud
Автор

So easy and straight to the point, thanks a bunch man!

uploadsnotguaranteed
Автор

thank for making it so easy and so quickly, wish you the best !

omar-
Автор

I've spent the night reading endless papers and watching pointless tutorials just to find out of disperation this 46 seconds video which solved the issue. THANKS MAN

tijpetx
Автор

if you have the problem that u cant drag and drop the script from your assets into the inspector field. Make sure the script is applied to the GameObject and drag it from the inspector of the GameObject into the field where you reference the script not from the asset folder

gollasso
Автор

what if I want to access it from the prefabs?

KomodozGaming
Автор

The second script doesnt show up in inspector?

techultimatehd