Комментарии:
Wow I really real stupid now ...... thanks code monkey lol
ОтветитьI understood both Transform and GameObject and personally I prefer GameObject simply because I like to visualize in my head that it's an object and not just "something" that has x,y,z stuff. I know it can go back and forth by accessing the properties / object etc but I just like it better in my head xD
Ответитьamazing tutorial thanks alot
ОтветитьThank you so much buddy:)
Ответитьoh thanks <3 ,So does it mean to depend on the user's coding style?
ОтветитьI have on question, I saw a video where they got the name of the game object by typing 'transform.name' I do no tunderstand as to why this works considering there is not name within transform, why not type 'gameObject.name'? Sry I am new to unity
Ответитьto instantiate an object at a certain position/rotation, there is an overload of Instantiate() that does it all in one call. it's actually slower (i.e. extra code/CPU cycles) to set the position/rotation/parent on the returned transform.
ОтветитьI am confused about this concept using transform or gameobject different times, this video was completely clean and understandable, thanks for this!
ОтветитьFor my sanity I prefer GameObjects. It just makes it more clear to me what's going on.
ОтветитьSo we can create a Scriptable Object -> Use Transform to reference a prefab -> get component of that prefab referenced in the Scriptable object ? (idk if my question make sense tho lol)
Ответитьgood video - but i would like to understand what they are, not just that they're different and how to fetch each other. keep it up!
ОтветитьNot every gameobject has a Transform. Some can have RectTransforms, etc
Idk why you would reference prefabs with Transform, just seems terrible
Super helpful man .... love it. Thanks!
ОтветитьI tend to think of GameObject as a container that holds various components, while a Transform is a component that contains position, rotation, and scale data. In the case of a Rect Transform, it'll also contain anchor point data.
Ответитьthanks for the video sir. 😀
ОтветитьWhy not just do
new Transform prefabTransform = Instantiate (prefab).transform
?
I prefer like this, because if you want to reference any other component and what you have is the transform you have to go tranformPrefab.gameobject.Getcomponent...
And it's just an extra step every time.
Why you don't use dark theme for visual studio, it would be much easier to watch your videos at night.
Ответитьlove your vids, are you thinking of doing more dev reacts in the future? those videos have me hooked on your courses
Ответить