• 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

All Questions

  • Unanswered Questions
avatar image

MSavioti edited

Trouble when getting object reference with GetComponent by using OnTriggerEnter2D Closed

Sep 7, '18 trigger·getcomponent

1 Reply

0 Votes

avatar image

peachpieproductions commented

GetComponentInParent doesnt appear to work in editor mode

Sep 9, '18 editor·getcomponent

1 Reply

0 Votes

avatar image

MSachs commented

Get the renderer of multiple GameObjects at the same time?

Sep 5, '18 scripting problem·getcomponent·renderer

1 Reply

0 Votes

avatar image

JVene commented

Unassigned Reference when using GetComponent on Instantiated Objects,How do I use Get_Component on instantiated objects

Sep 5, '18 in Help Room

1 Reply

0 Votes

avatar image

eses commented

GetComponent AudioSource not working

Aug 11, '18 in Help Room

0 Replies

0 Votes

avatar image

Kek_Kek commented

How Do I get the component of individual objects with same tag using On Trigger Enter.

Aug 3, '18 trigger·getcomponent

1 Reply

0 Votes

avatar image

cryingwolf85 commented

Instantiate And GetComponent

Aug 4, '18 instantiate·getcomponent

1 Reply

0 Votes

avatar image

haidao0923 commented

Get Script from every gameobject in a list

Jul 27, '18 script.·list·getcomponent

1 Reply

0 Votes

avatar image

LukasLicek commented

Unity GetComponent return value

Jul 27, '18 gameobject·getcomponent·collider2d·null·type

2 Replies

0 Votes

avatar image

LeeJBaxter commented

Script getComponent crashes unity.

Jul 24, '18 in Help Room

3 Replies

0 Votes

avatar image

Cynikal answered

does using get component slow down game a lot?

Jul 18, '18 c#·optimization·getcomponent·slow·enabled

1 Reply

0 Votes

avatar image

felipin commented

Getting component variables in InitializeOnLoad editor script?

Jul 10, '18 editor·editor-scripting·nullreferenceexception·getcomponent·editorgui

1 Reply

0 Votes

avatar image

magna_shogun edited

GetComponent returning null inside script, but working well outside

Jul 7, '18 in Help Room

0 Replies

0 Votes

avatar image

felipin edited

Getting instantiated clone's coordinates from the same script

Jul 6, '18 c#·instantiate·getcomponent

1 Reply

0 Votes

avatar image

JuanuHaedo answered

Unity 2018.1 - IJobParallelFor: Getting color of object which was hit by a raycast

Nov 17, '18 color·getcomponent·raycasting·parallel

1 Reply

1 Votes

avatar image

hexagonius answered

Getting GameCenter username to string?

Jul 2, '18 getcomponent·string·game center

1 Reply

0 Votes

avatar image

KittenSnipes answered

How do I check if the gameobject I collided with has a certain script? (C#)

Jul 1, '18 2d·error·script.·getcomponent

1 Reply

0 Votes

avatar image

Hsni answered

Components arent being found in script references

Jun 28, '18 in Help Room

1 Reply

0 Votes

avatar image

PanayiotisPetsas commented

How can I access a GameObject's script from a prefab?

Jun 29, '18 gameobject·getcomponent·boolean

1 Reply

2 Votes

avatar image

darkal edited

My scripts are not working properly Closed

Jun 21, '18 c#·error·getcomponent·not working·keycode

0 Replies

0 Votes

avatar image

NoDumbQuestion answered

Object will not return to start position after player respawns

Jun 19, '18 trigger·position·getcomponent·bool

1 Reply

0 Votes

avatar image

TomColdtree commented

GetComponent() fails when called in Awake() or Start()

Jun 14, '18 canvas·getcomponent

1 Reply

0 Votes

avatar image

Vicarian commented

Meaning of .text

Jun 14, '18 c#·unity 5·getcomponent·generation

1 Reply

0 Votes

avatar image

seandolan commented

GetComponent not working

Jun 10, '18 gameobject·nullreferenceexception·getcomponent

1 Reply

0 Votes

avatar image

D-Coy edited

assign stored material on instantiation

Jun 10, '18 in Help Room

0 Replies

0 Votes

avatar image

Nosmo commented

How can I enlarge the box collider when a prefab is active

Jun 11, '18 vector3·getcomponent·ontriggerenter·active·true

1 Reply

0 Votes

avatar image

Hellium commented

More efficient way to check if GetComponent is null before the actual GetComponent Call?

Dec 16, '20 getcomponent

2 Replies

1 Votes

avatar image

b1gry4n answered

How find Object after Instantiate in scene

Jun 2, '18 getcomponent·prefab-instance

1 Reply

0 Votes

avatar image

DarkFlameMaster edited

C# Getting a certain AnimationState using strings from all objects with specific tag

Jun 2, '18 animation·array·getcomponent·string·foreach

2 Replies

0 Votes

avatar image

foureyes44 answered

Get Component or Check if Null SoftLocks Game (C#)

Jun 2, '18 c#·getcomponent·freeze·null·foreach

1 Reply

0 Votes

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

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