Sometimes we need to spawn Actors in-game which are based on C++ classes. Moreover, we’re going to see what the function……
Casting types in Unreal Engine
Casting means that you can convert a type to another type. For example, you can convert a given Actor to a AStaticMeshActor in order to access a specific functionality of second one. To do this, you must make use of pointers. This post assumes you are familiar with pointers in c++, if that’s not the case,……
Understanding the Blueprint Function Library
Sometimes, we want to create functions which are going to do useful stuff and we don’t care which blueprints can call them. We want these functions to be included in every blueprint in our project. Unreal Engine provides a very easy way to create such functions. Let’s see how we can create them!
Creating such functions
I……
Calling Blueprint Functions from C++
In this tutorial, I’m going to show you how you can call functions (which are implemented in blueprints) in your C++ code. The steps required are the following:
Declare the corresponding function in C++
Implement the function in the Blueprint graph
Call the overrided function
Let’s start!
Declaring the Blueprint Function
The functions I am going to create is going to accept as……
Exposing C++ functions to Blueprints
In this tutorial I’m going to show you how you can expose a C++ function to Blueprints. As you will see, the workflow is almost identical in the one I used for variable exposing. Let’s start!
Exposing a C++ function using the corresponding Macro
In order to expose a function to Blueprints, I created a class named MyActor and……
Exposing C++ variables to Blueprints
In this tutorial, I’m going to show you the required workflow in order to expose variables which were created in your code in the UE4 Editor. While this tutorial is dedicated to variables, the workflow is almost the same if you want to expose other aspects of your code. Even though this tutorial might seem quite……
Deleting a C++ Class
This workflow was taken from the UE4 answershub. In this tutorial you will find the steps required in order to delete a C++ class from your project.
Deleting a specific C++ Class
In order to delete a C++ class from your project follow the steps below:
Close Visual Studio
Close UE4 Editor
Remove the corresponding .cpp and .h file……
Adding a C++ Class
In this tutorial I am going to
Show you how to add a C++ class (which will have no behavior at all – just for this tutorial).
Explain the difference between source and header files.
Show you how you can compile your code.
It doesn’t matter if your project is C++ or Blueprint based, the way to add a C++……
Search
Support my tutorials
Support my UE4 tutorials by donating an amount of your choice!Recent Posts
- October 29, 2020
- October 19, 2020
- October 12, 2020
Categories
- Unreal Engine 4 (77)
- Dev Logs (4)
- Unreal Engine 4 C++ Tutorials (73)
- AI Programming (6)
- Animations (2)
- Core How Tos (8)
- Core Predefined Functions (3)
- Extending the Editor (5)
- File I/O (2)
- Game Systems (9)
- Multithreading (1)
- Networking (4)
- Physics (7)
- Pointers (2)
- Steam Integration (2)
- UMG (1)
- Uncategorized (20)
- User Inputs (2)
- Unreal Engine 4 (77)
Recent Works
- Unreal Engine 4
- Unreal Engine 4
- Game jam, Unreal Engine 4
Archives
- October 2020
- September 2020
- April 2020
- August 2019
- November 2018
- October 2018
- May 2018
- March 2018
- November 2017
- August 2017
- May 2017
- April 2017
- March 2017
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
-