UE4 With Casey - Mastering Blueprints - Part 2 - Actor References

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024
  • In part 2 of the series I explain how we can use actor references to communicate between actors and open up a whole new world of interaction inside of blueprints.
    Part 1 - Events: • UE4 With Casey - Maste...
    Part 3 - Vector Math: • UE4 With Casey - Maste...

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

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

    Man, what a truly excellent tutorial. Thank you. This is the stuff that actually empowers people. Kudos.

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

    I wish I had seen these years ago. Really good tutorials with clear and concise info.

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

    "you should never use get all actors of class" that was literally my Mvp function in coding new things (pretty new to UE4) because it was so easy. Thanks a lot for this efficient way good tutorial!

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

      You definitely can use it, just make sure you use it appropriately

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

    Your Mastering Blueprints Series is amazing!!! Helps out a lot. Most BP tutorials online are rushed, unexplained garbage

  • @stefanrichter7415
    @stefanrichter7415 4 ปีที่แล้ว +12

    Great Tutorial :) But for me a non english speaking person a bid to fast... The part at 21:10 i liked the most :D

  • @userunknownxx1
    @userunknownxx1 4 ปีที่แล้ว +1

    Man seriously thank you so much. Your videos made me enjoy learning this. I right away started by creating a door that would open using line traces and it went well.

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

    Finally starting to understand this, you have to drill down to the component you want, like a folder tree after you reference the top level.

  • @AdrenResi
    @AdrenResi 5 ปีที่แล้ว +1

    wow you are the best ue4 teacher yet

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

    Bro-ski! Great information, Very Clear and Informative!

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

    Casey, you have phenomenal pacing. You have clear explanations and you give proper examples in all the tutorials I've seen. Have you thought about selling courses on sites like Udemy? Got any plans with the channel to add more tutorials? Any books/sources you recommend? Would just love to see more from you. Thanks for everything!

  • @derocktyler9882
    @derocktyler9882 5 ปีที่แล้ว

    struggled with this concept so many times. Thanks for breaking it down

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

    Thank you so much for making this set of videos. It really helped me understand blue prints and fundamentals.

  • @dhirajrathod505
    @dhirajrathod505 5 ปีที่แล้ว +17

    open a patron page i really wanna support you

  • @Raynor-m6g
    @Raynor-m6g 5 ปีที่แล้ว +1

    Really cool tutorial, so many references haha

  • @naza0777
    @naza0777 5 ปีที่แล้ว

    wow you born to explane good so others can understand complexe things easly :)

  • @peterallely5417
    @peterallely5417 6 หลายเดือนก่อน

    Can you do a video on using blueprint interfaces? I’ve heard that they’re better than doing specific casting

  • @Champo0
    @Champo0 6 ปีที่แล้ว

    Thank you so much for these tutorials. They are immensely helpful.
    It is very good to get to know why some things are done a certain way instead of just copying from a tutorial.
    Do you happen to have any explanations on how to deal with the delta time and its pitfalls on performance in any of your videos, I did not find any yet.
    I am surprised your channel does not have hundreds of thousands of subscribers ^^
    Keep up the good work.

    • @ue4withcasey391
      @ue4withcasey391  6 ปีที่แล้ว +2

      Thanks! I'm not sure what you mean by delta time lowering performance. We can use delta time to help make our game behave independent of tick rate and performance.

  • @mirveystajik8040
    @mirveystajik8040 6 ปีที่แล้ว

    Great Series , nice job .

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

    Shoutouts to your friend at ~21:00

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

    Wasn't able to get the text to change.

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

    I have a question about your example where you said that you might create an invisible actor in the world that spawns zombies. Why did you need to place it in the world if it's invisible? If you simply wrote the blueprint but did not place it in the world would the game not load and execute that blueprint without being spawned? Is that why I often see people spawning character controllers?

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

      This could be different for other engines, but generally to run code at runtime you do it through an actor. Actors must be placed in the level to exist.

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

      @@ue4withcasey391 Ok, I think I understand. I have always been a little confused about what the differences were between running code inside the level blueprint, an actor, a character, etc, but I think i'm starting to get the hang of it.

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

      @@JLocke573 The difference comes in how you structure your code. In theory, i could write every piece of code for a game inside one actor and use references to other actors to manipulate them. However, this would be really really sloppy and not ideal. Where we put our code influences things like how can the code be reused, scaled, etc.

  • @tommylau7457
    @tommylau7457 5 ปีที่แล้ว

    I want to reference a triggerbox component from another triggerbox.

  • @ivanmalau4945
    @ivanmalau4945 5 ปีที่แล้ว

    is there a particular reason we shouldn't worry about the math? Apart from referencing I struggle a lot with making sense of the adding of vector components with object type values. All that really confuses me

    • @ivanmalau4945
      @ivanmalau4945 5 ปีที่แล้ว

      nvm saw the end of the vid its in the next vid

    • @ue4withcasey391
      @ue4withcasey391  5 ปีที่แล้ว +1

      At the start I was pretty bad with vector math. The nice thing about it is that it isn't hard to google solutions. While I'm not a fan of copy pasting stuff, I will admit early on vector math was something I had to copy others work early for. If it doesn't click immediately it isn't that big of a deal. When you look up solutions for finding distance, direction, etc. just try to think through what the person did and with some persistence it will eventually click. I'd argue the thought process is more important early on than the actual math itself.

  • @TheAxebeard
    @TheAxebeard 5 ปีที่แล้ว

    This is a great series. I'm wondering if the Actor References can pass down to child actors or inherited actors? Like if I have a master "Monster" actor with a Health value, and I have multiple monsters inherit from Monster, would it reference the right actor?

    • @ue4withcasey391
      @ue4withcasey391  5 ปีที่แล้ว +2

      Yes I believe you are saying it correct.
      If you had the parent class Monster and then made a child of monster named Goblin. Goblin would inherit all the properties of Monster like any normal child. In addition, a Goblin actor can be cast to "Monster" and it will succeed and the actor reference will then be held as a Monster. This is very common when you have a bunch of different child Monsters running around. If you need to keep track of them all in an array, you wouldn't really want to have a different array for every child class. You would just hold them all in an array of Monster.

    • @TheAxebeard
      @TheAxebeard 5 ปีที่แล้ว +1

      @@ue4withcasey391 Ok, yeah you're describing exactly what I was going for. Thank you, I think you've been one of the clearest tutorial guys I've seen for UE4.

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

    shoutout to Jdog

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

    No dislikes like you should have

  • @axps4964
    @axps4964 4 ปีที่แล้ว +1

    11:58 what is happening here?

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

      Hes just getting the location of the where the player is and the direction hes looking and then tracing a line five hundred units in that direction and then checking if it hit anything

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

    penisLoL

  • @captainanonymous7384
    @captainanonymous7384 5 ปีที่แล้ว

    Sheesh, next time you make a video make sure to NOT drink any caffeinated drinks before you start. You talk and click way to fast for any beginner to follow what you've done or what you've clicked on. That's not true throughout the video, just in certain segments. Please slow down.

    • @RealCoachMustafa
      @RealCoachMustafa 5 ปีที่แล้ว +1

      Click on the gear icon, change the playback speed to .75 to slow him down.

    • @drakewalker8047
      @drakewalker8047 4 ปีที่แล้ว +5

      Good luck finding anyone on youtube that teaches in a clearer more repetitive and positive way!

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

      @@RealCoachMustafa I found 0.25 to be just right

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

      This guy's 3 part tutorials on mastering blueprints are some of the best I've come across for explaining these concepts.

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

    21:10 ah yes. a man of culture

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

    These are the best UE blueprints tutorials. You should come up with a full blown course plan make a proposal for it and apply for a epic grant, cus the way your teaching anyone can understand. I would love to get a A to Z training in unreal blueprints and coding from you. thank you.

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

    Basically you can take litterally nothing for granted when writing code. You need to literally make the tools appear that you will be using and continually build upon. You can't just say form something to go somewhere. You need to tell how it gets there as well.

  • @ggplayer1170
    @ggplayer1170 4 ปีที่แล้ว +2

    You are outstanding at explaining things, thank you.

  • @dualvortex
    @dualvortex 4 ปีที่แล้ว +1

    Thank you, thank you....
    After a month with unreal... This is exactly what need. Someone explaning everything like you. Thanks a lot.
    Subscrived right now and looking forward to see your whole channel.

  • @sumitdebbarma1209
    @sumitdebbarma1209 4 ปีที่แล้ว +1

    Bro u r the best u save me to spent ton of money at udemy. U deserve more subscribe for ur good knowledge that u share us. U r awesome man bro... Plz upload more course on blue print. Thankyou brother.... God bless u for ur kind work.

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

    When changing my health value, it prints over my old value. How do I prevent this?

  • @Leon-wv4dn
    @Leon-wv4dn 3 ปีที่แล้ว +1

    Why is my Linetrace going straight upwards 12:49 it aint going in the same position as i shoot, why?

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

      a line trace has a start point and end point. The start point you want to be your actor location (if you dont mind it being from the center of the body), or you can get the world location of your gun. The end point is going to extend out in a straight line from the start point. We achieve that by taking the forward vector to see where we are aiming. This vector is a unit vector (length of 1) and we multiply that by a distance (float) and then add that back into the starting point. This math is explained a bit more in the next video

    • @Leon-wv4dn
      @Leon-wv4dn 3 ปีที่แล้ว +1

      @@ue4withcasey391 OOoooooOOOh i see! tnx

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

    Why is it that when I drag out the hit result of my trace it doesnt allow me to break

  • @manuelepuliga8608
    @manuelepuliga8608 5 ปีที่แล้ว +1

    Thank you Casey, i've learned some from your video. You are really good as teacher, i hope you will make more video/tutorial like this!!

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

    Really cool !!! Thank you so much.

  • @bash-smash4229
    @bash-smash4229 3 ปีที่แล้ว

    14:00

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

    9:35 man.... you don't even know. You just spoke to my soul. Seriously, this minute - minute and a half section just cut my brain open, took my misunderstanding of object references, fixed it, and stitched me back together. Thank you

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

    anyone else find themselves screwing around with the pretty effects in ue4 rather than just learning the software

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

    Your teaching skills are incredible. Thank you for sharing your knowledge, one of the best tutorials on youtube.

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

    Thanks again!
    The most useful tutorials to date!

  • @dhirajrathod505
    @dhirajrathod505 5 ปีที่แล้ว

    god why are your views so less you are an awesome teacher brother

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

    Great tutorial, really helps

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

    excellent !!