Комментарии:
can you make a video of an interactable using unity events
ОтветитьThe npc interact isnt working it spews out this error
Assets\PlayerInteract.cs(13,50): error CS0246: The type or namespace name 'NPCIneractable' could not be found (are you missing a using directive or an assembly reference?)
HELP ME CODEMONKEY I KNOW YOU ARE RELIABLE I HAVE A PROJECT DUE IN 2 DAYS!!!
Thank you!!
ОтветитьI remembered what you remind me of when I work with you, when I follow your "lecture" it's the same for me as when I try to work with "chatgpt", I spend several hours and in the end I'm frustrated, while "chatgpt" is confident in its skills and he just wishes me luck in the next project and he's sorry he didn't help me and if I need help to contact him. I'm also amazed with the amount of time spent and nothing achieved. I had to say it ,because now as I watched this again video, this "lecture" gave me exactly the same feeling as when I spent with "chatgpt"
Ответить6.30m- Please answer me. How to apply that chat bubble that you made in 2D and now use it for 3D? in order to be able to see the text in the game, I have to put that text in 3D on the canvas that is set in world-space. however the text does not change at all. I do not understand? And according to you, the word after each setting for you is - simple. And as I said in one of the previous comments, nothing is simple for me when watching your videos. you are totally complicating it. Can you please explain 2d chatbubble 3d chatbubble?
ОтветитьSorry I still don't understand how the interface mehthods work? I have watched your video on interfaces and I understand that. So how does it work like if you have 5 different food objects that you can pick up or place down? How does the interface code work?
ОтветитьThe Video Was Quite Useful thanks , but why can't we use SphereCast Or RayCast System ?? like that Works Fine I guess
Ответитьloooooooooooooooooooooooooooooove you
ОтветитьI need the script pls
ОтветитьInterfaces are cool, but you are still pasting the same code for interface methods to every class that implements it. If some method has to be changed, you need to paste the code again. What would be the way around this?
ОтветитьHey, How do you get the lerping to work every time? it lerps the animation on the first interaction, however, after that, the head snaps to the position, should i be setting the lookAtPosition to false after it looks at the player?
ОтветитьWell, We created IInteractable made an abstraction between. But still we have unnecessary Transform parameter inside Button & Door. What if we need 2 parameters inside an interactable, are we going to extend that Interact function inside IInteractable? How would you approach to that
ОтветитьHow could we do that with two-sided? For example, we have different interactable objects & but our character will react differently for every object he interacts. Should i pass Interactor inside Interact method in Interactable, and reach the methods like; OnInteractPolice(); inside Interactor?
This means we have to create all the methods for every interaction we do right? How would approach to that problem; We interact different objects, our character reacts different every object it interacts.
could you go indepth with chatbubble3d?
ОтветитьHey!CodeMonkey,I got a question,how to make two NPC say different things?
ОтветитьCan you make a tutorial for how to make an npc walk in random directions?
Ответитьyour voice and the way u talk makes me smile.
ОтветитьGreetings, Code Monkey. I have a question, is the ChatBubble3D needs to be imported to the project as it was made in your previous video?
ОтветитьIs using Physics.Raycast() any better? Performance and reliability wise.
ОтветитьCan i use OnTriggerEnter to detect the collision or is it bad?? <3
ОтветитьPlease add subtitles if you can. Thank you for the wonderful video. :)
ОтветитьI use mixamo and fuse for free models and animations
ОтветитьHey Man, Lovin the tutorial so far, have learnt alot about different function in code. However ive ran into a small issue, i cannot get any console output of displaying the colliders in a scene and getting the "Interact!" message to appear in the console. ive been following this tutorial for buttons do u possibly know why?
ОтветитьHi I'm in the NPC Interact part of the lecture and I ended up getting the error:
error CS0246: The type or namespace name 'NPCInteractable' could not be found (are you missing a using directive or an assembly reference?)
this is my code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerInteract : MonoBehaviour
{
private void Update()
{ if (Input.GetKeyDown(KeyCode.E))
{
float interactRange = 2f;
Collider[] colliderArray = Physics.OverlapSphere(transform.position, interactRange);
foreach (Collider collider in colliderArray)
{
if (collider.TryGetComponent(out NPCInteractable npcInteractable))
{
npcInteractable.Interact();
}
}
}
}
}
I wouldnt use this tutorial , its all over the place using a 2d chat bubble from another video
ОтветитьI made new project on 3d but when i put package it's all pink :(
Ответитьwhat is more performant: running something like Physics.OverlapSphere in update, or to have an instantiated, invisible, sphere gameobject checking collision?
Ответитьfor me it says NPCInteractable could not be found am i missing something? cause im pretty sure i followed the tutorial correctly
ОтветитьThanks!
ОтветитьI really like your No code Course in Unity, you could create new one with updates and maybe new genres if you have time in the future, I would 100% buy it!
ОтветитьAny chance we could get a tutorial for this using the new input system??
ОтветитьThank you so much, this will be super helpful for our project. Is it okay if we use parts of this code in our project, its for a school project?
Have a wonderful day and thanks for everything you do for the community!
I love you Code Monkey
ОтветитьCode monkey I appreciate your work please and please their lots of videos on making multiplayer lobby, in game inventory and shop system.
But if you try to search for shop system for multiplayer in start menu there's non like I don't want to make RPG I just wanna make a game where my players are able to buy characters (cars) and enter game with that character (car) but I don't how to please make a tutorial about it I'm making a multiplayer car race game I want players to buy cars and equip it then enter game with it, please (using netcode or photon)
This tutorial is awesome !!!!!🤘🤘🤘
Ответитьwouldn't using a short range raycast and then checking for collider boxes be more effective?
ОтветитьBetter to add a check for the camera frustum, just to eliminate the cases when objects are behind.
ОтветитьI notice you're not hiding the interaction prompt - (E) Talk with Alice - when the key is pressed. I'm assuming that will be somewhat difficult since you're using Update() to keep it showing in the first place... but hiding it when the key is pressed would be the typical UI response you see in most every game.
I love how you showed the refactor for using an Interface then... that was a great learning opportunity for those unfamiliar with them to see the resulting value.
I want to get an opinion on a topic. Should I use serializefield or find method to access multiple gameobjects?
ОтветитьIs there a reason to use physics overlap instead of attaching a trigger to the player?
ОтветитьCool theme for tutorial! Thank you again!
Did you think, what would be if you need to pass more parameters to the IIneractable.Interact method, rather than the only Transform parameter? For example, if different types of interactables has it's own set of parameters, that they need in Ineract method? Generally seaking, you are already have DoorInteractable and ButtonInteractable, that needs a different set of parameters in Interact method - they both needs no parameters, but Transform is there.. a little bit confusing, because Door and Button become dependent of what they are don't need at all.
😱🤯🤯🤯🤯🤯🤯😱😱
Ответить