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

Pureweb and VUE application

I have sample VueJS(frontend) application and Unreal Project. I have uploaded the Unreal Project to https://console.pureweb.io/, after that I can't find the documentation about connectivity the Pureweb to VueJS application for share Unreal Project…
N.Ayaz
  • 305
  • 1
  • 3
  • 9
4
votes
1 answer

How to get clangd completer working with Unrealengine-4

So i have been trying to learn unrealengine4 and wanted to use vim as my editor. As an autocompletion engine i wanted to use CoC with clangd. After some fiddling around to get my compile_commands.json almost everything works as expected. But i get…
4
votes
2 answers

How to set the screen resolution in Unreal Engine 4?

I am making a settings menu for my game. I have created every graphics setting I want, except changing the screen resolution. This is what I tried first. I didn't know what I should provide for the target, though. What I tried first For some…
ZzZzZzZz
  • 77
  • 1
  • 3
  • 9
4
votes
2 answers

Pawn Class Hitting Itself With The On Begin Overlap Event Unreal Engine C++

I made a simple pawn class that's supposed to be a ball and move around and collect coins. For the coin collection system I made the on overlap event to notify the ball when it is hit. Here is the basic code (APlayerBall is the default pawn class…
Higigig
  • 1,175
  • 1
  • 13
  • 25
4
votes
0 answers

The UE4 Pixel Streaming webpage never gets past "starting connection to server please wait", but only when connecting from home

I'm working on a project for a startup company. We are trying to run a 3D product demo on our website using Pixel Streaming. I'm hosting the application and the signaling server from a dedicated machine inside the office. I have gotten Pixel…
Rigel524
  • 41
  • 2
4
votes
1 answer

UE4 - Visual Studio cannot open any source file after I add new c++ files from Editor - UBT_COMPILED_PLATFORM error

I started a c++ project in UE4.25 days ago, and started prototyping in blueprints. Now I wanted to start and take my logic to c++. Problem: As soon as I created a new Actor from the Editor (right-click -> new c++), the new file generated thousands…
SynSeven
  • 41
  • 1
  • 1
  • 3
4
votes
1 answer

UE4: How to cast actor to blueprint interface type

I'd like to store a variable of type Actor in a variable which is of a BP interface type. Is there something like a Cast To BP Interface BP node? I know about the Does Implement Interface (which does not return a reference to the interface instance)…
Noel Widmer
  • 4,444
  • 9
  • 45
  • 69
4
votes
1 answer

I am not able to create a unreal engine 4 c++ project

whenever i create a unreal engine 4 c++ project it throw this error Running E:/program_files/UE_4.24/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="D:/Game Development/MyProject2/MyProject2.uproject" -game -rocket…
Zain
  • 73
  • 1
  • 3
  • 9
4
votes
1 answer

Passing function pointer with or without &

I'm currently learning game development with c++ in Unreal Engine and I came across the function that takes a function pointer as an input: InputHandle->BindAction("Grab",IE_Pressed, this, &UGrabber::Grab); From basic C++ I know that in passing a…
Eduard Kim
  • 265
  • 4
  • 15
4
votes
2 answers

Why can't I create a TSubclassOf<> to use in a SpawnActor() function?

I'm making a laser tag game in UE4 and I'm having a ton of difficulty using TSubclassOf<>. First, I'm declaring LaserClass in my LaserTagCharacter.h file like this. I'm also creating a function called OnFire() that's called when the player uses the…
pat-lawre
  • 97
  • 2
  • 14
4
votes
1 answer

Get game state inside Editor Widget in Unreal Engine 4

I have an Editor Widget and inside of it I created a blueprint for some button click event. Unfortunately, when I use the "Get game state" node (or any similar), it always returns null. I understand that it's correct while I don't hit Play in Editor…
PolGraphic
  • 3,233
  • 11
  • 51
  • 108
4
votes
3 answers

How to convert Euler Rotations from one Coordinate System to another? Right Handed Y-up to Left handed Z-up

I wrote a plugin for UE4 for matching and spawning Static Mesh Actors into the level of UE4. The plugin reads coordinates from a text file (Scale,Rotation,Transformation) which are exported from Softimage XSI per script. Everything works already.…
Chris
  • 79
  • 1
  • 8
4
votes
0 answers

Why is a sudden twist/roll introduced when rotating a quaternion in certain directions?

Scenario Given a normalised quaternion, A_q, and a normalised direction vector, B_v, we calculate a new rotation, C_q, that will rotate A_q to "face" in the direction of B_v. To clarify, let D_q = C_q * A_q, such that (1,0,0) rotated by D_q will be…
Lukehb
  • 454
  • 5
  • 15
4
votes
1 answer

How to enable C++17 mode with UnrealEngine 4.19 on VS 2017?

UnrealEngine 4.19 uses Visual Studio 2017's C++14 mode as default. The Visual Studio 2017 compiler has a flag /std:c++17 to enable C++17 and subsequently things like for std::optional. I tried adding the following line to VCToolChain.cs…
Ela782
  • 5,041
  • 5
  • 53
  • 66
4
votes
2 answers

Unable to use std::vector in Unreal Engine

I have an issue with using STL features with my UE4 project. Intellisense is showing an error with its red line and isn't understanding what I'm attempting to write. I use VS 2017 and have also downloaded the Unreal development settings. I've…
jckTol
  • 41
  • 1
  • 3