Skip to content

Unreal Engine

Industry-standard 3D game engine.

Overview

Unreal Engine is a powerful game engine developed by Epic Games, widely used for creating high-quality 3D games and interactive experiences.

Features

  • High-fidelity graphics
  • Blueprint visual scripting
  • C++ programming
  • Real-time rendering
  • Physics simulation
  • Cross-platform support

Getting Started

cpp
// Create new C++ project in Unreal Editor
// Add new C++ class
// MyCharacter.h
#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "MyCharacter.generated.h"

UCLASS()
class MYGAME_API AMyCharacter : public ACharacter
{
    GENERATED_BODY()

public:
    AMyCharacter();

protected:
    virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;

private:
    void MoveForward(float Value);
    void MoveRight(float Value);
};

Basic Example

cpp
// MyCharacter.cpp
#include "MyCharacter.h"
#include "GameFramework/CharacterMovementComponent.h"

AMyCharacter::AMyCharacter()
{
    PrimaryActorTick.bCanEverTick = true;
}

void AMyCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
    Super::SetupPlayerInputComponent(PlayerInputComponent);
    
    PlayerInputComponent->BindAxis("MoveForward", this, &AMyCharacter::MoveForward);
    PlayerInputComponent->BindAxis("MoveRight", this, &AMyCharacter::MoveRight);
}

void AMyCharacter::MoveForward(float Value)
{
    if (Value != 0.0f)
    {
        AddMovementInput(GetActorForwardVector(), Value);
    }
}

void AMyCharacter::MoveRight(float Value)
{
    if (Value != 0.0f)
    {
        AddMovementInput(GetActorRightVector(), Value);
    }
}

PAPER-CODE Integration

PAPER-CODE provides:

  • Unreal project templates
  • Blueprint patterns
  • C++ class structures
  • Asset organization

Resources