Class

Introduction Object Orientated Jargon, ECS is ze Superior!@! Class and Object are basic building blocks in object-oriented programming languages. Creating Classes Unreal Engines 4 Property System U...

Updated over 4 years ago

Introduction

Object Orientated Jargon, ECS is ze Superior!@!

Class and Object are basic building blocks in object-oriented programming languages.

Creating Classes

Unreal Engines 4 Property System UCLASS().

Objects

Prefix for any Object in Unreal Engine 4 is U.

YourObject.h

UCLASS()
class UYourObject : public UObject
{
    GENERATED_BODY()
};

Actors

Prefix for any Actor in Unreal Engine 4 is A.

YourActor.h

UCLASS()
class AYourActor : public AActor
{
    GENERATED_BODY()
};

Objects

Object thinggys which are instantiated (that word again) from classes. Uobject is a special unreal object!

Constructor

A special type of member function which is called when we instantiate an Object (or Actor) of this Class.

AYourClass::AYourClass()
{
    /* Your Actors Constructor - Not to be confused with Construction Script in Blueprint */
}

Destructor

Static Classes

Further Reading