• 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

ChompIV asked

How do I take a public float from a different script and access it

Jun 13, '17 getcomponent·playerprefs·float·mouselook·sensitivity

0 Replies

0 Votes

avatar image

Soraphis commented

Get color from another script.

Apr 23, '16 color·getcomponent

0 Replies

0 Votes

avatar image

animeman0 edited

I can't access other scripts from the main script - c #

Sep 2, '15 in Help Room

0 Replies

0 Votes

avatar image

SaraCecilia published

Editing other object's animator parameter... NullReferenceException? (VR)

Aug 11, '17 in Help Room

0 Replies

0 Votes

avatar image

EscapeGoat commented

Delete a specific instantiated prefab by its vector3 coordinates?

Aug 3, '16 destroy·getcomponent·find·prefab-instance

0 Replies

0 Votes

avatar image

Ryujose commented

PowerUp mechanics doesn't works

Dec 26, '14 getcomponent·tag·hierarchy·state

0 Replies

0 Votes

avatar image

Shmulzious edited

Script components from multiple objects point to only one

Oct 9, '14 getcomponent

0 Replies

0 Votes

avatar image

simcity published

getcomponent doesn't work with networkbehaviour,Getcomponent doesn't work with NetworkBehaviour

Mar 16, '17 network·getcomponent

0 Replies

0 Votes

avatar image

Rowz published

Self Reference and TextMesh inside of a script to change the text

Aug 19, '16 getcomponent·objects·referencing·healthbar·health-deduction

0 Replies

0 Votes

avatar image

eses commented

GetComponent AudioSource not working

Aug 11, '18 in Help Room

0 Replies

0 Votes

avatar image

f732 asked

Unity crashes when GetComponent()

May 12, '18 crash·getcomponent

0 Replies

0 Votes

avatar image

laszlar edited

Animation disappears after getComponent?

May 9, '16 in Help Room

0 Replies

0 Votes

avatar image

sethuraj commented

How do I acces a specific GameObject within the terrain????

Nov 27, '17 unity 5·instantiate·getcomponent·array of gameobjects·clones

0 Replies

0 Votes

avatar image

gotnull published

Finding a specific layer's MeshRenderer

Jun 29, '15 gameobject·getcomponent·renderer·meshrenderer

0 Replies

0 Votes

avatar image

MauBel asked

Tag control

Sep 28, '16 in Help Room

0 Replies

0 Votes

avatar image

yuanxindrome edited

Counter for sprite under script from GameObject prefab

Mar 2, '20 gameobject·prefab·sprite·getcomponent·getcomponentinchildren

0 Replies

0 Votes

avatar image

Seventh Stealth edited

GetComponent not working inside OnTriggerEnter half the time

Jul 28, '15 javascript·getcomponent

0 Replies

0 Votes

avatar image

mkobaner edited

get CrossPlatformInputdata from the basic asset using get component c#

Jul 13, '15 getcomponent

0 Replies

0 Votes

avatar image

ItzWessyG published

How to change value of an animation paramater?

Apr 11, '14 animation·getcomponent·parameters

0 Replies

0 Votes

avatar image

Platiniumekk commented

How to modify variables from second script.

Nov 29, '16 in Help Room

0 Replies

0 Votes

avatar image

Excelciar edited

Changing script variable from another script doesn't change it in the original script?

Dec 4, '17 in Help Room

0 Replies

0 Votes

avatar image

nomad5 commented

Modifying a variable of another script with get set

Sep 12, '14 gameobject·getcomponent

0 Replies

0 Votes

avatar image

nedvdd42 asked

Trying to get doors to close after x time since the player has passed through the previous?

Feb 26, '18 in Help Room

0 Replies

0 Votes

avatar image

chadfranklin47 edited

Problem Destroying Component

Jan 24, '18 in Help Room

0 Replies

0 Votes

avatar image

Master_Davicous published

Changing image color from other object's script (glitch)?

Apr 29, '16 in Help Room

0 Replies

0 Votes

avatar image

Jessespike edited

Passing enemy statistic to FightController

Jun 23, '16 in Help Room

0 Replies

0 Votes

avatar image

roojerry edited

Transform[].GetComponent HELP!

Apr 23, '15 transform·getcomponent

0 Replies

0 Votes

avatar image

$$anonymous$$ edited

Updating sprite from other script in edit mode

Oct 27, '19 editor-scripting·getcomponent

0 Replies

0 Votes

avatar image

adhominen commented

Pass Variable Through C Script

Mar 20, '17 in Help Room

0 Replies

0 Votes

avatar image

Saint0120 published

GetComponent bool changes original script

Feb 14, '15 getcomponent·boolean

0 Replies

0 Votes

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

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