• 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

Fireye04 commented

GetComponent(); returning null

6 days ago scripting problem·trigger·getcomponent·triggers·interface

1 Reply

0 Votes

avatar image

unity_ek98vnTRplGj8Q answered

can't find List index and pick a object with that index.

Feb 6, '20 list·getcomponent·incorrect

1 Reply

0 Votes

avatar image

phil_me_up answered

Finding things with Raycasthit

Dec 15, '15 getcomponent·raycasthit·java·find

1 Reply

0 Votes

avatar image

Generalkidd commented

GetComponent Null Reference on instantiated objects

Mar 13, '17 in Help Room

0 Replies

0 Votes

avatar image

MrSoad commented

Deactivating the mouseorbiter-script on the main camera?

Nov 5, '14 getcomponent·main camera

1 Reply

0 Votes

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

SteenPetersen commented

Begginer Question on instantiate.

May 24, '20 getcomponent·instantiate prefab·begginer

2 Replies

0 Votes

avatar image

Stryder2384 asked

Random audio clips from array on prefab crash

Feb 12, '21 in Help Room

0 Replies

0 Votes

avatar image

AndreM1 answered

Getting names of objects in specific location?

Apr 4, '17 getcomponent

1 Reply

0 Votes

avatar image

Hellium commented

What's the most efficient way to change script from child object

May 14, '20 gameobject·getcomponent·child object·getcomponentinchildren

2 Replies

0 Votes

avatar image

Daniel-Garcia-S-V asked

(UNO card game) I can't get the data with GetComponent function for an instance of an object

Sep 18, '20 c#·getcomponent·card·cards

0 Replies

0 Votes

avatar image

Uldeim commented

getting and setting scripts on objects via code

Nov 7, '14 getcomponent

1 Reply

0 Votes

avatar image

Zodiarc edited

What is wrong or what is missing

Jun 1, '16 in Help Room

1 Reply

0 Votes

avatar image

sagiziv asked

LWRP generates garbage every frame

Feb 11, '20 in Help Room

0 Replies

0 Votes

avatar image

cjdev commented

Getting component

Aug 20, '15 getcomponent

1 Reply

0 Votes

avatar image

kemnet asked

Difficulty setting script on gameObject from another script.

Feb 2, '21 in Help Room

0 Replies

0 Votes

avatar image

emsaigon12 published

I want to create a bookmark function using the toggle button,I want to develop the bookmark function

May 3, '21 getcomponent·toggle·singleton

0 Replies

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

Landern answered

Get Instantiated GameObjects from array or using GetCompoent?

Dec 4, '15 in Help Room

1 Reply

0 Votes

avatar image

ChillyRolande answered

Differentiate between two different components of the same type in GetComponent

Feb 14, '22 in Help Room

1 Reply

0 Votes

avatar image

carlqwe edited

Finding Script (GetComponent)

Mar 11, '16 in Help Room

1 Reply

0 Votes

avatar image

NeoTott commented

Inability to access the properties of a clone.

Jan 24, '18 in Help Room

1 Reply

0 Votes

avatar image

rhbrr5hrfgdfgw published

How do I fill in a variable that isn't a component via script?

Jun 17, '15 ui·getcomponent

3 Replies

0 Votes

avatar image

Kamil1064 answered

flashlight on and off

Mar 6, '16 in Help Room

1 Reply

0 Votes

avatar image

Andriska07 commented

Access into a scriptfile

May 5, '18 scripting problem·getcomponent

1 Reply

0 Votes

avatar image

turacept published

Unity Get OnClick Components Without Button Variable [C# Please]

Jun 15, '16 c#·getcomponent·onclick

0 Replies

0 Votes

avatar image

SpaceManDan commented

Access script based on which one is active

Sep 28, '15 in Help Room

2 Replies

0 Votes

avatar image

cosmologosaurusrex published

Player add values to script of spawned unit on spawn in network

Apr 20, '16 spawn·getcomponent·command

0 Replies

0 Votes

avatar image

Filhanteraren commented

Using GetComponent

Dec 23, '16 in Help Room

0 Replies

1 Votes

avatar image

Idual commented

Can't get a component from a parent!!

Jun 11, '22 movement·getcomponent·parent

2 Replies

0 Votes

  • »
  • ‹
  • 45
  • 46
  • 47
  • 48
  • 49
  • ›
  • »

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