• 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

rickymanalo asked

Singleton field getter/setter doesn't work

Jun 2, '22 getcomponent·singleton

0 Replies

0 Votes

avatar image

Draken17 published

Trying to reference script that is attached to empty state in the animator. GetComponent Not Working

May 30, '22 in Help Room

0 Replies

0 Votes

avatar image

Monsoonexe asked

How to add items to the Component references context menu?

May 27, '22 editor·editor-scripting·getcomponent·contextmenu·right click

0 Replies

0 Votes

avatar image

DevKonsept published

I want to check if variable is missing(not null),Can't check if object has missing variable

Mar 25, '22 in Help Room

0 Replies

0 Votes

avatar image

DevKonsept asked

I wan't to check if variable on a scritp component is missing

Mar 25, '22 in Help Room

0 Replies

0 Votes

avatar image

LukeDraper edited

Is it possible to override the texture component values even though the variable is set to public?

Mar 9, '22 vr·texture2d·getcomponent·oculus

0 Replies

0 Votes

avatar image

jasoncw88888 asked

Universal Stats Class for game character/objects

Mar 7, '22 in Help Room

0 Replies

0 Votes

avatar image

rhksdn2314 published

GetComponent, TryGetComponent and NullErrorWrapper GC Question

Feb 22, '22 in Help Room

0 Replies

0 Votes

avatar image

jimmmmmy97 published

Unity: when I use raycast, getcomponet can not work under the if statement. I think the logic is reasonable. I do not know how to collect it...

Feb 14, '22 in Help Room

0 Replies

0 Votes

avatar image

tios published

Script doesn't take health player script

Nov 29, '21 in Help Room

0 Replies

0 Votes

avatar image

monkfurts edited

GetComponent without Playmode

Sep 11, '21 in Help Room

0 Replies

0 Votes

avatar image

DanubePrivateUniversity published

mars get camera position

Jul 26, '21 camera·getcomponent

0 Replies

0 Votes

avatar image

emsaigon12 published

I want to create a bookmark function using the toggle button,I want to develop the bookmark function

May 3, '21 getcomponent·toggle·singleton

0 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

avatar image

Voltonik_ edited

Is it possible to change CustomPass variables via other script?

Apr 4, '21 in Help Room

0 Replies

0 Votes

avatar image

unity_3rwby93b8roxIQ edited

Access variable from another script without GetComponent

Mar 9, '21 in Help Room

0 Replies

0 Votes

avatar image

Stryder2384 asked

Random audio clips from array on prefab crash

Feb 12, '21 in Help Room

0 Replies

0 Votes

avatar image

kemnet asked

Difficulty setting script on gameObject from another script.

Feb 2, '21 in Help Room

0 Replies

0 Votes

avatar image

xGoldenK commented

Avoid using GetComponent to check if RayCast hit is interactable

Jan 3, '21 in Help Room

0 Replies

0 Votes

avatar image

s3etch published

Component unassigned when it is

Oct 6, '20 gameobject·getcomponent

0 Replies

0 Votes

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

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

ADiSiN commented

I cant Get the value of an Array

May 27, '20 array·getcomponent

0 Replies

0 Votes

avatar image

RotatingCelery asked

OnMouseDown() not registering clicks. ( 3d )

May 19, '20 3d·getcomponent·onmousedown

0 Replies

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

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

dragonero94 asked

GetComponen doesn't work

Apr 20, '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