• 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

Kendom commented

Trying To Spawn a Modified Prefab with NetworkServer.Spawn doesn't work.

Apr 4, '17 in Help Room

0 Replies

0 Votes

avatar image

adhominen commented

Pass Variable Through C Script

Mar 20, '17 in Help Room

0 Replies

0 Votes

avatar image

simcity published

getcomponent doesn't work with networkbehaviour,Getcomponent doesn't work with NetworkBehaviour

Mar 16, '17 network·getcomponent

0 Replies

0 Votes

avatar image

garciapablo1959 published

How to transform.position on a different GameObject with OnTriggerEnter()

Mar 16, '17 getcomponent

0 Replies

0 Votes

avatar image

Generalkidd commented

GetComponent Null Reference on instantiated objects

Mar 13, '17 in Help Room

0 Replies

0 Votes

avatar image

hexagonius commented

Semicolon expected before end of line

Feb 26, '17 in Help Room

0 Replies

0 Votes

avatar image

HumblPi published

AddComponent for RawImage not functioning as expected

Feb 23, '17 gameobject·getcomponent·component·addcomponent

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

5c4r3cr0w commented

How dose getcomponentwork ?

Jan 11, '17 in Help Room

0 Replies

-1 Votes

avatar image

remembadaname asked

Can someone help me work through an error code i dont understand?

Jan 8, '17 in Help Room

0 Replies

0 Votes

avatar image

roeming published

Copying variables in game?

Jan 6, '17 in Help Room

0 Replies

0 Votes

avatar image

Filhanteraren commented

Using GetComponent

Dec 23, '16 in Help Room

0 Replies

1 Votes

avatar image

Silenas edited

C# > Camera tagged MainCamera > GetComponent<[ScriptClassHere]>() returns null ?

Dec 17, '16 in Help Room

0 Replies

0 Votes

avatar image

VHLS2 asked

using cheat codes to enable a camera effect.

Dec 6, '16 in Help Room

0 Replies

0 Votes

avatar image

Platiniumekk commented

How to modify variables from second script.

Nov 29, '16 in Help Room

0 Replies

0 Votes

avatar image

Cherno edited

Access GameObjects Parents and Childs from any level of hierarchy

Oct 13, '16 getcomponent·hierarchy·child object·parent and child

0 Replies

0 Votes

avatar image

Bonfire-Boy edited

Only change a variable on the instaniated object not the prefab.

Oct 12, '16 gameobject·instantiate·variable·getcomponent

0 Replies

0 Votes

avatar image

HazyCarnation published

Why isn't the animator getting my values?

Oct 7, '16 c#·animation·animator·getcomponent·setfloat

0 Replies

0 Votes

avatar image

SpaceKing commented

How do you access the Scripts, Functions, and Bools within an array of GameObjects?

Oct 5, '16 in Help Room

0 Replies

0 Votes

avatar image

MauBel asked

Tag control

Sep 28, '16 in Help Room

0 Replies

0 Votes

avatar image

Rachel570 published

Unity: Attaching a volume control slider that doesn't always exist, to another object.

Sep 23, '16 unity 5·getcomponent·slider·music·persistent

0 Replies

0 Votes

avatar image

swagmanPT commented

Can't use blur

Sep 20, '16 in Help Room

0 Replies

0 Votes

avatar image

TBruce commented

getComponent requires that the requested component 'BloomQuality' derives from monoBehaviour or component or is an interface

Aug 27, '16 in Help Room

0 Replies

0 Votes

avatar image

ptoro asked

GetComponent returns null

Aug 25, '16 in Help Room

0 Replies

0 Votes

avatar image

Rowz published

Self Reference and TextMesh inside of a script to change the text

Aug 19, '16 getcomponent·objects·referencing·healthbar·health-deduction

0 Replies

0 Votes

avatar image

EscapeGoat commented

Delete a specific instantiated prefab by its vector3 coordinates?

Aug 3, '16 destroy·getcomponent·find·prefab-instance

0 Replies

0 Votes

avatar image

General-Troll published

Referencing a GameObject's Components from if Statements (c#)

Jul 24, '16 in Help Room

0 Replies

0 Votes

avatar image

Inflatable_What published

How would I edit UI Text with a script in Javascript?

Jul 24, '16 ui·getcomponent

0 Replies

0 Votes

avatar image

Cutty_Flam published

Use abstract class for GetComponent?

Jul 8, '16 getcomponent·interface·c# tutorial·abstract

0 Replies

0 Votes

avatar image

Jessespike edited

Passing enemy statistic to FightController

Jun 23, '16 in Help Room

0 Replies

0 Votes

  • »
  • ‹
  • 2
  • 3
  • 4
  • 5
  • 6
  • ›
  • »

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