• 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

Eric5h5 edited

Access another script

Oct 28, '10 getcomponent

2 Replies

0 Votes

avatar image

Gomorrah edited

Player turns not working (C#)

Oct 25, '10 getcomponent·object-reference-not-set

2 Replies

0 Votes

avatar image

VS48 edited

Accessing other objects efficiently

Oct 29, '10 performance·getcomponent·bestpractices

1 Reply

4 Votes

avatar image

Grimmy asked

How do I find an external component from inside a class?

Oct 20, '10 getcomponent·component·class

0 Replies

0 Votes

avatar image

Showken asked

use GetComonet() without parameters

Oct 19, '10 getcomponent·parameters·without

1 Reply

0 Votes

avatar image

Showken asked

"GetComponent()" ,"GetComponent() as T","(T)GetComponent()"

Oct 19, '10 getcomponent

1 Reply

-1 Votes

avatar image

Showken edited

why the "GetComponent()" add "as" sometimes?

Oct 16, '10 getcomponent·as-operator

1 Reply

1 Votes

avatar image

duck edited

How should I use the Generic versions of GetComponent and AddComponent?

Oct 13, '10 getcomponent·addcomponent·generics

3 Replies

0 Votes

avatar image

Kyouri asked

How to access scripts other than by name.

Oct 5, '10 getcomponent·variables·name

1 Reply

0 Votes

avatar image

DAQ commented

Why is GetComponent creating this error and how do I fix it?

Sep 14, '11 getcomponent·convert·bce0022

2 Replies

0 Votes

avatar image

pengo edited

"GetComponentInParent" - How do I do it?

Jun 13, '14 getcomponent·parent

3 Replies

0 Votes

avatar image

edited

help setting var on another object

Aug 30, '10 getcomponent·var

1 Reply

0 Votes

avatar image

gameCoder asked

GetComponent Errors

Aug 20, '10 getcomponent·cs0029

2 Replies

1 Votes

avatar image

OP_toss commented

Any way to 'GetComponent' as a base class?

Aug 22, '13 prefab·getcomponent·subclass

2 Replies

5 Votes

avatar image

Eric5h5 edited

error CS0308: The non-generic method `GetComponent' cannot be used with type arguments

Aug 16, '10 getcomponent·type·argument·cs0308

2 Replies

0 Votes

avatar image

BinaryCaveman asked

How to Access Components in Children of GameObject?

Aug 9, '10 gameobject·getcomponent·child·children·getcomponentinchildren

1 Reply

0 Votes

avatar image

Mattivc asked

Making a GetComponent array

Aug 8, '10 javascript·array·iphone·optimization·getcomponent

1 Reply

0 Votes

avatar image

Tabu asked

GetComponentInChildren, is there an Alternative way?

Aug 3, '10 getcomponent·getcomponentinchildren

1 Reply

0 Votes

avatar image

Ashkan_gc edited

accessing script components from external objects

Sep 1, '10 getcomponent·ontriggerenter

2 Replies

0 Votes

avatar image

Nawar commented

Accessing a variable within a function.... GetComponent()

Apr 16, '14 variable·getcomponent·function·accessing

2 Replies

1 Votes

avatar image

ginryu edited

An odd GetComponent error...

Dec 1, '13 error·getcomponent

1 Reply

0 Votes

avatar image

MikezNesh asked

A Question about GetComponent() (when accessing scripts)....

Jul 24, '10 getcomponent·click·waypoint·method

2 Replies

0 Votes

avatar image

Tetrad edited

Get.Component from C# to Java

Jul 20, '10 javascript·getcomponent

1 Reply

0 Votes

avatar image

Owen-Reynolds commented

How to Get TextMesh component from the Gameobject the script is attached to?

May 25, '15 text·getcomponent·component

3 Replies

1 Votes

avatar image

Krish-Vikram commented

Passing a string from Javascript to C#

Sep 19, '13 javascript·getcomponent·order

1 Reply

1 Votes

avatar image

Aequitas asked

Accessing each array members individual variable.

Jul 13, '10 array·getcomponent·findgameobjectswithtag

1 Reply

0 Votes

avatar image

Gruffy edited

Stupid question about public / private variables

Nov 24, '13 getcomponent·variables·accessing

2 Replies

1 Votes

avatar image

Ostagar edited

changing js public variable from cs script

Nov 5, '10 javascript·getcomponent·conversion

2 Replies

0 Votes

avatar image

atulvi answered

Why is this generic "Get component if null" code not working

Dec 16, '20 getcomponent·component·null·generics

5 Replies

3 Votes

avatar image

Dane411 commented

Accessing other gameobject's script variables : why doesn't this work?

Jun 19, '15 getcomponent·variables·accessing

2 Replies

1 Votes

  • »
  • ‹
  • 46
  • 47
  • 48
  • 49
  • 50
  • ›

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