• 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

RemDust asked

Set public Image in canvas from script

Sep 22, '15 in Help Room

0 Replies

0 Votes

avatar image

thunderclaws asked

need general help with camerascript

Sep 11, '15 in Help Room

0 Replies

0 Votes

avatar image

animeman0 edited

I can't access other scripts from the main script - c #

Sep 2, '15 in Help Room

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

Malitias published

is inaccessible due to its protection level

Sep 1, '15 in Help Room

0 Replies

0 Votes

avatar image

Bunny83 edited

Why is GetComponent including another object?

Aug 30, '15 getcomponent

0 Replies

0 Votes

avatar image

LucaH97 published

Can't Access Prefab Script from FPS Controller

Aug 11, '15 prefab·getcomponent·access

0 Replies

0 Votes

avatar image

waterraft published

C# accessing an array from a script in a different gameobject outside of the awake function

Aug 2, '15 c#·scripting problem·getcomponent·awake·accessing

0 Replies

0 Votes

avatar image

Seventh Stealth edited

GetComponent not working inside OnTriggerEnter half the time

Jul 28, '15 javascript·getcomponent

0 Replies

0 Votes

avatar image

mkobaner edited

get CrossPlatformInputdata from the basic asset using get component c#

Jul 13, '15 getcomponent

0 Replies

0 Votes

avatar image

gotnull published

Finding a specific layer's MeshRenderer

Jun 29, '15 gameobject·getcomponent·renderer·meshrenderer

0 Replies

0 Votes

avatar image

JeevanjotSingh edited

How to change animation speed in Unity 5

Jun 20, '15 animation·unity 5·unity5·getcomponent·speed

0 Replies

0 Votes

avatar image

JeevanjotSingh edited

Another animation is not working

Jun 19, '15 unity 5·getcomponent·play·stop·anmation

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

rohanbanerjee published

Remove HingeJoint2D from the Instance not from the Prefab

Jun 18, '15 prefab·getcomponent·instance·hingejoint2d

0 Replies

0 Votes

avatar image

herbie175 published

reference an object in a diference scene

Jun 18, '15 scene·getcomponent

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

theperm327 published

I'm trying to change a material, texture or color and it doesnt work

Jun 2, '15 texture·material·color·getcomponent·renderer

0 Replies

0 Votes

avatar image

Mol published

A way to avoid coding super specific function using the new UI

Apr 24, '15 ui·getcomponent

0 Replies

0 Votes

avatar image

roojerry edited

Transform[].GetComponent HELP!

Apr 23, '15 transform·getcomponent

0 Replies

0 Votes

avatar image

cadellinman published

Adjusting size of a halo in C#

Apr 22, '15 c#·getcomponent·component·halo

0 Replies

1 Votes

avatar image

Nymisu commented

Help with gameobject.getcomponent of parent

Apr 7, '15 getcomponent

0 Replies

0 Votes

avatar image

warrior_rui published

C# about NGUITools.AddChild and GetComponent Null

Mar 22, '15 c#·getcomponent·nullreferenceexeption

0 Replies

0 Votes

avatar image

Z2CSharp asked

Unity 5 Adding a script component to another object upon Enter

Mar 14, '15 unity5·network·getcomponent·api·addcomponent

0 Replies

0 Votes

avatar image

Saint0120 published

GetComponent bool changes original script

Feb 14, '15 getcomponent·boolean

0 Replies

0 Votes

avatar image

Zukas edited

How can I pre-load all the possible components to avoid stuttering with GetComponent?

Feb 8, '15 raycast·touch·getcomponent

0 Replies

0 Votes

avatar image

unimechanic converted comment to answer

Get Component gets the wrong component

Jan 28, '15 getcomponent·lookat·tower defense·tower

0 Replies

0 Votes

avatar image

Saint0120 edited

GetComponent for a stored transform.

Jan 20, '15 instantiate·transform·enemy·getcomponent

0 Replies

0 Votes

avatar image

DarthPork published

Issues accessing a variable in another script

Jan 19, '15 javascript·variable·getcomponent·accessing from any script

0 Replies

0 Votes

avatar image

Seventh Stealth asked

Having some trouble with GetComponent(ScriptName"); Missing Method Exception.

Jan 6, '15 javascript·ai·getcomponent

0 Replies

0 Votes

  • »
  • ‹
  • 4
  • 5
  • 6
  • 7
  • 8
  • ›
  • »

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