UE4 C++: Range Based For Loops excerpt

The following content below has been taken from https://www.unrealengine.com/en-US/blog/ranged-based-for-loops?sessionInvalidated=true …Here is an example of how this can really clean up common game code. Previously if I wanted to iterate over an array of...

UE4 Interfaces

Here’s how you can make interfaces. In you C++ Classes folder, right click and create a new C++ class deriving from the Unreal Interface parent class. As of Ue4 4.22 it is on the bottom of the list. In the public section of the interface header, you’ll put...

UE4 C++:Casting and TweakObjectPtr

Today, I spent the entire day figuring out how to translate a blueprint cast into a C++ cast. Keep in mind I’m basically a noob at C++. The simplest things take the longest when you’re new to anything. TL;DR Casting Syntax: Cast(OBJECT TYPE) Tweak Object Ptr Syntax...