Questions tagged [unreal-engine4]

Unreal Engine 4 is a game engine created by Epic Games. Use this tag for programming related questions. For non-programming related questions, use https://gamedev.stackexchange.com/.

Unreal Engine 4 is a game engine created by Epic Games.

Gameplay and engine programming is done in C++ and Blueprints.

Resources

1850 questions
29
votes
1 answer

How do you dynamically render quads in UE4?

There are some hand wavey answers for this on answers.unrealengine.com, but they seem to lack any detail or examples. Specifically, and in detail, if you wanted to implement a set of dynamic textured quads which rendered in the 3d game world, how…
Doug
  • 26,182
  • 26
  • 140
  • 197
18
votes
3 answers

How do you run tests from the command line?

To do this in-editor you open the automation tab, connect to the session and choose which tests to run. How do you do it from the command line? (NB. not compiling UnrealEngine/Engine/Build/BatchFiles/* comprehensively covers both building the…
Doug
  • 26,182
  • 26
  • 140
  • 197
13
votes
1 answer

Do all C++ compilers support the async/await keywords?

I want to use async/await syntax in C++ (UE4 framework), but due to cross-platform code I not sure that is possible... Or possible? If yes, how can I use it? And also there are await and __await (resumable, yield and __yield_value also) keywords…
12
votes
1 answer

Is it possible to embed a game created with Unreal Engine into a flutter mobile application?

Is it possible to embed a game created using the unreal engine in a flutter application, so that once I open the flutter application, I can navigate to a particular page to start the game and also communicate between flutter app and the Unreal…
lordvcs
  • 1,135
  • 2
  • 14
  • 26
11
votes
1 answer

Unreal Engine 4. Different ways to instantiate the object

I found about four different ways to instantiate the object, but not sure if my understanding is clear. NewObject() function used when we want to make at the instance of UObject. For example, it can be any ActorComponents. USomeComponent sc =…
raviga
  • 245
  • 2
  • 10
11
votes
3 answers

what is 'class' in 'class DataType* Variable' in Unreal Engine Shooter Game Sample

I recently downloaded the Shooter Game for Unreal 4 Engine and I am just trying to pick apart the c++ but my c++ isn't the best I notice a variable called class AShooterCharacter* MyPawn; Set in the header file for ShooterWeapon.h I am trying to…
numerical25
  • 9,867
  • 30
  • 120
  • 205
10
votes
2 answers

How to log a message from a string variable in Unreal Engine?

I am trying to log a message form a string variable , below is the code I used std::string s = "ss";//std::to_string(FPaths::GetPath("../")); UE_LOG(LogTemp, Warning, *s); but it's not working, Can someone tell me how to do this ?
Kas
  • 3,209
  • 3
  • 22
  • 51
10
votes
2 answers

Does Unreal Engine 4 toolset support C++11 or C++14 on OS X / Clang?

I have some interest on UE4. Currently, I am developing a mobile game, and have a pretty large existing codebase written in C++11/14 with Clang. AFAIK, UE4 is using a custom compiler (preprocessor? whatever), and that means C++ compatibility may…
eonil
  • 75,400
  • 74
  • 294
  • 482
8
votes
1 answer

How do I fix these false Intellisense errors when using Unreal Engine 4.24.2 with VS2019 or VSCode?

I'm following the Unreal Programming Quick Start guide I've copied and pasted the code samples at the bottom of the guide. I've tried using both VS2019 and VSCode, and both give me the same errors: UStaticMeshComponent…
8
votes
3 answers

Choose luminosity (exposure) from HDR image

I'm currently stuck on a video projet from pictures. Problem : I'm extracting pictures from UE4, due to a bug, not all lights are taken into account during the rendering of the screenshot. Output are HDR images. I want to get better brighteness…
Marcassin
  • 1,317
  • 1
  • 9
  • 20
8
votes
1 answer

Check if A is a subclass of B?

I am currently using Unreal Engine 4 and it seems that I can't avoid some casts. AController* c = this->GetController(); APlayerController* p = (APlayerController*)c; Is there a way that I can check if c is a PlayerController before I do the cast?
Maik Klein
  • 13,812
  • 20
  • 88
  • 168
7
votes
2 answers

Unreal Engine 4: C++ Delegate not being called

I've been working on converting some blueprint logic over to C++. One of the things I have is a button. The button can be pressed in VR and has a delegate that is called to notify any registered functions that the button press occurred. Here is how…
Katianie
  • 547
  • 1
  • 9
  • 31
7
votes
1 answer

Use APL (Android Programming Language) to make Android plugin to Unreal Engine 4

I'm trying to develop Unreal Engine 4 plugin for Android camera API 2. As I could read on unreal engine forums, there two possibilities to make a plugin for Android. The first, consist on modifying the UE Android base project (GameActivity). The…
uelordi
  • 2,079
  • 3
  • 17
  • 35
7
votes
1 answer

Why GetAllActorsOfClass returns empty?

I have a PlayerControl.cpp class which derives from Pawn class In that class , I have a method to get all Actors in Map TSubclassOf ClassToFind; TArray FoundEnemies; UGameplayStatics::GetAllActorsOfClass(GetWorld(), ClassToFind,…
Kas
  • 3,209
  • 3
  • 22
  • 51
7
votes
2 answers

C++ Nested JSON in Unreal Engine 4

I have a JSON object that I am getting from my server that looks something like this: { "state":"1", "player1": { "alias":"Player Name", "ready":"0" } } I am able to get the JSON, parse it into a FJsonObject, and…
David
  • 21,070
  • 7
  • 57
  • 113
1
2 3
99 100