How To Use Cast Nodes And Why You Actually Want To Use Interfaces Instead - UE4/UE5 Blueprints
Video Statistics and Information
Channel: GDXR
Views: 33,293
Rating: undefined out of 5
Keywords: Gamedev, Indie, Indie Gamedev, Indie game Devlog, Game Devlog, Game, Dev, XR, GameDevXR, Blueprints, Coding, Unreal, Engine, VirtualReality, VR, ExtendedReality, tutorial, how to, how, To, develop games, making a game, Dev Log, beginer, Unreal Engine 4, archviz, architecture tutorial, beginner tutorial, basics, blueprint tutorial, blender, beginner tutorial series, coding, devlog, Jonathan, Bardwell, code, unreal engine 5, casting, blueprints, interfaces, vs, UE5, UE4, Interfaces, Are, better, Fortinte
Id: mV2uFh-H5ic
Channel Id: undefined
Length: 23min 36sec (1416 seconds)
Published: Wed Sep 01 2021
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
Another amazing video!
Its so confusing for beginner as myself, started ue few months ago and saw tutorials inly on casting.
Great video and believed this for some time - Casting, Interfaces, Event Dispatchers and when/how you should use them is one of the most valuable things you can learn early on. While casting can be a great starting point for understanding inter-blueprint communication, it's also a terrible crutch long term and easily misused.
That said I also see a lot of people misusing Interfaces as well, not fully understanding why blind communication is used in the first place. Passing actor refs via a interface is generally a bad idea, but seems to be a common rookie mistake. Whenever you cast to something, a copy of it is added into memory, along with any parent BPs and any other BP that they cast to, along with their parent BPs, on and on. Passing it via an interface means a copy is still loaded into memory/attached to the actor, at that point you might as well be casting. This reference cascade can potentially make a game unplayable due to crazy memory requirements.
There's also wonderful synergies that come with Get Actor/Component With Tag nodes and gameplay tags. I use this a lot for inter-blueprint communication, where you aren't using collisions to get an actor ref.
Look forward to your future videos, you're picking some good topics to cover.
I am very lazzy and always use multicast
Thanks
Amazing. I discovered recently how to properly use the interfaces (I'm a random amateur). This will help many people.
Whatโs your take on using interfaces vs event dispatchers?