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
0
votes
0 answers

Unreal Engine Mobile Rotation Using Touch

Hope Everyone is doing ok, I have a problem can someone tell me why my rotation starts snapping if I increase the sensitivity to like 50 but it is smooth at like 10 Code in the picture Below.. https://i.stack.imgur.com/vmzAs.png
0
votes
0 answers

UE4 - Can anyone explain how I might recreate this material from a photo?

I know this is not a natural question to ask about on StackOverflow and I am also aware there are forums for this kind of thing elsewhere but this is honestly my last hope so please bear with me here. As far as I can tell it might be emissive but…
James
  • 83
  • 6
0
votes
2 answers

How to move an actor back and forth Unreal Engine

I'm new to Unreal Engine and I'm trying to move an actor from his original placement location to point B and then back to the original placement and then to B in a loop. How do I do this through C++? I don't know much about all of this but I have a…
QZAK
  • 63
  • 1
  • 6
0
votes
1 answer

Unreal Won't Launch To Oculus Quest 2 Without Restart

I'm using Unreal 4.26.0 and I finally got it to launch to my Oculus Quest 2. However, it doesn't always launch the latest version. So, I might make a change, build the project, then launch the app on the Quest via Launch => Quest 2. Eventually, it…
Dicer
  • 396
  • 6
  • 13
0
votes
3 answers

How to randomly delete array objects depending on array size C++

I have an array and I want to loop through it and delete an element at a random index. I feel like this is simple but I'm missing something. I am making a game in the Unreal Engine, My array is filled with objects and I have away to get input from…
KielanT
  • 11
  • 3
0
votes
2 answers

"The game module *project name* could not be loaded" Unreal Engine 4.26

My Unreal Engine 4.26 project will not open. I am on windows 10 if that helps at all. I've tried reinstalling UE4, and found nothing that worked online. The game module could not be loaded error message screenshot Here is the log (due to length…
user12122056
0
votes
1 answer

CARLA - Create Custom semantic tags Does not work

i followed the instructions on Create semantic tags to create my custom tags. I created two new folders, ChevronSign and YellowLine Then i added the tags to ObjectLabel.h in LibCarla/source/carla/rpc Then i edited Tagger.cpp in…
William
  • 31
  • 1
0
votes
1 answer

Eject Blocking Object if Overlapping: UE4

My 2d platformer has a "time travel" mechanic. You place down a hologram at a location (actor with no collision and some pretty effects). While you hold down the "Rewind" button, your character's collision and gravity are turned off, and he slowly…
0
votes
1 answer

UE4 Replicated variable in client doesn't reflect at server

MyCharacter.h UPROPERTY(Replicated, EditDefaultsOnly) float Health; MyCharacter.cpp float AMyCharacter::TakeDamage(float Damage, FDamageEvent const& DamageEvent, AController* EventInstigator, AActor* DamageCauser) { Health -= Damage; …
김진우
  • 161
  • 3
  • 12
0
votes
1 answer

UE4 Compile error with UFUNCTION(NetMulticast). error LNK2005: function already defined in *.cpp.obj

MyActor.h UCLASS() class FPS_API AMyActor: public AActor { GENERATED_BODY() ... public: UFUNCTION(NetMulticast, Reliable) void MulticastRPCMyFunction(); ... } MyActor.cpp void AMyActor::MulticastRPCMyFunction() { UE_LOG(LogTemp,…
김진우
  • 161
  • 3
  • 12
0
votes
2 answers

Cannot find options to 'Generate Visual Studio Project Files'

I developed an environment using Unreal 4.25. In order to connect it with Airsim, I followed the instructions given over here - https://microsoft.github.io/AirSim/unreal_custenv/. I'm stuck at the point where they say to right click the .uproject…
desert_ranger
  • 1,096
  • 3
  • 13
  • 26
0
votes
1 answer

Default Filename in Save File Dialog with OPENFILENAMEA Class in C++

I'm creating a Windows application in C++ (actually, C++ coding in Unreal Engine 4 being packaged for Windows) that allows the user to save a file to their desktop. I am using the OPENFILENAMEA structure to handle this (see here). I am wanting to…
Spishbert
  • 1
  • 2
0
votes
1 answer

ue4: cannot debug source code in a private path

I can debug source code when the file locates in a public path, e.g. Runtime/Renderer/Public/SceneView.h But, I cannot debug source code when the file locates in a private path, e.g. Runtime/Renderer/Private/SceneRendering.h Does anybody know why…
Torsten
  • 1
  • 1
0
votes
0 answers

How to rotate the bot via rotatevector ()?

There is a static mesh bot in C++ that moves forward. Through Ray Casting, he tracks obstacles in front of him and if he finds them, he must turn to the side. Direct access via getactorrotation () rotates the bot around its local axis. question: how…
neoluna
  • 17
  • 4
0
votes
1 answer

Missing dxgi.lib after compiling Unreal Engine from Source

Spent an entire day attemting to compile and launch Unreal Engine using the custom Nvdia caustics branch here. https://github.com/NvRTX/UnrealEngine/tree/NvRTX_Caustics The compile process takes a couple hours. I get no errors only a few similar…
Bachalo
  • 6,965
  • 27
  • 95
  • 189