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

Event dispatcher calling code function

I have a question about event dispatchers. I've created dispatcher in my code like this: DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FSoundPausedDelegate, bool, isSoundPaused); UPROPERTY(BlueprintAssignable) FSoundPausedDelegate…
Avengar
  • 89
  • 2
  • 9
4
votes
0 answers

Image rendered differently for each eye (UE4 + VXGI + VR)

Project: I have a scene in Unreal Engine which is using VXGI for the global illumination of the space. The scene is well optimized and I have good FPS (>90fps). The scene includes a movable direct light (sun) which is making the transition…
4
votes
1 answer

Unreal Engine 4: Adapting ReadPixels() to a multithreaded framework

I am trying to access pixel data and save images from an in-game camera to disk. Initially, the simple approach was to use a render target and subsequently RenderTarget->ReadPixels(), but as the native implementation of ReadPixels() contains a call…
HighVoltage
  • 722
  • 7
  • 25
4
votes
3 answers

UE4 Enabling Mouse During Play?

I'm extremely new to UE, and doing a few easy tutorials to get started, so I don't exactly know the correct terminology to use to help me find what I am looking for... Anyway, whenever I hit play and the game starts, my mouse disappears and I am…
xponent
  • 151
  • 2
  • 2
  • 10
4
votes
2 answers

Plane reprojection in post-process using homography matrix

Let's take a proxy problem - You're looking at some 3D scene. Now I replace the scene with its rendering done from your eyes position, so you don't see any difference. Then I replace the rendered image with a wall and projector. What I need is an…
kolenda
  • 2,741
  • 2
  • 19
  • 30
4
votes
0 answers

How to display a point cloud in Unreal Engine?

I'm attempting to display a point cloud in Unreal Engine using the technique described in this UE4 forum post. I think I followed the description, but I'm not getting any points displayed. The code¹²³⁴ is here. Any ideas on what I got wrong would be…
Michael Geary
  • 28,450
  • 9
  • 65
  • 75
4
votes
1 answer

Xcode fails to build unreal engine 4 project

So I'm trying to make a game using Unreal Engine 4 but I'm running into some issues. Up until now I've been working on the Unreal Engine Editor only and it's been working just fine but when I started creating C++ classes and using Xcode as well,…
Dimitre Bogdanov
  • 395
  • 1
  • 5
  • 18
4
votes
1 answer

Bind buffers to Unreal Engine 4 Customized Compute Shader

I am working on a project based on Unreal Engine 4 where I need to implement a customized directx11 compute shader. I am following this tutorial:Unreal HLSL Tutorial to write a customized compute shader in Unreal Engine for my project. I used the…
NULLPTR
  • 215
  • 1
  • 3
  • 12
4
votes
1 answer

How to use Unreal 4 ProceduralMeshComponent classes in code?

I was trying to find some examples or documentation as for how to implement functionality using the Unreal 4 ProceduralMeshComponents through code. The documentation of these classes on the website is very sparse and only provides the barest details…
Sai Narayan
  • 300
  • 4
  • 15
4
votes
1 answer

UE4 - Object has reflection - why to use C++ then?

I have always thought that UE is faster than Unity as UE uses C++ and Unity C#. C++'s philosophy seems to be broken here, which is you pay for the things you use. Now reflection and garbage collection is added. So why should UE4 be faster if they…
Narek
  • 38,779
  • 79
  • 233
  • 389
4
votes
4 answers

Unreal Engine or Unity for moddable games

Now I have searched around a bit and can't really find a conclusive answer regarding games made by either Unity or Unreal Engine to support moddings. By mods I mean scripting, characters, maps etc. - similar to CS What I have read is it is rather a…
user2180833
  • 156
  • 2
  • 11
4
votes
1 answer

How to create a custom c++ class to use with blueprint

I am trying to create a custom class that i can then use in my blueprints. I need this class to hold player information like name and a path to their picture. What I have made so far doesn't compile or build without errors and I don't know how to…
4
votes
1 answer

Steam API getting persona name

I have been following the Steam documentation to a t, but I have gotten to the point where I need to retrieve player names based on the steam ID, and Steam has a function for this in their documentation: const char *pchName =…
Liftoff
  • 24,717
  • 13
  • 66
  • 119
4
votes
1 answer

Steamworks checking if a user is logged in

So the code that I've been using to get a user's Steam ID is: CSteamID uid = SteamUser()->GetSteamID(); uint64 pid = uid.ConvertToUint64(); std::ostringstream sin; sin << pid; std::string s = sin.str(); return s.c_str(); This works just fine, but…
Liftoff
  • 24,717
  • 13
  • 66
  • 119
4
votes
1 answer

How to add OnClicked event for StaticMeshComponent in ure4.7?

Hej, I've been trying to click on StaticMeshComponent during Run-time, but not able to click on particular StaticMeshComponent. I've tried the below logic to click and set the material inside OnClick() Function, but not able succeed. Is AddDynamic…
manokar
  • 87
  • 1
  • 2
  • 9