• 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

Jessespike edited

numerous errors with super basic door transform

Aug 11, '16 transform·vector3·getcomponent·unity 4.6·if statement

1 Reply

0 Votes

avatar image

ShadyProductions answered

A more graceful way to get a list/array of a certain component from all GameObjects of a type?

Jun 8, '20 scripting beginner·getcomponent·findobjectsoftype

1 Reply

0 Votes

avatar image

Rebel8909 edited

Scripts not functioning or interacting.

Nov 5, '14 javascript·getcomponent

1 Reply

0 Votes

avatar image

kevinamoin23 commented

Hello. I want to call a function on another script but a got an error how can I fix this :'( Im a beginner please help. The Script name that I want to call its function is Save Manager.

Sep 9, '16 in Help Room

1 Reply

0 Votes

avatar image

rd_mcn commented

How to use inputmanger while scripting?

Mar 17, '18 scripting problem·getcomponent·newbie

1 Reply

0 Votes

avatar image

NeverHopeless edited

Try to access variables of other script

Jul 6, '15 getcomponent

5 Replies

0 Votes

avatar image

vintar commented

How to assign a Sprite object a Texture object?

Feb 3, '16 in Help Room

0 Replies

0 Votes

avatar image

OusedGames commented

GetComponent only works on certain scenes!

Aug 1, '17 getcomponent

0 Replies

0 Votes

avatar image

Magso answered

Get variable from Script in list and , set direct link to other script

Sep 10, '20 c#·list·variable·getcomponent·monobehaviour

1 Reply

0 Votes

avatar image

Abhiroop-Tandon answered

Enemy AI Script Error

Mar 25, '16 in Help Room

1 Reply

0 Votes

avatar image

Wayne_Peters commented

Effecting other game objects remotely

Feb 4, '17 in Help Room

1 Reply

0 Votes

avatar image

lupitul published

how to add An boxCollider to photonView in Script?

May 9, '17 getcomponent·addcomponent

0 Replies

0 Votes

avatar image

Alex-Gama published

GetComponent for the client doesn't work properly in RPC calls or serverside calls?

Apr 27, '18 in Help Room

0 Replies

0 Votes

avatar image

Sgt_Spike answered

Passing a value from one script to another

May 28, '18 in Help Room

1 Reply

0 Votes

avatar image

vainoharha answered

Randomized array result from other scipt

Feb 7, '20 in Help Room

2 Replies

0 Votes

avatar image

brendenderp edited

{SOLVED, but not realy} working on a space shooter game and im having problems with my upgrade buttons.

Jul 21, '17 in Help Room

1 Reply

0 Votes

avatar image

poppysilvers1997 commented

Inputting another scripts variable as a float

Mar 21, '18 in Help Room

1 Reply

0 Votes

avatar image

hexagonius converted comment to answer

Getting a huge amount of errors regarding contained definitions in GameObject

Mar 24, '19 gameobject·transform·error message·getcomponent

1 Reply

0 Votes

avatar image

Magso commented

GetComponent returning null

Mar 30, '19 animator·getcomponent

0 Replies

0 Votes

avatar image

Aaranos commented

error CS0120: An object reference is required to access non-static member

Jan 24, '16 in Help Room

1 Reply

0 Votes

avatar image

AvatarMars asked

Is it possible to get a component from a parent of a found GameObject?

Dec 23, '18 in Help Room

0 Replies

0 Votes

avatar image

doublemax edited

how do i solve it? it is a maze game and the error is stating unexpected 'public'.

Nov 23, '16 getcomponent·method·public

1 Reply

0 Votes

avatar image

zorgzikhnit published

Character Select Button Putting Info into GameManager Script - Is this Possible?

May 7, '20 in Help Room

0 Replies

0 Votes

avatar image

felipin edited

Getting instantiated clone's coordinates from the same script

Jul 6, '18 c#·instantiate·getcomponent

1 Reply

0 Votes

avatar image

ADiSiN commented

I cant Get the value of an Array

May 27, '20 array·getcomponent

0 Replies

0 Votes

avatar image

Doireth commented

Dont know how to use getComponent, even after reading documentation..

Apr 1, '16 in Help Room

1 Reply

0 Votes

avatar image

Hellium commented

Is it possible: "getComponent<_array_element_$>"?

Jan 13, '17 getcomponent·arrays·string

1 Reply

0 Votes

avatar image

Bunny83 commented

Make script[] = gameobject[].getcomponet

Nov 23, '17 in Help Room

1 Reply

-1 Votes

avatar image

Verilyzed edited

Help with GetComponent

Oct 8, '20 getcomponent

2 Replies

0 Votes

avatar image

JetixBoy asked

how to get a string from another script in OnTriggerEnter2D

Apr 8, '21 in Help Room

0 Replies

0 Votes

  • »
  • ‹
  • 44
  • 45
  • 46
  • 47
  • 48
  • ›
  • »

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