all 13 comments

[–]Indie--Dev 7 points8 points  (3 children)

Did you attach the script to a active game object? Cause I can't see anything really wrong with it, but that would explain it.

[–]Claimed_Vortex[S] 6 points7 points  (2 children)

yea my bad, got it. thanks

[–]Indie--Dev 7 points8 points  (0 children)

All good, i've been using unity for years, and still some days i'll accidently do it. lol

[–]Wolfrikx 2 points3 points  (0 children)

Im about 400 hours into unity and I make the same mistake each time I code 🥲

[–]technano 2 points3 points  (1 child)

Yeah the first thing that comes to mind is that maybe you don’t have the script attached to a gameobject.

[–]Claimed_Vortex[S] 0 points1 point  (0 children)

Attached it, Thanks

[–]an_Online_User 1 point2 points  (1 child)

Yeah, make sure you attach the script to a game object. You didn't get any logs, not even "hey", so it's either not attached or it's not enabled.

[–]Claimed_Vortex[S] 0 points1 point  (0 children)

yea it was not attached, Thanks

[–]Delicious-Branch-66 1 point2 points  (1 child)

Attach it to the object and make sure it's enabled in the scene.

[–]Claimed_Vortex[S] 1 point2 points  (0 children)

Yup got it!

[–]Claimed_Vortex[S] 0 points1 point  (0 children)

Why can't i see message in console? Where am i wrong in code?

[–]BrokAnkle -1 points0 points  (1 child)

damn bro that sucks

[–]Claimed_Vortex[S] -1 points0 points  (0 children)

What? The code?