• 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

RockSmashCreators asked

Getting Value from Function in another Script without knowing Script type

Jun 21, '16 in Help Room

0 Replies

0 Votes

avatar image

JedBeryll edited

Whats the difference between GetComponent and (Player)FindObjectOfType() ?

Jun 18, '16 in Help Room

0 Replies

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

GraviterX asked

Changing Footstep Sounds On Different Surfaces

Jun 2, '16 audio·getcomponent·footsteps

0 Replies

0 Votes

avatar image

Xeraster published

How do I change the color of a material in mesh render?

May 23, '16 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

Soraphis commented

Get color from another script.

Apr 23, '16 color·getcomponent

0 Replies

0 Votes

avatar image

El-Deiablo published

Access SpriteRenderer for random sprite pulled from array (trying to flip sprite if a spawned on a certain side)

Apr 21, '16 getcomponent·spriterenderer·flip·array of gameobjects

0 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

abc123weee published

How do I run an animation then destroy a game object?

Mar 27, '16 in Help Room

0 Replies

0 Votes

avatar image

hexagonius commented

Namespaces, referencing those namespaces, and everything in between.

Mar 19, '16 in Help Room

0 Replies

0 Votes

avatar image

UnexpectingError asked

questions about instantiate copies

Mar 14, '16 in Help Room

0 Replies

0 Votes

avatar image

Nerevar commented

Which instance will be used with GetComponant?

Feb 17, '16 in Help Room

0 Replies

0 Votes

avatar image

hexagonius commented

Help with setting the size of a GameObject using bounds

Feb 18, '16 getcomponent·renderer·bounds·max

0 Replies

0 Votes

avatar image

liam1135 published

Getting typename from collection.

Feb 15, '16 in Help Room

0 Replies

1 Votes

avatar image

Rauland12 asked

Generate ladder on y axis

Feb 4, '16 in Help Room

0 Replies

0 Votes

avatar image

vintar commented

How to assign a Sprite object a Texture object?

Feb 3, '16 in Help Room

0 Replies

0 Votes

avatar image

Graphics_Dev commented

Renderer error

Jan 15, '16 in Help Room

0 Replies

0 Votes

avatar image

StigC asked

Gui Text won't turn off

Jan 14, '16 in Help Room

0 Replies

0 Votes

avatar image

Loathsome asked

Need guidance in multi-use menu accessing prefabs

Dec 27, '15 in Help Room

0 Replies

0 Votes

avatar image

Tappo published

Object reference not set to an instance of an object

Dec 27, '15 in Help Room

0 Replies

0 Votes

avatar image

DLInteractive published

Need help with in game custom clock!

Dec 22, '15 getcomponent·gameobject.find

0 Replies

0 Votes

avatar image

Hellium commented

Why can't I access a variable from a different script?

Dec 17, '15 in Help Room

0 Replies

0 Votes

avatar image

laszlar edited

Animation disappears after getComponent?

May 9, '16 in Help Room

0 Replies

0 Votes

avatar image

Pettteri.p published

Getting value from another script

Dec 5, '15 getcomponent·string·attribute·metadata

0 Replies

0 Votes

avatar image

LeftyTwoGuns asked

Can't get Physics2D.IgnoreCollision to work on multiple objects

Nov 11, '15 getcomponent·collider2d·ignorecollision·ignore collisions

0 Replies

0 Votes

avatar image

Anthonyknowles commented

Struggling with Unity 5 GetComponent: Null reference

Nov 10, '15 in Help Room

0 Replies

0 Votes

avatar image

alibakhtiar edited

Javascript GetComponent not work!

Nov 4, '15 in Help Room

0 Replies

0 Votes

avatar image

Glurth edited

GetComponent is not a member of Object

Oct 13, '15 in Help Room

0 Replies

0 Votes

avatar image

RemDust asked

Set public Image in canvas from script

Sep 22, '15 in Help Room

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