How To Interact With Objects [Unity Tutorial]

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 19

  • @zach5334
    @zach5334 3 ปีที่แล้ว +7

    I appreciate this tutorial because you explained every line of code you wrote and taught me so much in only 20 mins.

    • @comp3interactive
      @comp3interactive  3 ปีที่แล้ว +3

      I feel that's where a lot of tutorials on TH-cam fall short, they tell you what to do, but not why you're doing it

  • @tuncozcengel9523
    @tuncozcengel9523 3 ปีที่แล้ว +1

    Hi! Thank you for the super useful information! I am not into coding that much but I could get over my problem with your clear explanation.

  • @ratchet22560
    @ratchet22560 2 ปีที่แล้ว +1

    Hello. I'm fairly new to coding. I'm just wondering why you would use abstract class inheritance over an interface? I know that you can only inherit one class where as you can inherit multiple interfaces. Great video by the way, very helpful :)

  • @dontthinktoomuch7152
    @dontthinktoomuch7152 ปีที่แล้ว

    Thanks bro been looking for this ❤

  • @zerogames6970
    @zerogames6970 3 ปีที่แล้ว +2

    Hi Comp3 , this is a fantastic video and thankyou for making this. I am getting a slight issue if anyone can assist. When I go to the interactable object, the icon (mouse over icon) only appears on top of one of the objects, then when I move to the second object, the interactable icon will appear above the first object only and not the next one. Hope that makes sense.

  • @SuperNova-uv5ws
    @SuperNova-uv5ws ปีที่แล้ว +1

    Hello! Good tutorial in terms of pacing and explanations! I do have an issue however...
    I'm getting two errors in the Openable script!
    First one is "no suitable method found to override" and refers to public override void Interactable()
    Second one is "does not implement inherited abstract member 'Interactable.Interact()'" and refers to public class Openable : Interactable
    Now this could totally just be something about the version of Unity I'm using, or whatever, but if anybody knows a solution to this I would greatly appreciate if you'd reply! 💖

  • @radenbagoesyudharanggasanj2542
    @radenbagoesyudharanggasanj2542 3 ปีที่แล้ว

    OMG it's Works like wonder!!!!, Thankyou so much!

  • @alivgalihpratama5126
    @alivgalihpratama5126 3 ปีที่แล้ว +1

    thank you for the tutorial, I appreciate it but.... i have some problem with my script, can you put the openable script to Drive or something so i can download it ?

  • @FarakWarmist
    @FarakWarmist 2 ปีที่แล้ว +1

    Is it possible to use animations instead of SpriteRenderer with this kind of script?

  • @songsong5494
    @songsong5494 9 หลายเดือนก่อน

    I don't understand what is the purpose of the existence of Reset() method at 8:20 .
    It is not referenced and put into use in any other line n is not a built-in method.

  • @LostRelicsOfficial
    @LostRelicsOfficial 4 ปีที่แล้ว +6

    Buen video, Good video :)

  • @sethstigall2484
    @sethstigall2484 3 ปีที่แล้ว +1

    as an american i feel attacked, leave my cans alone! lol loved the video

  • @GeneralFatPug
    @GeneralFatPug 3 ปีที่แล้ว

    u r awesome-town my man

  • @marisesuzuki8670
    @marisesuzuki8670 2 ปีที่แล้ว

    14:06 (pls ignore)

  • @jacklocale9254
    @jacklocale9254 4 ปีที่แล้ว

    I keep getting an error in my "Openable" Script??? It keeps saying that it can't find the script. I thought maybe I mistyped something, or that I missed a semi-colon, but no. There's nothing wrong? I've re-written the script five times and it still isn't working.

  • @evggg
    @evggg 3 ปีที่แล้ว

    You cannot pick up or grab objects with this script. So... not, this is not "extremely" reusable.

    • @Izzy-fr1zu
      @Izzy-fr1zu 2 ปีที่แล้ว +7

      Of course you could also trigger to pickup an Item like this. The raycasting-method just serves as a trigger for other functions. Just because there is no "pickup" method in this video, it doesn't mean, that the raycasting approach doesn't suit the purpose...