• 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

oinkoinkflapflap asked

distance script not working!!!

Feb 13, '11 javascript·getcomponent·distance·enabled

1 Reply

0 Votes

avatar image

kecaj asked

changing variable in other script

Feb 13, '11 getcomponent·syntax

2 Replies

0 Votes

avatar image

degeneration asked

Issue with Destroy() when identifying the gameObject with a RayCast

Feb 11, '11 raycast·destroy·getcomponent·screenpointtoray

1 Reply

0 Votes

avatar image

Raymond 2 asked

acces variables from other script

Feb 9, '11 getcomponent·variables

2 Replies

0 Votes

avatar image

Tyler Starr asked

GetComponent help

Feb 6, '11 nullreferenceexception·getcomponent

2 Replies

0 Votes

avatar image

K B asked

How to Remove Multiple Components of Same Type from Game Object?

Feb 6, '11 destroy·getcomponent·remove·fixedjoint

2 Replies

1 Votes

avatar image

Silx commented

#pragma strict GetComponent from Javascript to C# fails

Jan 9, '12 getcomponent·bce0018

2 Replies

0 Votes

avatar image

pickledzebra asked

Adding Arbitrary Properties to GameObjects

Jan 19, '11 gameobject·getcomponent·properties·addcomponent·arraylist

1 Reply

0 Votes

avatar image

schwertfisch asked

dynamic typing in Unity iOS: ...not a member of 'UnityEngine.Component'

Jan 16, '11 ios·getcomponent·bce0019·dynamic typing

2 Replies

0 Votes

avatar image

Jessy edited

How to trigger a script in another game object

Jan 15, '11 trigger·getcomponent·bce0018

1 Reply

0 Votes

avatar image

Jonas 1 asked

NullReference Problem with pragma strict

Jan 15, '11 nullreferenceexception·getcomponent·static·type·pragma

1 Reply

0 Votes

avatar image

ronronmx asked

Best way to GetComponent with #pragma strict

Dec 28, '10 getcomponent·pragmastrict

3 Replies

0 Votes

avatar image

ina asked

Is there a way to reference a variable in another script if it's a different type of script?

Dec 28, '10 variable·getcomponent·expose·js-c#-together

2 Replies

0 Votes

avatar image

ina asked

Checking if a component has been removed or not at runtime

Dec 26, '10 destroy·getcomponent·runtime·component·remove

1 Reply

0 Votes

avatar image

Al-Anselmo asked

Static variable problem when using same script on multiple objects!

Dec 25, '10 getcomponent·static-vars·multiple-objects

1 Reply

0 Votes

avatar image

zmar0519 asked

Changing size of variable

Dec 24, '10 variable·getcomponent·size

1 Reply

0 Votes

avatar image

ina asked

BCW0012: WARNING: 'UnityEngine.MeshCollider.mesh' is obsolete. mesh has been replaced with sharedMesh and will be deprecated

Dec 22, '10 mesh·getcomponent·warning·sharedmesh

1 Reply

1 Votes

avatar image

NinjaEntertainment edited

Disabling a Script with C#

Sep 22, '17 error·getcomponent·enabled·cs0246

3 Replies

0 Votes

avatar image

Ray-Pendergraph edited

GameObject.AddComponent does not really add a Component?

Dec 17, '10 getcomponent

1 Reply

2 Votes

avatar image

ina asked

'mesh' is not a member of UnityEngine.Component - Explicit Typecasting for Android

Dec 16, '10 android·getcomponent·meshfilter·bce0044

1 Reply

0 Votes

avatar image

Ermarrero published

Why do I have to call ToString() when fetching a String from another script?

Apr 5, '14 javascript·getcomponent·string

2 Replies

0 Votes

avatar image

skovacs1 edited

Using GetComponet on a child object

Dec 1, '10 getcomponent

2 Replies

0 Votes

avatar image

oliver-jones asked

GetComponent Keeps Returning : Null??

Nov 27, '10 variable·getcomponent·static·mouseclick

2 Replies

1 Votes

avatar image

NeverHopeless edited

get variable from a different game object

Jan 14, '15 gameobject·variable·getcomponent

1 Reply

1 Votes

avatar image

SrBilyon edited

Reference from another script Help?

Nov 19, '10 getcomponent·achievement

1 Reply

1 Votes

avatar image

JakeBryn asked

totally confused with GetComponent

Nov 16, '10 getcomponent

1 Reply

0 Votes

avatar image

Herman-Tulleken edited

Disable SCRIPT HELP!!!!

Nov 2, '10 getcomponent·disable·enable

1 Reply

0 Votes

avatar image

lhk asked

Type of a script

Nov 1, '10 getcomponent·type

1 Reply

2 Votes

avatar image

karme84 answered

BCE0019: is not a member of 'UnityEngine.Component' when trying to Build and Run iOS Unity

Aug 14, '11 iphone·getcomponent·bce0019·unityiphone·dynamic typing

2 Replies

0 Votes

avatar image

Jesus_Freak edited

Get Component Question

Oct 29, '10 javascript·getcomponent·vehicle·fpswalker

1 Reply

0 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