• 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

TheVectorHunter commented

pickup weapon with GetComponent

Aug 13, '12 getcomponent·sendmessage

0 Replies

0 Votes

avatar image

molokolom published

Gaze and Time delay for the Collider

Jun 18, '14 collider·time·getcomponent

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

mduffor published

How can I access a SerializedField by dynamic name?

Aug 30, '12 getcomponent·serializefield

0 Replies

0 Votes

avatar image

CornDog commented

How do I access a script component added to a gameobject from an assembly at run-time

Jun 19, '15 getcomponent·runtime·inheritance·assembly

0 Replies

0 Votes

avatar image

IMoriarty asked

Variable Getcomponent

Dec 7, '11 getcomponent

0 Replies

0 Votes

avatar image

Cutty_Flam published

Use abstract class for GetComponent?

Jul 8, '16 getcomponent·interface·c# tutorial·abstract

0 Replies

0 Votes

avatar image

OperationDogBird answered

Trying to add a script to a GUIText and then assign a variable in said script with GetComponent.

Aug 15, '12 getcomponent

0 Replies

0 Votes

avatar image

Turkeybag published

Having trouble understanding parenting with componants

Oct 16, '13 collision·collider·transform·getcomponent·parent

0 Replies

0 Votes

avatar image

tvashtar published

Calling a function in a prefab from a function of another GameObject in C#,Calling a function in a prefab from a function in another GameObject in C#

Jun 8, '19 in Help Room

0 Replies

0 Votes

avatar image

garciapablo1959 published

How to transform.position on a different GameObject with OnTriggerEnter()

Mar 16, '17 getcomponent

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

Smyw3 edited

Endless 3D plane repetition animated by script is not moving

Jun 16, '14 instantiate·transform·getcomponent·js to c#

0 Replies

0 Votes

avatar image

Luvs2Dummy published

Order of object instantiation scripting issues

Feb 17, '14 instantiate·getcomponent·order-of-execution·findobjectoftype

0 Replies

0 Votes

avatar image

HumblPi published

AddComponent for RawImage not functioning as expected

Feb 23, '17 gameobject·getcomponent·component·addcomponent

0 Replies

0 Votes

avatar image

Prototyper12 published

Learning Unity : GameObject Activation/DeActivation & Calling Components of child of another GameObject

Jun 17, '15 scripting problem·gameobject·getcomponent·vuforia·syntax-error

0 Replies

0 Votes

avatar image

GINTX published

problem with AnimationClip[]

Jan 8, '13 getcomponent·animationclip

0 Replies

0 Votes

avatar image

SecondMouse published

Enable My Script on Spawn

Mar 9, '14 photon·getcomponent·setactive·enable

0 Replies

0 Votes

avatar image

London243 commented

TWO GUI texture that doesn't work together

Jun 13, '14 ios·touch·getcomponent·move·guitexture

0 Replies

0 Votes

avatar image

General-Troll published

Referencing a GameObject's Components from if Statements (c#)

Jul 24, '16 in Help Room

0 Replies

0 Votes

avatar image

Bonfire-Boy edited

Only change a variable on the instaniated object not the prefab.

Oct 12, '16 gameobject·instantiate·variable·getcomponent

0 Replies

0 Votes

avatar image

Pedre published

Can't modify variable from another gameobject script

Jan 21, '14 player·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

ibps13 published

Getcomponent unity 4b11

Oct 20, '12 c#·getcomponent

0 Replies

0 Votes

avatar image

sdfteh published

NullReferenceException: Object reference not set to an instance of an object

Sep 1, '15 in Help Room

0 Replies

0 Votes

avatar image

Silenas edited

C# > Camera tagged MainCamera > GetComponent<[ScriptClassHere]>() returns null ?

Dec 17, '16 in Help Room

0 Replies

0 Votes

avatar image

palboy published

Object reference not set to an instance of an object in c#.

Apr 12, '14 c#·nullreferenceexception·getcomponent·timescale

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

ahaykal commented

GetComponent of copies of one gameobject?

Dec 4, '13 gameobject·trigger·getcomponent

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

  • ‹
  • 1
  • 2
  • 3
  • 4
  • 5
  • ›
  • »

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