• 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

Daniel-Garcia-S-V asked

(UNO card game) I can't get the data with GetComponent function for an instance of an object

Sep 18, '20 c#·getcomponent·card·cards

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

macca7000 answered

GetComponent has no error but not working

Sep 3, '20 in Help Room

1 Reply

0 Votes

avatar image

Freakhealer commented

how to access a float from one script in other script in different objects

Aug 27, '20 gameobject·getcomponent·float·public variable·share

3 Replies

0 Votes

avatar image

dddaniel159 commented

How to get the enemy my player touches when he attack?

Aug 17, '20 getcomponent·attack·health

1 Reply

0 Votes

avatar image

MidievalMan answered

How to Reuse Script on Enemies - Please Help!

Aug 9, '20 in Help Room

2 Replies

0 Votes

avatar image

mrmatt1877 commented

StateMachineBehaviour get component on awake ?? Closed

Aug 1, '20 animator·getcomponent·start·awake·state machine

1 Reply

0 Votes

avatar image

beniciodomi answered

Velocity returning 0

Jul 31, '20 velocity·getcomponent

3 Replies

0 Votes

avatar image

Berlm commented

Accessing the sibling of an object

Jul 18, '20 in Help Room

3 Replies

4 Votes

avatar image

Insok answered

[SerializeField] for self components instead of GetComponent?

Jul 9, '20 instantiate·optimization·getcomponent·optimisation·serializefield

1 Reply

0 Votes

avatar image

Bunny83 answered

How do I improve this code stink?

Jul 2, '20 in Help Room

1 Reply

0 Votes

avatar image

markoin answered

How do I change a clicked on GameObjects variable when a boolean (Next Turn) is true?

Jun 26, '20 raycast·getcomponent·int·bool

1 Reply

0 Votes

avatar image

Hollowayinc asked

For the particle system, making my stars is an issue as the script command calls are now obsolete.

Jun 17, '20 in Help Room

0 Replies

0 Votes

avatar image

jjd114 asked

Activating UI panel on GameObject Click/Destroy

Jun 14, '20 animation·gui·getcomponent

0 Replies

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

Bluesharky38 commented

How to make a script tell another script to set something to true?

Jun 5, '20 in Help Room

1 Reply

0 Votes

avatar image

calvintt commented

how do i use component gathered from ontriggerEnter, outside of that function?

Jun 5, '20 coroutine·scripting beginner·getcomponent

1 Reply

0 Votes

avatar image

Q-Ted answered

how do i use component gathered from ontriggerEnter, outside of that function?

Jun 5, '20 c#·scripting problem·coroutine·getcomponent

2 Replies

0 Votes

avatar image

BboyDeke_ answered

NullReferenceException: Object reference not set to an instance of an object

Jun 4, '20 in Help Room

1 Reply

0 Votes

avatar image

lucariolu3d commented

HasComponent

Jun 4, '20 c#·unity 5·getcomponent·type·generics

4 Replies

1 Votes

avatar image

Mehrdad995 answered

Save a Script Component as a variable.

May 27, '20 c#·getcomponent·component

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

SteenPetersen commented

Begginer Question on instantiate.

May 24, '20 getcomponent·instantiate prefab·begginer

2 Replies

0 Votes

avatar image

RotatingCelery asked

OnMouseDown() not registering clicks. ( 3d )

May 19, '20 3d·getcomponent·onmousedown

0 Replies

0 Votes

avatar image

soggysocks edited

[Solved] How to find a variable using the value of another variable?

May 15, '20 in Help Room

1 Reply

0 Votes

avatar image

Hellium commented

What's the most efficient way to change script from child object

May 14, '20 gameobject·getcomponent·child object·getcomponentinchildren

2 Replies

0 Votes

avatar image

quinndifferous commented

I cant get this code to work. What am i doing wrong?

May 7, '20 gameobject·sprite·getcomponent·resources.loadall

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

chris_mouzakiscs published

GetComponentInChildren

May 1, '20 in Help Room

0 Replies

0 Votes

avatar image

r3flx edited

Is there a better way to check if a player is looking at a certain object?

Apr 29, '20 in Help Room

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

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