Комментарии:
But what if I have more than 1 door in my project? I need to create new MyDoorController and DoorRaycast scripts with different int-s? Is there not an easier way?
Ответитьhow can i download the Script
Ответить👏👏👏
Ответитьfor some reason the raycast script isnt working properly (using the code from your patreon)
Tag: DoorButton is not defined.
cs:32
i can't put raycast function in my code, i don't know why
ОтветитьIve decided to use this method rather than the physics/animated door I was trying to implement and I followed your tutorial twice, once to write the code and test then a second time just to see if I did anything wrong and it all looks exactly the same but nothing is working specifically the raycast. I tried using the debug.drawray and I've tried the comments on this video but unfortunately nothing
ОтветитьThanks a lot it helped in my project most of stuff dont have doors only the palace has it
Ответитьi got two errors saying:
error cs8805 program using top-level statements must precede namespace and type declarations
error cs1022 type or namespace definition or end-of-file expected
please help
why is it showing me this error: the type or namespace name 'MyDoorController' could not be found. Please answer quick.
ОтветитьThis really helps and is great but one small issue I have is that why does my animation for closing the door and opening the door keep on looking even though loop time isn't checked?
ОтветитьI spent 4 days trying to figure it out but after your tutorial it worked 👍🏻
ОтветитьThis probably has a simple answer, but... I really need to know how to get multiple doors and objects to have their respective animations work when clicked on. Example: I have multiple working doors but I have another object with cabinet doors that have different animations. Would that be able to be accessed through the DoorController script or will I need to make a separate one for that. If you can, explain what I could do here, please and thank you.
ОтветитьHello, I want to thank you for this video and the one about the door with the key, they have helped me A LOT, but I have a question, I'm starting with programming and I don't have much idea what to do, and I wanted to know if you could help me How can I do this but with a button, it's for an Android project haha
PS: Sorry if it is not understood but I am using the translator xd
for the [SerializeField] private Image crosshair = null; its mad at me for just putting Image, do you have any idea why? CS0246.
ОтветитьI followed your tutorial but when I duplicate a door and open one of them it works fine but then trying to open the other door it doesn't work and only opens the first door I interacted with (if that makes sense) and the door also acts weird when I spam it to open and close it
Ответитьi managed to get this working but the crosshair doesnt go red for some reason?
ОтветитьAnyone got that " I " character I aint finding it anywere
ОтветитьVery funny, it works but not on drawers, spent 3H fixing it and it did not work
ОтветитьHey SpeedTutor. if you could respond to this that would be great im getting a Null ref Exeption Error whenm i click on the door, the door dosnt animate, the line is 44 and the code is
if(Input.GetKeyDown(openDoorKey))
{
raycastedObj.Play();
}
I hope you see this and can help me get it resolved
very good tutorial! I use this method for shooting with raycast ammo crates break!
Ответитьis this way of opening the door the same as in granny, outlast, hello neighbor?
Ответитьis it possible to make this script universal? that is, not only for the door, for example, for a pull-out shelf?
Ответитьhey just wanna ask can this also be applicable without the use of a mouse click? like with just a raycast after finding a gameobject with a specific layer it would trigger the gameobject specific action?
ОтветитьThis works great but what if I want multiple doors without having to create a separate animation for each door? When I duplicate the door it just snaps back to the original's position when I open it instead of playing the animation where the duplicate is. (if that makes any sense)
ОтветитьTag: InteractibleObject is not defined.
UnityEngine.Component:CompareTag (string)
DoorRaycast:Update () (at Assets/DoorRaycast.cs:31)
and I wrote the correct script
Hello, when I install DoorRaycast, it gives me an error
ОтветитьFor the serialize fields its telling that they are valid in this context. I have them typed exactly as you have them.
ОтветитьThank you
Ответитьhow to choose a range to player can interact in that range
?
it's okay if this never gets seen, it's not a great place to be asking it
got the tutorial working with no issues, although I do have a question. I want to have several types of interactive objects, including chests and dresser drawers as well as doors. I got my chest animations made, but I can't get anything to work for the life of me. I honestly don't know if I should be putting any additional animations in the playAnimation function of the myDoorController script, or if there should be different logic in the doorRaycast that references a separate chest script.
in any case, right now I can't get the chest to animate at all, even though I do get a crosshair color change
thanks again for the awesome tutorial, regardless if this gets seen or not
How can I make a goalkeeper ai
ОтветитьWhen i do it, no animation plays
Null ref exception: Object reference not set to an instance of an object
I got this when i playtested
I got a problem with the raycast, the error says: Assets\MyDoorRaycast.cs(15,30): error CS0246: The type or namespace name 'Image' could not be found (are you missing a using directive or an assembly reference?).
Then i added a canvas with a child named Image that is the crosshair, and still doesn't works. I don't know if it's because I didn't got my FPS of your channel of something.
Please help me
But what if there are multiple doors in a scene if they all use the same anim controller wouldn't they all open? How would I avoid this?
ОтветитьI copied literally everything in this video, triple checked it, and it still doesnt work
ОтветитьTHANK YOU, MY FINAL ASKED ME TO DO THIS. U SAVED ME
ОтветитьBro it's saying namespace 'Image' could not be found
ОтветитьTYSM!!!!!
Ответитьcan i add a cooldown before i use the door again? Because if i keep spamming it just repeats the animation in the middle of the other animation
ОтветитьHi there, thanks for the tutorial. Is there a way to make a laser (Line Renderer) trigger the door to open instead of player input by the use of a trigger box collider?
ОтветитьThis WORKED PERFECTLY! Thank you SOO much!! <333
I just have one question, is there a way to make the door detect where the player is and play the corresponding DoorOpen and DoorClose animation for it when clicked? (basically open the doors away from where the player's position is) I'm very new to Unity, so maybe this is an easy problem to solve, but I truly have no idea on how to do it haha
Everything worked except for the animations. Raycast is working an the crosshair is turning red, but the door animation is not playing. I don't know how to fix this.
Also this is a great video 👍
it says keycode cannot be found, are you missing a assembly reference?
ОтветитьI have a problem, after opening the door (everything works the) I cannot close the door anymore and the crosshair is also not turning red anymore. Can somebody help?
ОтветитьI cant add the DoorRaycast script onto the Camera and it Says because the script class cannot be found.
Ответитьit's not necessary to make 2 animations for the door, you can just copy the open animation in the animator and put the speed as -1
Ответить