• 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

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

Hsni answered

Components arent being found in script references

Jun 28, '18 in Help Room

1 Reply

0 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

himanshugupta159 answered

Using getcomponent with an array

Jun 18, '18 c#·gameobject·array·getcomponent

2 Replies

2 Votes

avatar image

himanshugupta159 answered

How do I use the GetComponent to access the RigidBody?

Jun 15, '18 in Help Room

2 Replies

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

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

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

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

avatar image

b1gry4n answered

How find Object after Instantiate in scene

Jun 2, '18 getcomponent·prefab-instance

1 Reply

0 Votes

avatar image

Sgt_Spike answered

Passing a value from one script to another

May 28, '18 in Help Room

1 Reply

0 Votes

avatar image

MrRandomFella commented

Timer Countdown not subtracting value.

May 28, '18 javascript·getcomponent·timer·timer countdown·subtract

1 Reply

0 Votes

avatar image

Mike_El commented

Trying to call Image varible with GetComponent, doesn't want to work

May 26, '18 sprite·image·getcomponent

1 Reply

0 Votes

avatar image

malkere commented

What's the best way to grab script references after instantiation

May 20, '18 gameobject·instantiate·getcomponent

1 Reply

0 Votes

avatar image

KaspianR commented

How to look for a game object and a change some components on that object?

May 18, '18 gameobject·getcomponent·getcomponents

1 Reply

0 Votes

avatar image

AhmadSannan answered

GetComponent from few GameObjects

May 13, '18 networking·getcomponent

1 Reply

0 Votes

avatar image

f732 asked

Unity crashes when GetComponent()

May 12, '18 crash·getcomponent

0 Replies

0 Votes

avatar image

tormentoarmagedoom answered

Properly got component but it is not reading the correct value from another script?

May 11, '18 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

Kciwsolb edited

How does instantiate connect to rigidbody?,How does instantiate userigidbody without getcomponent?

May 2, '18 c#·unity 5·rigidbody·instantiate·getcomponent

1 Reply

0 Votes

avatar image

ljhs commented

Change a string variable between scripts

Apr 30, '18 getcomponent

2 Replies

0 Votes

avatar image

FunFuel answered

2 same Scripts w/ GetComponent : one works, one doesn't

Apr 30, '18 in Help Room

2 Replies

0 Votes

avatar image

Alex-Gama published

GetComponent for the client doesn't work properly in RPC calls or serverside calls?

Apr 27, '18 in Help Room

0 Replies

0 Votes

avatar image

amnasheikh edited

Scrolling List List Item Manager

Apr 17, '18 in Help Room

1 Reply

0 Votes

avatar image

racsoknight asked

ChildsParentObject Function

Apr 17, '18 in Help Room

0 Replies

0 Votes

avatar image

Bunny83 commented

How to efficiently code "Get Component"?

Apr 12, '18 getcomponent·performance optimization·color change·efficiency

1 Reply

0 Votes

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

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