• 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

aldonaletto commented

checking if another object is grounded

May 12, '12 charactercontroller·getcomponent·grounded

1 Reply

0 Votes

avatar image

srsobieraj commented

Accessing GetComponent from a C# List

May 7, '12 c#·list·getcomponent

1 Reply

0 Votes

avatar image

NorthernEagle commented

GetComponent usage returns NullReferenceException, not sure why

May 7, '12 nullreferenceexception·getcomponent·find

1 Reply

1 Votes

avatar image

SGPascoe commented

Get variable from another object

May 6, '12 gui·variable·getcomponent·call

1 Reply

0 Votes

avatar image

Bunny83 answered

Using GetComponent() to change Script Variables, but does nothing

May 6, '12 getcomponent

2 Replies

0 Votes

avatar image

Bunny83 commented

How can i get a Transform component from an other object's script?

May 6, '12 object·getcomponent·target

1 Reply

-1 Votes

avatar image

maroonrs2 commented

heirarchy navagation

Apr 21, '12 getcomponent·heirarchy

1 Reply

0 Votes

avatar image

mweldon commented

NullReferenceException with GetComponent() C#

Apr 19, '12 c#·nullreferenceexception·getcomponent

0 Replies

0 Votes

avatar image

naqvir commented

Limiting respawns on scene

Apr 18, '12 gameobject·instantiate·getcomponent·find·respawn

1 Reply

0 Votes

avatar image

Tseng commented

Acessing a Script Instance from Another Object Closed

Apr 18, '12 gameobject·getcomponent·component·singleton

3 Replies

2 Votes

avatar image

ericksson commented

Getting NullReferenceException? info inside

Apr 16, '12 getcomponent·reference·layers·for-loop

1 Reply

0 Votes

avatar image

Eric5h5 commented

#pragma strict and GetComponent()

Apr 9, '12 getcomponent·global·#pragma strict

1 Reply

0 Votes

avatar image

Kleptomaniac commented

Setting a variable to a variable from another script

Apr 8, '12 gameobject·getcomponent·variables

1 Reply

0 Votes

avatar image

fpiesche published

NullReferenceException on GetComponent of Prefab Instance

Apr 6, '12 nullreferenceexception·getcomponent·prefabs·instance

1 Reply

0 Votes

avatar image

MachCUBED commented

'thrust' is not a member of UnityEngine.Component

Mar 30, '12 getcomponent·component·hud

1 Reply

1 Votes

avatar image

hijinxbassist answered

Best Unity Practices

Mar 29, '12 javascript·gameobject·beginner·getcomponent

1 Reply

0 Votes

avatar image

naqvir answered

Why is this null? Finding a script on an object

Mar 28, '12 gameobject·nullreferenceexception·getcomponent·null

3 Replies

0 Votes

avatar image

MMoi commented

Inheritance vs RequireComponent

Mar 18, '12 c#·getcomponent·component·inheritance·requirecomponent

-1 Replies

3 Votes

avatar image

syclamoth edited

Trouble accessing scripts (Boo)

Mar 13, '12 gameobject·getcomponent·boo

1 Reply

0 Votes

avatar image

jagjit777 commented

what is GetComponent?

Mar 12, '12 getcomponent

1 Reply

-1 Votes

avatar image

hijinxbassist published

Assign GameObject Inspector Vars Via Script

Mar 5, '12 getcomponent

1 Reply

1 Votes

avatar image

steinbitglis edited

Pragma strict : GetComponent without knowing the name of the component

Feb 29, '12 getcomponent·name·type·pragmastrict

3 Replies

0 Votes

avatar image

Alec-Slayden commented

how would I make an array of different scripts

Feb 29, '12 array·list·getcomponent·type

1 Reply

0 Votes

avatar image

Alec-Slayden answered

refer to component by number or type instead of name?

Feb 29, '12 getcomponent·name·type

1 Reply

0 Votes

avatar image

WillTAtl commented

more pragma strict getComponent and SendMessage problems

Feb 28, '12 getcomponent·sendmessage·pragma

0 Replies

0 Votes

avatar image

Romano185 edited

Problem with getcomponent replacing static variables

Feb 28, '12 player·enemy·getcomponent·damage·static-variables

0 Replies

0 Votes

avatar image

WillTAtl commented

pragma strict problem with GetComponent and script name

Feb 27, '12 iphone·getcomponent·pragma

1 Reply

0 Votes

avatar image

lsy835375 published

Getcomponent error, plz help

Feb 26, '12 getcomponent

1 Reply

0 Votes

avatar image

nightshade1 published

ren]er cube problem

Feb 20, '12 javascript·getcomponent·booleans

0 Replies

0 Votes

avatar image

syclamoth commented

GetComponent Editing Variables not working in 3.5?

Feb 19, '12 error·getcomponent·3.5

0 Replies

0 Votes

  • »
  • ‹
  • 42
  • 43
  • 44
  • 45
  • 46
  • ›
  • »

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