• 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

Getcomponent

Cancel

Cancel

Unanswered Questions

  • All Questions
avatar image

Cherno edited

Access GameObjects Parents and Childs from any level of hierarchy

Oct 13, '16 getcomponent·hierarchy·child object·parent and child

0 Replies

0 Votes

avatar image

JerBear264 asked

How do I change Sprites (and manipulate the Sprite Object) in C#?

Oct 8, '17 gameobject·sprite·object·getcomponent·sprite renderer

0 Replies

0 Votes

avatar image

London243 commented

Move a cube from GUITexture. Is not working. Where is my mistake

Jun 11, '14 getcomponent·guitexture·sendmessage·move object

0 Replies

0 Votes

avatar image

tiffany811205 edited

problem of switching character in the game

Jul 14, '14 gameobject·object·getcomponent·switch·selection

0 Replies

0 Votes

avatar image

Alexey Samokhin published

How to get and clamp sprite name?

Mar 27, '14 sprites·getcomponent

0 Replies

0 Votes

avatar image

robertbu commented

Taking value of variable from a script of Gameobject to a script attached to other Gameobject

May 25, '14 variable·getcomponent

0 Replies

0 Votes

avatar image

uanmanarmy edited

How to access an AudioClipVariable from other Script c# Wiki

Feb 9, '14 gui·getcomponent·audioclip·volume·accessing from any script

0 Replies

0 Votes

avatar image

rhanza edited

GetComponent method not working on android buid

Jan 3, '18 in Help Room

0 Replies

0 Votes

avatar image

lukarikid9001 asked

unexpected identifier?

Jul 8, '17 in Help Room

0 Replies

0 Votes

avatar image

swagmanPT commented

Can't use blur

Sep 20, '16 in Help Room

0 Replies

0 Votes

avatar image

joexherrera asked

,Rotating Multiple Objects with Same Keys,Rotating Multiple 2D Images Independently

Apr 15, '17 in Help Room

0 Replies

0 Votes

avatar image

Hellium commented

Why is getcomponent suddenly not working

Apr 23, '19 getcomponent·bugs

0 Replies

0 Votes

avatar image

JeevanjotSingh edited

Another animation is not working

Jun 19, '15 unity 5·getcomponent·play·stop·anmation

0 Replies

0 Votes

avatar image

jjd114 asked

Activating UI panel on GameObject Click/Destroy

Jun 14, '20 animation·gui·getcomponent

0 Replies

0 Votes

avatar image

kaplica published

Unable to get component from a gameobject

Apr 7, '17 gameobject·getcomponent·component·stack

0 Replies

0 Votes

avatar image

Saint0120 edited

GetComponent for a stored transform.

Jan 20, '15 instantiate·transform·enemy·getcomponent

0 Replies

0 Votes

avatar image

Kiloblargh commented

GetComponent inexplicably breaking

Mar 1, '14 mecanim·getcomponent·animation controller

0 Replies

0 Votes

avatar image

Glurth edited

GetComponent is not a member of Object

Oct 13, '15 in Help Room

0 Replies

0 Votes

avatar image

KTVX94 asked

GetComponent and GameObject.Find stopped working

Oct 4, '17 in Help Room

0 Replies

0 Votes

avatar image

VoxPlacitum published

NullReferenceException....Again(sorry)

Apr 29, '14 color·nullreferenceexception·getcomponent

0 Replies

0 Votes

avatar image

Anthonyknowles commented

Struggling with Unity 5 GetComponent: Null reference

Nov 10, '15 in Help Room

0 Replies

0 Votes

avatar image

hexagonius commented

Semicolon expected before end of line

Feb 26, '17 in Help Room

0 Replies

0 Votes

avatar image

hexagonius commented

Namespaces, referencing those namespaces, and everything in between.

Mar 19, '16 in Help Room

0 Replies

0 Votes

avatar image

ChileWilly commented

How to change the enum value of an instance of a prefab being clicked

Oct 30, '17 in Help Room

0 Replies

0 Votes

avatar image

RedDevil edited

Accessing a method / void from another class?

Aug 7, '14 getcomponent·class·method

0 Replies

0 Votes

avatar image

LucaH97 published

Can't Access Prefab Script from FPS Controller

Aug 11, '15 prefab·getcomponent·access

0 Replies

0 Votes

avatar image

IronPig_ published

How to get the first component of a gameobject and than assign that component to an another gameobject ?

May 21, '17 getcomponent

0 Replies

0 Votes

avatar image

mhofer asked

How can I do GetComponent on a Prefab Asset (without instantiating it)?

Dec 17, '17 getcomponent·prefabs

0 Replies

0 Votes

avatar image

Rachel570 published

Unity: Attaching a volume control slider that doesn't always exist, to another object.

Sep 23, '16 unity 5·getcomponent·slider·music·persistent

0 Replies

0 Votes

avatar image

xGoldenK commented

Avoid using GetComponent to check if RayCast hit is interactable

Jan 3, '21 in Help Room

0 Replies

0 Votes

  • »
  • ‹
  • 2
  • 3
  • 4
  • 5
  • 6
  • ›
  • »

Followers

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Related Topics

c# gameobject variable javascript instantiate scripting problem nullreferenceexception component error array unity 5 script. prefab variables boolean reference ui string find transform ontriggerenter text raycast type function


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