Player Object Interaction In Unity For Beginners
Вставка
- Опубліковано 21 лют 2022
- Today add Player-Object Interaction into unity with only a few simple lines of code!
Check Out Updated Better Video : • Interacting With Objec...
Join Our Discord :
/ discord
Support Me On Patreon: / joerickwooddev
Supporting Me On Patreon unlocks project downloads and Patreon shoutouts.
Check Out The Player Controller Series :
• FPS Controller Series - Ігри
Thanks for the video. It was very easy to follow and mentioning the small things (like right-clicking to make transition) helps a lot!
nice video bro!
0:40 My Animations in all of my games when i Setup the animations 😂
🙏thank you this helped me a lot👏
You’re welcome 😊
Amazing video bro
Glad You Liked It!
Thank you for this anyway I can add sound to the door?
UnassignedReferenceException: The variable cam of Interactor has not been assigned.
You probably need to assign the cam variable of the Interactor script in the inspector.
After awhile of getting mad that It woulndt work, I finally realized I never put a Collider on the object. Besides that Thank you so much this helped.
It's often simple things which we miss isn't it!, thanks for the kind words!
for some reason the "gameObject" part from 4:52 to 5:27 comes as an error, please help if you can!
edit: nvm i changed it to transform and it worked out!
can you please put the code in the description, some of the stuff you did in the video wasn't lining up with my visual studio. for example: the private void update part
im sorry, I don't quite think I understand what your saying, everything I wrote in this video was done on camera, also me just putting code in the description dosnt teach people anything other than to copy paste
Thank you also how did you get your vs code to work like vs with the auto completion and the colors
Extensions
@@joerickwood which ones I added the C# one and it does not work correctly for some reason
@@asyncthevoid I have c#, and unity code snippets
@@joerickwood sure seems like a problem on my end then because it says it it could not find .net core and I've tried to fix by doing a lot of things but nothing has worked
when I write out the code I get an error message saying 'RaycastHit' does not contain a definition for 'Transform' how can I fix this?
transform not Transform, transform is a local reference whereas Transform is the class
its always the small things, thank you lots@@joerickwood
Ehy I'm a bit late but for some reason the code doesn't work and it doesn't apply to the player.
I followed all the instructions but I couldn't understand what's the problem behind my code.. anyway
thanks a lot again for the video!
same problem here
debugging with Debug.Log in different spots will help you be able to find out what the problem is alot easier, chances are, its either different numbers im using compared to you, or, it could be objects not being on the right layers.