Difference between delegates in UE4

Using delegates in UE4 blueprints
Binding to delegates in a blueprint

If you have been developing in UE4 for some time you have probably stumbled into delegates.

What is a delegate? Delegates in two words are a UE4 implementation of the famous Observer template pattern. It allows code clients (or observers) to subscribe to some events. A dispatcher does not even know that something is listening to it. It just broadcasts events. This is a very powerful pattern – it makes your code less coupled. Read More

UE4 Goodness: Slate Widget Reflector

Slate Widget Reflector

I continue the series of tutorials dedicated to UE4 Slate UI Framework. In the previous post, I talked about a basic slate widget example. Now I want to show you how UE4 Slate widget reflector works (official documentation is here). It is a very useful and helpful tool that you are going to use a lot if you work with Slate.

Let’s say you want to see how an item in the World Outliner is implemented. Without the widget reflector, you are going to waste a ton of time searching for the exact location within the CPP code. But with the reflector, it is a matter of a minute. Read More

UE4 Slate Widget Example

UE4 Slate Example markup
Slate UI markup

I am starting a series of posts dedicated to UE4 Slate UI Framework. There will be tutorials, examples and quick how-tos. Everything to cover a lack of documentation on the topic from Epics. I’ll start with a simple example of a basic UE4 Slate widget where you select a value from a dropdown, enter a text and press an action button.

To start, create a C++ project. Create a subclass of UWidget: UGreetingsWidget. This will be a wrapper for our Slate widget: Read More

How to implement vehicle AI in UE4

BP_Player blueprint
Click to view in Blueprint Viewer

Unreal Engine 4 has a character AI implemented out of the box. And I have already posted about simple behavior trees. But what about non-characters? Well, this is unknown territory. But good thing Epics left some hooks which you can use to turn things alive. This is a tutorial on how to implement a simple vehicle AI in UE4.

Setting up a project

I’ll try to make things as simple as possible, so let’s use the basic assets. We’ll use Advanced Vehicle C++ template as a starting point. Read More