- Home /
Variable of Type Transform
If I have a variable of type "Transform", what kinds of game objects can be connected to it?
Answer by Eric5h5 · Dec 18, 2012 at 08:05 PM
Anything that has a Transform component (which is all GameObjects since Transform is mandatory for those).
Answer by ShadowAngel · Dec 18, 2012 at 08:09 PM
It's really unclear what do you want to know. But as for right now il say any x) Its just mater of converting gameObject <-> transform like so:
transform = gameObject.transform;
or
gameObject = transform.gameObject;
so you see transform ii not really solid var. ;)
Answer by Er_ellison · Aug 14, 2017 at 04:19 PM
It will targets the Transform component of what it will attached to , although you must attach a GameObject or any thing that attachable to that !
Your answer
![](https://koobas.hobune.stream/wayback/20220613085622im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How can I modify a variable on an instance of a prefab after I created it? 2 Answers
What is typing a variable? Is it assigning the value? 3 Answers
How do I change the position of a variable 1 Answer
Is there a way to get rotation data for single axes? 2 Answers
What variable type is this? 1 Answer