• 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

kianniek published

problem with a list that has to store different things for multiple gameobjects Closed

Apr 29, '20 gameobject·script.·getcomponent·lists

1 Reply

0 Votes

avatar image

rodude123 edited

how i can Get component in FindGameObjectsWithTag ???

Apr 28, '20 c#·getcomponent·findgameobjectswithtag

2 Replies

1 Votes

avatar image

aniket_vs published

NULL REFERENCE EXCEPTION,NULL REFERENCE EXCEPTION while accessing child objects unity2D

Apr 28, '20 gameobject·transform·nullreferenceexception·getcomponent·transform.position

0 Replies

0 Votes

avatar image

hexagonius answered

How can I pause the first person character camera rotation in this case??

Apr 27, '20 c#·camera·getcomponent·rotate object·mouselook

1 Reply

1 Votes

avatar image

yummy81 answered

What is the order of execution for the instantiated object's GetComponent.Script.DoSomething?

Apr 26, '20 gameobject·scripting beginner·getcomponent·scriptingbasics·order-of-execution

1 Reply

0 Votes

avatar image

dragonero94 asked

GetComponen doesn't work

Apr 20, '20 in Help Room

0 Replies

0 Votes

avatar image

saadali211 answered

How do I call an enum from another script?

Apr 16, '20 c#·getcomponent·boolean·enum

3 Replies

3 Votes

avatar image

StandAloneStudio answered

How to get a single Text component from one of multiple children all containing Text components

Apr 13, '20 gameobject·getcomponent

2 Replies

0 Votes

avatar image

unity_EGkah3rNb0ziTw answered

Accessing a boolean from another script with GetComponent (USING C#!)

Apr 2, '20 getcomponent·boolean·access·different

1 Reply

0 Votes

avatar image

WhisperXD commented

how to create ID to script ??

Apr 1, '20 c#·getcomponent·tag·find·id

0 Replies

0 Votes

avatar image

daggertok commented

How to change image of button when clicked?

Mar 31, '20 in Help Room

2 Replies

2 Votes

avatar image

ahsen35813 converted comment to answer

Get variable from other GameObject's script Closed

Mar 30, '20 variable·getcomponent·other script

3 Replies

0 Votes

avatar image

A_Sad_Shoe answered

Cant Disable Script on Another Gameobject

Mar 29, '20 in Help Room

1 Reply

0 Votes

avatar image

Zentiu answered

Accessing a GameObject from another script

Mar 20, '20 transform·getcomponent·findgameobjectswithtag

1 Reply

0 Votes

avatar image

BastianUrbach edited

What is the basic syntax of accessing components?

Mar 9, '20 scripting problem·getcomponent·syntax·accessing

1 Reply

1 Votes

avatar image

yuanxindrome edited

Counter for sprite under script from GameObject prefab

Mar 2, '20 gameobject·prefab·sprite·getcomponent·getcomponentinchildren

0 Replies

0 Votes

avatar image

justaddice83 answered

My health bars image.fillAmount doesnt change.

Feb 28, '20 in Help Room

4 Replies

0 Votes

avatar image

sagiziv asked

LWRP generates garbage every frame

Feb 11, '20 in Help Room

0 Replies

0 Votes

avatar image

vainoharha answered

Randomized array result from other scipt

Feb 7, '20 in Help Room

2 Replies

0 Votes

avatar image

unity_ek98vnTRplGj8Q answered

can't find List index and pick a object with that index.

Feb 6, '20 list·getcomponent·incorrect

1 Reply

0 Votes

avatar image

$$anonymous$$ commented

Enable/disable mesh renderer component of a child

Jan 19, '20 getcomponent·meshrenderer

2 Replies

2 Votes

avatar image

atomodelfinal commented

Can't add sprite to instantiated GameObject

Jan 9, '20 instantiate·getcomponent·spriterenderer·addcomponent

2 Replies

0 Votes

avatar image

olejuer answered

How to find child with tag?

Jan 3, '20 getcomponent

5 Replies

1 Votes

avatar image

tothemario answered

How to FindChild RectTransform and access its Text

Dec 4, '19 array·text·getcomponent·recttransform·findchild

2 Replies

0 Votes

avatar image

ammirea edited

GetComponentInChildren Returning a Component in Parent Closed

Dec 2, '19 c#·getcomponent·getcomponentinchildren

4 Replies

4 Votes

avatar image

WinteryJungle9 commented

Cannot disable a script from another script?

Nov 21, '19 in Help Room

3 Replies

0 Votes

avatar image

martygrof3708 commented

How can I detect for 2 different component types using an interface on RayCast Hit?

Nov 20, '19 raycast·getcomponent·interface

1 Reply

0 Votes

avatar image

rainbowbeansprout commented

Calling GetComponent on an instantiated prefab returns null,Calling GetComponent on an instantiated prefab

Nov 9, '19 prefab·nullreferenceexception·getcomponent

1 Reply

0 Votes

avatar image

Bunny83 answered

How to use GetComponent in a foreach loop? Closed

Nov 5, '19 getcomponent·foreach

3 Replies

0 Votes

avatar image

alexandersueme answered

Im trying to get a value off another script. I'm not getting any error, but I'm getting 0 instead of 5. What am I doing wrong?

Nov 4, '19 getcomponent

2 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

Related Topics

c# gameobject variable javascript instantiate scripting problem nullreferenceexception component error array unity 5 prefab script. variables boolean reference ui find string transform ontriggerenter raycast text 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