Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by e-bonneville · Apr 13, 2010 at 01:45 AM · gameobjecttransform

Is transform another name for a gameObject?

Is transform another name is a gameObject? When the docs are talking about parenting here, they mention the parent of the transform. What does this mean?

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image alexnode · Apr 13, 2010 at 08:04 AM 0
Share

to be honest after the answers I still don't understand, I understand how to use it, since I have seen many examples but still it is peculiar because you use it sometimes as a pointer to go to another gameObject, find the parent, or some other times as a pointer to move something with translate. But is it a container of movement/rotation/scale?

avatar image KvanteTore · Apr 13, 2010 at 08:13 AM 1
Share

@alexnode: as ian scilipoti says below, a transform is not a game object. Rather, a GameObject has a Transform component, and a Transform component knows which GameObject it belongs to. Furthermore, the scene-hierarchy, which is often shown as a GameObject-hierarchy, is really a Transform-hierarchy, but as there is a one-to-one relationship between GameObjects and Transforms, it can consistently be shown as a GameObject-hierarchy.

avatar image alexnode · Apr 13, 2010 at 10:45 AM 0
Share

Great,thanks a lot it so much clearer know.

2 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by 3dDude · Apr 13, 2010 at 01:52 AM

a Transform is not a gameObject but when you are talking about parents and children that is in the transform class

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image e-bonneville · Apr 13, 2010 at 01:55 AM 0
Share

Oh... I see. Thanks for responding!

avatar image
1

Answer by dhendrix · Apr 13, 2010 at 01:58 AM

It's referring to the transform of the parent of the current gameObject's transform.

If that confuses you look at some examples. This sets the parent of the gameObject the script it is attached to:

transform.parent = anotherGameObject.transform;

Or a gameObject could set itself to be the parent of another gameObject(this script would be attached to the parent):

anotherGameObject.transform.parent = transform;

Hopefully that helps you understand better. It's very intuitive once you wrap your head around it.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

"Transform" still trying to access after Destroy 0 Answers

How to make a object translate alonge an other 2 Answers

How to assign random positions to gameobjects from an array? 2 Answers

How to Change Background Sprite at run time ? 0 Answers

Control Ship and Gun Separately 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges