Fireye04 answered
GetComponent(); returning null
9 hours ago scripting problem·trigger·getcomponent·triggers·interface
1 Reply
0 Votes
TobinCavanaugh123 answered
parent.parent.parent or FindObjectWithTag?
2 days ago getcomponent·parent
2 Replies
0 Votes
2 Replies
0 Votes
0 Replies
0 Votes
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
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
angelonit commented
How to get a component from an object and add it to another? (Copy components at runtime)
May 19, '22 c#·gameobject·getcomponent·component·addcomponent
12 Replies
13 Votes
Relan42 answered
Detecting when player isn't grounded when the ground disappears?
May 3, '22 getcomponent·platformer·collision2d·disable object
1 Reply
0 Votes
Nameelee commented
How to get first depth child components of a parent object?
Mar 31, '22 transform·getcomponent·depth·getcomponentinchildren
7 Replies
4 Votes
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
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
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
0 Replies
0 Votes
rhksdn2314 published
GetComponent, TryGetComponent and NullErrorWrapper GC Question
Feb 22, '22 in Help Room
0 Replies
0 Votes
ccd01455 edited
How to assign an image to an object at level 2
Feb 20, '22 scripting problem·getcomponent
1 Reply
0 Votes
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
ChillyRolande answered
Differentiate between two different components of the same type in GetComponent
Feb 14, '22 in Help Room
1 Reply
0 Votes
loconeko73 commented
Design Advice: Power Up System (static variables?)
Feb 12, '22 getcomponent·powerup·leveling·static variables·static class
1 Reply
5 Votes
andrew-lukasik edited
GetComponents() returns null while GetComponent() returns non-null. WHY
Dec 10, '21 in Help Room
1 Reply
0 Votes
Bran-A-Silva answered
How can I access a local variable in another scope?,I cant access the gameobject variable in the scope
Nov 27, '21 instantiate·getcomponent
4 Replies
0 Votes
Sztormu answered
Why is there no camera attached?
Oct 29, '21 camera·getcomponent·screentoworldpoint·not found·missingcomponentexception
1 Reply
0 Votes
Michael_Berna edited
Animator.SetBool not changing
Oct 14, '21 animation·gameobject·animator·getcomponent·animations
2 Replies
0 Votes
Luettgen answered
SetActive on a different gameObject's component? Audio Source
Aug 24, '21 c#·getcomponent·audiosource·audiolistener·audio source
1 Reply
0 Votes
Infenix answered
How to update UI image mid-game (Unity, C#)
Aug 21, '21 c#·unity 5·sprites·getcomponent·ui image
2 Replies
0 Votes
0 Replies
0 Votes
podjigateligrey commented
how do I add link script to gameobject that already exist with attached script
Jul 25, '21 in Help Room
1 Reply
0 Votes
raha90 commented
Change SetActive(true/false) from a GameObject which is child of a different ImageTarget
Jul 16, '21 nullreferenceexception·getcomponent·setactive·image target
1 Reply
0 Votes
realcyberleon answered
what the heck do you put in the object reference!? all i need is a variable!
Jul 2, '21 getcomponent·instance·object reference
2 Replies
0 Votes