• 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

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

Sgt_Spike answered

Passing a value from one script to another

May 28, '18 in Help Room

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

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

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

avatar image

Coldary commented

Get Component Script not working on some scripts

Jan 31, '21 in Help Room

1 Reply

0 Votes

avatar image

YetiMoon edited

fix script to get C# var from another object instead of object this script is attached to

Mar 27, '18 c#·gameobject·getcomponent·variables

2 Replies

0 Votes

avatar image

mani3307 edited

hi, how to get component with raycast, with the component havin different names on each object?

Mar 27, '18 getcomponent

2 Replies

0 Votes

avatar image

Bunny83 commented

Enemy variable remains null

Mar 22, '18 c#·variable·enemy·getcomponent·reference

1 Reply

0 Votes

avatar image

poppysilvers1997 commented

Inputting another scripts variable as a float

Mar 21, '18 in Help Room

1 Reply

0 Votes

avatar image

rd_mcn commented

How to use inputmanger while scripting?

Mar 17, '18 scripting problem·getcomponent·newbie

1 Reply

0 Votes

avatar image

prateems commented

When or where do I set a prefab script subclass property?

Feb 28, '18 scripting problem·getcomponent·prefabs·inheritance·properties

2 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

NMJ_GD edited

Is it overkill to RequireComponent then check if GetComponent isnt Null in Awake?

Feb 14, '21 in Help Room

1 Reply

0 Votes

avatar image

Harinezumi commented

Trigger not getting GameObject

Feb 23, '18 c#·gameobject·collider·trigger·getcomponent

2 Replies

0 Votes

avatar image

Hellium commented

Accessing a variable using Get Component from other GameObject Script

Feb 22, '18 in Help Room

1 Reply

1 Votes

avatar image

RayDart commented

Can I use a varaible with Getcomponent

Feb 20, '18 in Help Room

1 Reply

0 Votes

avatar image

Bonfire-Boy commented

How to call GetComponent by name? GetComponents?

Feb 15, '18 getcomponent·audiosource·getcomponentinchildren

2 Replies

0 Votes

avatar image

Newbie100 asked

Cannot figure out how to find animation in animator by name.

Feb 12, '18 animation·animator·scripting beginner·getcomponent·animator controller

0 Replies

0 Votes

avatar image

Harinezumi commented

Referencing to an initiated Text

Feb 9, '18 ui·text·getcomponent·instance·find

1 Reply

-2 Votes

avatar image

BAXENATOR asked

How do I import access to a script into another script?

Feb 8, '18 in Help Room

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