• 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

Serk asked

How to check if a component exists without generating garbage?

Jun 11, '14 getcomponent·garbage-collection

0 Replies

1 Votes

avatar image

F00bzor published

Copy collider Component type and parameter to a new Object at runtime

Sep 9, '13 collider·getcomponent·runtime·addcomponent

0 Replies

1 Votes

avatar image

Thereddic published

Implementing Setter/Getter

Nov 11, '14 getcomponent·getter

0 Replies

0 Votes

avatar image

Krimzen published

Animation through graphics in FPS controller, weird character controller issue, NEED help!

May 26, '13 animation·charactercontroller·jump·getcomponent·isgrounded

0 Replies

0 Votes

avatar image

lonedrow1 commented

GetComponent, Object Reference not set to an instance of an object

Sep 5, '14 raycast·nullreferenceexception·getcomponent

0 Replies

0 Votes

avatar image

NathanJaremko edited

Problem with 2 scripts communicating

Jul 18, '12 variable·enemy·getcomponent·health

0 Replies

0 Votes

avatar image

maltadirk commented

C# - Auto increment of Scenes through Collision

Mar 30, '14 nullreferenceexception·getcomponent·scene-switching·application.loadlevel

0 Replies

0 Votes

avatar image

avazutaev commented

Accessing a text variable from another script

Feb 7, '17 in Help Room

0 Replies

0 Votes

avatar image

CoCoMolly published

Connecting Multiple Rigidbodies with Collision

Oct 24, '12 rigidbody·getcomponent·parent·child·kinematic

0 Replies

0 Votes

avatar image

Firedan1176 published

Change the Halo Component (not the default) in a light in C#???

Jan 31, '14 lighting·getcomponent·component·halo

0 Replies

0 Votes

avatar image

T3PeS asked

NullReferenceException for Guiskin asigned over inspector

May 4, '11 getcomponent·guiskin

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

London243 published

move a gameobject from a GUITexture

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

0 Replies

0 Votes

avatar image

nzavattero published

Finding name of gameobject that entered a trigger

Jun 10, '17 in Help Room

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

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

AlwaysSunny edited

null reference immediately after reference works?

Jan 22, '12 bug·getcomponent·null reference exception

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

nightshade1 published

ren]er cube problem

Feb 20, '12 javascript·getcomponent·booleans

0 Replies

0 Votes

avatar image

EvilTak commented

Raycast to Disable Script

Apr 21, '14 gameobject·raycast·transform·getcomponent

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

Doireth edited

Getting a Variable on Script B to equal a variable from script A Wiki

Oct 14, '13 c#·ai·getcomponent·variables

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

MrSoad commented

Get component used to reference rotation of object in if statement?

Dec 13, '14 2d·rotation·getcomponent·shooting·shoot

0 Replies

0 Votes

avatar image

paulaceccon edited

Getting NullReference when calling Instantiate from another script

Dec 7, '12 instantiate·getcomponent·null

0 Replies

0 Votes

avatar image

LoadingMClogic published

How do you keep a constant velocity of an object Unity 5.5

May 9, '17 in Help Room

0 Replies

0 Votes

avatar image

Tetzio asked

Reference a script on a gameobject that is disabled in scene

Dec 2, '18 in Help Room

0 Replies

0 Votes

avatar image

AlucardJay edited

FindWithTag or GetComponent not working in Unity4?

Nov 25, '12 getcomponent·unity4·findwithtag

0 Replies

0 Votes

avatar image

AndreStv published

GetComponent conflicting with DontDestroyOnLoad?

Oct 7, '12 getcomponent·dontdestroyonload

0 Replies

0 Votes

avatar image

RobotReebot edited

GetComponent don't work (i am desperate)

Oct 25, '14 c#·instantiate·getcomponent

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