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

2363 questions
4
votes
1 answer

Pan - zoom - orbit using Multi Touch - Unreal Engine -

I would like to make a multi touch control for my camera This camera should do: zoom in/out when pinching orbit when swiping pan when swiping with 2 fingers. Is there somebody who know some good examples/tutorials or give me some advice? Thank you…
ddonk
  • 43
  • 2
  • 6
4
votes
2 answers

Error including header files in Unreal

I am new to Unreal and I have this project in Unreal. I added a couple of new cpp files which includes some standard header files like string.h, stdlib etc. Intellisense does not give an error but project just won't compile. This is the error Error…
Aadithya
  • 189
  • 1
  • 4
  • 18
4
votes
1 answer

How can I use Java in Unreal Engine 4

How can I develop in Java and still use Unreal Engine 4? Do you have to use a wrapper (I have heard something about this), do I have to modify the source code that comes with purchase or is there a plugin out there that I can…
evan
  • 61
  • 1
  • 11
4
votes
1 answer

Why should I use 1bit bitfields instead of bools?

UCLASS(abstract, config=Game, BlueprintType, hidecategories=("Pawn|Character|InternalEvents")) class ENGINE_API ACharacter : public APawn { GENERATED_UCLASS_BODY() ... UPROPERTY(Transient) uint32 bClientWasFalling:1; /** If server…
Maik Klein
  • 15,548
  • 27
  • 101
  • 197
3
votes
1 answer

Is it possible to define preprocessor directives for an Unreal project at build time?

I am looking for a way to easily define macros / preprocessor directives at project build/cook time for an Unreal Engine project. For example, if I want a defined C++ macro MY_BUILDTIME_VAR to be 0 in certain builds, and 1 in others, without having…
3
votes
1 answer

Linking error in UE4 when GetAssetTools() is used in code

I created a C++ class derived from AssetActionUtility and wrote the following function in that class: #include "ClipAnimUtility.h" #include "EditorUtilityLibrary.h" #include "IAssetTools.h" #include "ClipAnimAsset.h" #include…
Liyuu_
  • 71
  • 5
3
votes
1 answer

Owner in Unreal Engine

So I recently switched from Unity to Unreal and I cant understand the concept of Owner in Unreal. I understand parent-child relationships but what exactly is an owner? Changing the owner of an actor does not change it's hierarchy so how exactly is…
3
votes
1 answer

Unreal Engine 4: How to load an audio file from a external folder in runtime?

I'm trying to access a wav file in runtime and play it from an external folder. I can't import it as an asset in the editor because the file is being generated by an external program in another folder. I've tried using the StaticLoadObject function…
3
votes
2 answers

UE4 error compiling due to unknown function EditAnywhere

I've been working on an Unreal Engine 4 game using C++ and I've been working on a dash function, however I followed a YouTube tutorial and I noticed that in the video, they use the function "EditAnywhere" but when I tried to code that my self, my…
3
votes
0 answers

Can I make React compile the object spread operator differently in development?

Context: The Unreal game engine (version 4.26) has an embedded browser based on the Chromium Embedded Framework (CEF). My team is developing an in-game UI as a React app that is intended to render inside this embedded browser. We are using the most…
3
votes
2 answers

Unable to set up new Unreal & Quest 2 development environment

I am unable to get even an empty Unreal project targeting the Quest 2 platform to build Android targets without errors. It seems to be related to the mess of various Java / SDK / NDK / Gradle versions that aren't compatible with each other, and I…
BlueMonkMN
  • 25,079
  • 9
  • 80
  • 146
3
votes
1 answer

Unreal - How to avoid hardcoded path when creating an object in cpp

The following code has been bothering me for a bit: ARollingBall::ARollingBall() { UStaticMeshComponent* sphere; sphere = CreateDefaultSubobject(TEXT("ball")); static ConstructorHelpers::FObjectFinder
Jason Basanese
  • 690
  • 6
  • 20
3
votes
1 answer

Trouble in launching Unreal Editor 4 built on Ubuntu 20.04

I have installed Unreal Engine 4 on Ubuntu 20.04, following the instructions from here: https://docs.unrealengine.com/en-US/SharingAndReleasing/Linux/BeginnerLinuxDeveloper/SettingUpAnUnrealWorkflow/index.html The compilation and make went fine, but…
DiegoPiacc
  • 55
  • 4
3
votes
1 answer

The program can't start because api-ms-win-downlevel-kernel32-l2-1-0.dll is missing - After UE4 update

running Unreal Engine 4.26 on a Windows 7 machine. Recently updated from 4.25 to this version. Now getting this error.. "The program can't start because api-ms-win-downlevel-kernel32-l2-1-0.dll is missing" Anyone able to assist to advise please?
giomagneto
  • 71
  • 1
  • 1
  • 5
3
votes
1 answer

UE4, setting relative angular velocity of object

Context I have been attempting to set the angular velocity of a frisbee in UE4. This is easy. However, UE4 adds an angular velocity through the center of mass of an object relative to the 'world-axis' and not relative to the axis of the frisbee.…
ZanyCactus
  • 79
  • 2
  • 10