• 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

karljj1 edited

How to reduce usage of GetComponent()? (instantiate, prefabs)

Mar 17, '14 instantiate·prefab·getcomponent

0 Replies

0 Votes

avatar image

SecondMouse published

Enable My Script on Spawn

Mar 9, '14 photon·getcomponent·setactive·enable

0 Replies

0 Votes

avatar image

maxxa05 asked

Implicit type GetComponent call

Mar 8, '14 c#·getcomponent·generics·getcomponents

0 Replies

1 Votes

avatar image

Kiloblargh commented

GetComponent inexplicably breaking

Mar 1, '14 mecanim·getcomponent·animation controller

0 Replies

0 Votes

avatar image

Luvs2Dummy published

Order of object instantiation scripting issues

Feb 17, '14 instantiate·getcomponent·order-of-execution·findobjectoftype

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

Firedan1176 published

Change the Halo Component (not the default) in a light in C#???

Jan 31, '14 lighting·getcomponent·component·halo

0 Replies

0 Votes

avatar image

Pedre published

Can't modify variable from another gameobject script

Jan 21, '14 player·getcomponent

0 Replies

0 Votes

avatar image

Benproductions1 commented

GetComponent with arrays C#?

Dec 22, '13 c#·array·getcomponent

0 Replies

0 Votes

avatar image

ahaykal commented

GetComponent of copies of one gameobject?

Dec 4, '13 gameobject·trigger·getcomponent

0 Replies

0 Votes

avatar image

s_guy commented

Any way to see if a gameObject has a component from MonoDevelop debugger?

Nov 1, '13 getcomponent·monodevelop·component·debugger·watch

0 Replies

3 Votes

avatar image

Turkeybag published

Having trouble understanding parenting with componants

Oct 16, '13 collision·collider·transform·getcomponent·parent

0 Replies

0 Votes

avatar image

Doireth edited

Getting a Variable on Script B to equal a variable from script A Wiki

Oct 14, '13 c#·ai·getcomponent·variables

0 Replies

0 Votes

avatar image

F00bzor published

Copy collider Component type and parameter to a new Object at runtime

Sep 9, '13 collider·getcomponent·runtime·addcomponent

0 Replies

1 Votes

avatar image

robertbu commented

Why GetComponent()?

Jun 12, '13 getcomponent·static·monobehaviour·new

0 Replies

0 Votes

avatar image

Krimzen published

Animation through graphics in FPS controller, weird character controller issue, NEED help!

May 26, '13 animation·charactercontroller·jump·getcomponent·isgrounded

0 Replies

0 Votes

avatar image

jpvanmuijen edited

Re-run Start() and OnGUI() from another script

Apr 24, '13 c#·getcomponent

0 Replies

0 Votes

avatar image

Robomaster commented

Get Component Error

Feb 11, '13 gui·error·getcomponent·bool·disabling

0 Replies

-1 Votes

avatar image

GINTX published

problem with AnimationClip[]

Jan 8, '13 getcomponent·animationclip

0 Replies

0 Votes

avatar image

paulaceccon edited

Getting NullReference when calling Instantiate from another script

Dec 7, '12 instantiate·getcomponent·null

0 Replies

0 Votes

avatar image

AlucardJay edited

FindWithTag or GetComponent not working in Unity4?

Nov 25, '12 getcomponent·unity4·findwithtag

0 Replies

0 Votes

avatar image

CoCoMolly published

Connecting Multiple Rigidbodies with Collision

Oct 24, '12 rigidbody·getcomponent·parent·child·kinematic

0 Replies

0 Votes

avatar image

ibps13 published

Getcomponent unity 4b11

Oct 20, '12 c#·getcomponent

0 Replies

0 Votes

avatar image

Squishlove commented

Adding a rigidbody variable to an Array

Oct 14, '12 array·getcomponent

0 Replies

0 Votes

avatar image

AndreStv published

GetComponent conflicting with DontDestroyOnLoad?

Oct 7, '12 getcomponent·dontdestroyonload

0 Replies

0 Votes

avatar image

mduffor published

How can I access a SerializedField by dynamic name?

Aug 30, '12 getcomponent·serializefield

0 Replies

0 Votes

avatar image

OperationDogBird answered

Trying to add a script to a GUIText and then assign a variable in said script with GetComponent.

Aug 15, '12 getcomponent

0 Replies

0 Votes

avatar image

TheVectorHunter commented

pickup weapon with GetComponent

Aug 13, '12 getcomponent·sendmessage

0 Replies

0 Votes

avatar image

NathanJaremko edited

Problem with 2 scripts communicating

Jul 18, '12 variable·enemy·getcomponent·health

0 Replies

0 Votes

avatar image

mweldon commented

NullReferenceException with GetComponent() C#

Apr 19, '12 c#·nullreferenceexception·getcomponent

0 Replies

0 Votes

  • »
  • ‹
  • 5
  • 6
  • 7
  • 8
  • 9
  • ›

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