# C++

**URL:** https://forums.unrealengine.com/c/development-discussion/programming-scripting/c-programming/29.md?page=60

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

**Page:** 61

---

## [How do I make C++ third person template have the first person perspective.](https://forums.unrealengine.com/t/how-do-i-make-c-third-person-template-have-the-first-person-perspective/2259259)

<div class="topic-metadata">

**Author:** [@LunarX](https://forums.unrealengine.com/u/LunarX)\
**Replies:** 9\
**Last updated:** [January 4, 2025, 7:18pm UTC](https://forums.unrealengine.com/t/how-do-i-make-c-third-person-template-have-the-first-person-perspective/2259259 "2025-01-04T19:18:51Z")

</div>

This is a video of the method I use when making blueprint projects: How to make a true first person camera but I have just switched to C++ to make the multiplayer features of my game and when I try to change the camera i…

---

## [\[Bug?\] Can't return a struct reference from BlueprintCallable function.](https://forums.unrealengine.com/t/bug-cant-return-a-struct-reference-from-blueprintcallable-function/121097)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0ba2eb3c](https://forums.unrealengine.com/u/anonymous_user_0ba2eb3c)\
**Replies:** 6\
**Last updated:** [January 4, 2025, 4:26pm UTC](https://forums.unrealengine.com/t/bug-cant-return-a-struct-reference-from-blueprintcallable-function/121097 "2025-01-04T16:26:18Z")

</div>

So I have this function here: UFUNCTION(BlueprintCallable, BlueprintPure) FEntityAttribute& GetTargetAttribute() { return \*targetAttribute; } I’d like to have it return a reference to FEntityAttribute, but in BP it…

---

## [Multiple errors in blank c++ project in UE5.5.1](https://forums.unrealengine.com/t/multiple-errors-in-blank-c-project-in-ue5-5-1/2259514)

<div class="topic-metadata">

**Author:** [@KorinOo](https://forums.unrealengine.com/u/KorinOo)\
**Replies:** 0\
**Last updated:** [January 4, 2025, 4:14pm UTC](https://forums.unrealengine.com/t/multiple-errors-in-blank-c-project-in-ue5-5-1/2259514 "2025-01-04T16:14:38Z")

</div>

Hello, I recently updated my engine version from 5.3 to 5.5 and now I’m encountering weird errors in VS. No matter what project I open (even freshly created blank project) I get this exact set of errors: Is it normal…

---

## [Hardcoded std::vector\<int32\> to what in Unreal.](https://forums.unrealengine.com/t/hardcoded-std-vector-int32-to-what-in-unreal/2259020)

<div class="topic-metadata">

**Author:** [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Replies:** 0\
**Last updated:** [January 4, 2025, 9:09am UTC](https://forums.unrealengine.com/t/hardcoded-std-vector-int32-to-what-in-unreal/2259020 "2025-01-04T09:09:59Z")

</div>

Hi! I have this C++ code: std::vector\<int32\> Values = { -7305,-6940,-6575,-6209,-5844,-5479,-5114,-4748,-4383,-4018, -3653,-3287,-2922,-2557,-2192,-1826,-1461,-1096,-731,-365, 0,365,730,1096,1461,1826,2191,2557,2922,32…

---

## [How to serialize with two decimal places using FMemoryWriter & FMemoryReader?](https://forums.unrealengine.com/t/how-to-serialize-with-two-decimal-places-using-fmemorywriter-fmemoryreader/2258872)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 0\
**Last updated:** [January 4, 2025, 6:06am UTC](https://forums.unrealengine.com/t/how-to-serialize-with-two-decimal-places-using-fmemorywriter-fmemoryreader/2258872 "2025-01-04T06:06:09Z")

</div>

I am serializing a FVector and a FRotator like this. //---------------------------------------------------------------------------- TArray\<uint8\> UMovementReplicatorComponent::EncodeLocationAndRotation() { TArray\<uint8\>…

---

## [Primary data asset won't load no matter what I do?](https://forums.unrealengine.com/t/primary-data-asset-wont-load-no-matter-what-i-do/494270)

<div class="topic-metadata">

**Author:** [@Beyond\_edge](https://forums.unrealengine.com/u/Beyond_edge)\
**Replies:** 3\
**Last updated:** [January 4, 2025, 12:14am UTC](https://forums.unrealengine.com/t/primary-data-asset-wont-load-no-matter-what-i-do/494270 "2025-01-04T00:14:06Z")

</div>

Hey so I’ve been setting up primary data assets( to hold data tables and functionality to load them) but I’m running into the problem that for some reason the data assets won’t load, so far I’ve tried many different meth…

---

## [Temporary ill files when building from VS 2022](https://forums.unrealengine.com/t/temporary-ill-files-when-building-from-vs-2022/2238941)

<div class="topic-metadata">

**Author:** [@Kouros26](https://forums.unrealengine.com/u/Kouros26)\
**Replies:** 1\
**Last updated:** [January 3, 2025, 10:16pm UTC](https://forums.unrealengine.com/t/temporary-ill-files-when-building-from-vs-2022/2238941 "2025-01-03T22:16:14Z")

</div>

Hello, I just bought a new pc and I can’t launch my project because of that temporary ill files issue. I’m using VS 2022 and UE5.3 (also tried on 5.5, same results). I tried building a C++ template project and it worke…

---

## [Setting physics mask filter for various component types](https://forums.unrealengine.com/t/setting-physics-mask-filter-for-various-component-types/2256096)

<div class="topic-metadata">

**Author:** [@Nic\_Doffay](https://forums.unrealengine.com/u/Nic_Doffay)\
**Replies:** 0\
**Last updated:** [January 2, 2025, 5:33pm UTC](https://forums.unrealengine.com/t/setting-physics-mask-filter-for-various-component-types/2256096 "2025-01-02T17:33:31Z")

</div>

I remember there was a certain undocumented process to setting mask filters on various mesh types and primitives. I was wondering if anyone could confirm how this should be done. It’s been a while and I’ve forgotten. My…

---

## [Include the source code of a library inside my game project](https://forums.unrealengine.com/t/include-the-source-code-of-a-library-inside-my-game-project/2257220)

<div class="topic-metadata">

**Author:** [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Replies:** 0\
**Last updated:** [January 3, 2025, 8:28am UTC](https://forums.unrealengine.com/t/include-the-source-code-of-a-library-inside-my-game-project/2257220 "2025-01-03T08:28:12Z")

</div>

Hi! I have developed a C++ library with Visual Studio 2022 and I want to include the source inside inside a game project. How can I include it? As a plugin? As a module? This C++ library is a standalone project. It ha…

---

## [How do i split a string to start on new line? "\\n" not working! (Simple Question)](https://forums.unrealengine.com/t/how-do-i-split-a-string-to-start-on-new-line-n-not-working-simple-question/42120)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_adc3f730](https://forums.unrealengine.com/u/anonymous_user_adc3f730)\
**Replies:** 10\
**Last updated:** [January 3, 2025, 5:16am UTC](https://forums.unrealengine.com/t/how-do-i-split-a-string-to-start-on-new-line-n-not-working-simple-question/42120 "2025-01-03T05:16:52Z")

</div>

How do i get a string to start on a new line, apparently is supposed to work but it doesn’t for me. “Hello there blah” becomes “Hello thereblah” Am i missing something?

---

## [Why do my Input Actions not translate to my charactor actor movement code?](https://forums.unrealengine.com/t/why-do-my-input-actions-not-translate-to-my-charactor-actor-movement-code/2256293)

<div class="topic-metadata">

**Author:** [@SlanFury](https://forums.unrealengine.com/u/SlanFury)\
**Replies:** 4\
**Last updated:** [January 2, 2025, 11:00pm UTC](https://forums.unrealengine.com/t/why-do-my-input-actions-not-translate-to-my-charactor-actor-movement-code/2256293 "2025-01-02T23:00:31Z")

</div>

I have a blank UE5.4 project where i created a basic scene and a ACharacter actor class (C++) and a Blueprint class derived from it. Initially, I tried to create the setup from scratch myself but the character didnt move…

---

## [WebSocket module not found](https://forums.unrealengine.com/t/websocket-module-not-found/2256600)

<div class="topic-metadata">

**Author:** [@woohee0817](https://forums.unrealengine.com/u/woohee0817)\
**Replies:** 1\
**Last updated:** [January 2, 2025, 10:56pm UTC](https://forums.unrealengine.com/t/websocket-module-not-found/2256600 "2025-01-02T22:56:01Z")

</div>

I can’t figure out what’s wrong. As shown in the picture, the module is null. PublicDependencyModuleNames.AddRange(new string\[\] { "Core", "CoreUObject", "Engine", "InputCore", "HTTP", "Json", "JsonUtilities" , "WebSo…

---

## [Passing parameters and other stuff.](https://forums.unrealengine.com/t/passing-parameters-and-other-stuff/2253098)

<div class="topic-metadata">

**Author:** [@Graspna](https://forums.unrealengine.com/u/Graspna)\
**Replies:** 2\
**Last updated:** [January 2, 2025, 4:08pm UTC](https://forums.unrealengine.com/t/passing-parameters-and-other-stuff/2253098 "2025-01-02T16:08:21Z")

</div>

I’m starting from scratch to learn programming and one of the things I still can’t get is the passing of parameters. In the example in the picture, I tried to pass the variables declared “CurrentPosition” to the boolean …

---

## [Modules and Dedicated Server](https://forums.unrealengine.com/t/modules-and-dedicated-server/2255923)

<div class="topic-metadata">

**Author:** [@MLGMonty](https://forums.unrealengine.com/u/MLGMonty)\
**Replies:** 0\
**Last updated:** [January 2, 2025, 4:00pm UTC](https://forums.unrealengine.com/t/modules-and-dedicated-server/2255923 "2025-01-02T16:00:42Z")

</div>

I am creating a game with Server Authorative model. I want to clearly seperate code in Client and Server and Shared. Researching I came across modules. Am I right in assuming is a Dedicated Server supposed to be a module…

---

## [Character rotation](https://forums.unrealengine.com/t/character-rotation/2253997)

<div class="topic-metadata">

**Author:** [@PYWA\_YROD](https://forums.unrealengine.com/u/PYWA_YROD)\
**Replies:** 5\
**Last updated:** [January 2, 2025, 12:47pm UTC](https://forums.unrealengine.com/t/character-rotation/2253997 "2025-01-02T12:47:33Z")

</div>

How to make a character turn forward only when walking And when standing still, make it so that the camera does not affect the character’s rotation Abd when character sprint rotate to movement direction

---

## [How to approach disabling collisions in certain cases](https://forums.unrealengine.com/t/how-to-approach-disabling-collisions-in-certain-cases/2226294)

<div class="topic-metadata">

**Author:** [@Subject000001](https://forums.unrealengine.com/u/Subject000001)\
**Replies:** 1\
**Last updated:** [January 2, 2025, 11:46am UTC](https://forums.unrealengine.com/t/how-to-approach-disabling-collisions-in-certain-cases/2226294 "2025-01-02T11:46:23Z")

</div>

The scenario I have is basically I have a blueprint object that sticks to other instances of the blueprint object when they touch, creating a chain of this object. I want to disable collision between the objects that ar…

---

## [How can I use GeometryScript blueprint functions in C++ code?](https://forums.unrealengine.com/t/how-can-i-use-geometryscript-blueprint-functions-in-c-code/1409201)

<div class="topic-metadata">

**Author:** [@xdAtlas](https://forums.unrealengine.com/u/xdAtlas)\
**Replies:** 6\
**Last updated:** [January 2, 2025, 7:02am UTC](https://forums.unrealengine.com/t/how-can-i-use-geometryscript-blueprint-functions-in-c-code/1409201 "2025-01-02T07:02:55Z")

</div>

I am trying to use UDynamicMeshComponent to create a procedural landscape, and the collisions are not working at all. I would like to use the Compute Mesh Convex Decomposition blueprint function in C++ so that I can use …

---

## [Character rotation ](https://forums.unrealengine.com/t/character-rotation/2253995)

<div class="topic-metadata">

**Author:** [@PYWA\_YROD](https://forums.unrealengine.com/u/PYWA_YROD)\
**Replies:** 1\
**Last updated:** [January 1, 2025, 4:26pm UTC](https://forums.unrealengine.com/t/character-rotation/2253995 "2025-01-01T16:26:03Z")

</div>

How to make a character turn forward only when walking moving And when standing, make it so that the camera does not affect the character’s rotation And when character sprint rotate to movement direction

---

## [Help: How can I switch the function bound to the 'E' key in Enhanced Input?](https://forums.unrealengine.com/t/help-how-can-i-switch-the-function-bound-to-the-e-key-in-enhanced-input/2253676)

<div class="topic-metadata">

**Author:** [@StevenX](https://forums.unrealengine.com/u/StevenX)\
**Replies:** 2\
**Last updated:** [January 1, 2025, 2:29pm UTC](https://forums.unrealengine.com/t/help-how-can-i-switch-the-function-bound-to-the-e-key-in-enhanced-input/2253676 "2025-01-01T14:29:58Z")

</div>

Input-\>BindAction(IA\_E, ETriggerEvent::Triggered, this, &APeopPlayController::EKey) If the ‘E’ key is bound to this function elsewhere, but I want it to bind to another function when the player enters a specific area, h…

---

## [Launching Unreal Editor from VS2022 fails. "UnrealBuildTool.exe (process 1412) exited with code 1 (0x1)"](https://forums.unrealengine.com/t/launching-unreal-editor-from-vs2022-fails-unrealbuildtool-exe-process-1412-exited-with-code-1-0x1/2253835)

<div class="topic-metadata">

**Author:** [@Ninjaclown123](https://forums.unrealengine.com/u/Ninjaclown123)\
**Replies:** 1\
**Last updated:** [January 1, 2025, 2:14pm UTC](https://forums.unrealengine.com/t/launching-unreal-editor-from-vs2022-fails-unrealbuildtool-exe-process-1412-exited-with-code-1-0x1/2253835 "2025-01-01T14:14:15Z")

</div>

My project was a blueprints-only project and I added C++ to it. I generated the VS files by right clicking on .uproject and clicking “Generate Visual Studio project files”. The first time I opened and built my .sln file,…

---

## [Missing '#Pragma once'](https://forums.unrealengine.com/t/missing-pragma-once/591021)

<div class="topic-metadata">

**Author:** [@Ripas](https://forums.unrealengine.com/u/Ripas)\
**Replies:** 8\
**Last updated:** [January 1, 2025, 1:50pm UTC](https://forums.unrealengine.com/t/missing-pragma-once/591021 "2025-01-01T13:50:11Z")

</div>

Hello everyone, I have a problem building solution with the LyraStartersample. Intermediate\\Build\\Win64\\UnrealEditor\\Inc\\LyraGame\\LyraControllerComponent\_CharacterParts.generated.h(14): fatal error C1189: #error: “Lyr…

---

## [How to hide component's properties in actor's "Class Defaults" tab?](https://forums.unrealengine.com/t/how-to-hide-components-properties-in-actors-class-defaults-tab/725492)

<div class="topic-metadata">

**Author:** [@andrew\_torkovich](https://forums.unrealengine.com/u/andrew_torkovich)\
**Replies:** 2\
**Last updated:** [January 1, 2025, 3:10am UTC](https://forums.unrealengine.com/t/how-to-hide-components-properties-in-actors-class-defaults-tab/725492 "2025-01-01T03:10:32Z")

</div>

I have a component in my actor. When I click “Class Defaults”, it shows me all properties of my component, such as transform and mesh. I want to see these only when I click on the component itself, not in actor’s default…

---

## [Does Unreal have an actual Lazy Object Ptr?](https://forums.unrealengine.com/t/does-unreal-have-an-actual-lazy-object-ptr/1675020)

<div class="topic-metadata">

**Author:** [@Dynamiquel](https://forums.unrealengine.com/u/Dynamiquel)\
**Replies:** 1\
**Last updated:** [January 1, 2025, 2:36am UTC](https://forums.unrealengine.com/t/does-unreal-have-an-actual-lazy-object-ptr/1675020 "2025-01-01T02:36:24Z")

</div>

So as far as I know, Unreal has the following pointer types: TObjectPtr: stores a hard reference to a UObject and becomes auto-nulled when the object is explicitly destroyed. TWeakObjectPtr: stores a weak reference to …

---

## [C++ Parent/Child/Inheritance Question](https://forums.unrealengine.com/t/c-parent-child-inheritance-question/2251195)

<div class="topic-metadata">

**Author:** [@Oxyten](https://forums.unrealengine.com/u/Oxyten)\
**Replies:** 6\
**Last updated:** [December 30, 2024, 11:53pm UTC](https://forums.unrealengine.com/t/c-parent-child-inheritance-question/2251195 "2024-12-30T23:53:19Z")

</div>

Hey guys, so I have a question. I am currently trying to implement a combat system between the A.I. and the player that I have created. My A.I. class is a child class of the Character c++ base class. However, I have kind…

---

## [Stuck in a catch-22 and my project is totally inaccessible.](https://forums.unrealengine.com/t/stuck-in-a-catch-22-and-my-project-is-totally-inaccessible/732805)

<div class="topic-metadata">

**Author:** [@PerCat](https://forums.unrealengine.com/u/PerCat)\
**Replies:** 8\
**Last updated:** [December 30, 2024, 10:50pm UTC](https://forums.unrealengine.com/t/stuck-in-a-catch-22-and-my-project-is-totally-inaccessible/732805 "2024-12-30T22:50:51Z")

</div>

I have my project on 5.1 all bps. I decided to add a few custom c++ classes from a previous 4.26 project. I get the whole project needs to be rebuilt from source error, no big deal I’ll generate the snl file and rebuild…

---

## [Making an UE installed build for Windows11, what I'd have liked to know before making one](https://forums.unrealengine.com/t/making-an-ue-installed-build-for-windows11-what-id-have-liked-to-know-before-making-one/2238588)

<div class="topic-metadata">

**Author:** [@OeilDeLance43](https://forums.unrealengine.com/u/OeilDeLance43)\
**Replies:** 1\
**Last updated:** [December 24, 2024, 3:16pm UTC](https://forums.unrealengine.com/t/making-an-ue-installed-build-for-windows11-what-id-have-liked-to-know-before-making-one/2238588 "2024-12-24T15:16:31Z")

</div>

To be clear this is about making a distributable build of your own branch of Unreal Engine to distribute to your team. This also known as installed build of unreal engine. This is not about the game you are making but a…

---

## [Struct becomes hidden ](https://forums.unrealengine.com/t/struct-becomes-hidden/2250998)

<div class="topic-metadata">

**Author:** [@DoobG](https://forums.unrealengine.com/u/DoobG)\
**Replies:** 0\
**Last updated:** [December 30, 2024, 7:23pm UTC](https://forums.unrealengine.com/t/struct-becomes-hidden/2250998 "2024-12-30T19:23:07Z")

</div>

I created a C++ class named SubtitleStruct. In the .h file, I defined a struct as follows: #pragma once include “CoreMinimal.h” include “UObject/NoExportTypes.h” include “Engine/DataTable.h” include “SubtitleStruct.…

---

## [How to dependency plugin in another plugin?](https://forums.unrealengine.com/t/how-to-dependency-plugin-in-another-plugin/116435)

<div class="topic-metadata">

**Author:** [@Bruce\_Oases](https://forums.unrealengine.com/u/Bruce_Oases)\
**Replies:** 12\
**Last updated:** [December 30, 2024, 5:51pm UTC](https://forums.unrealengine.com/t/how-to-dependency-plugin-in-another-plugin/116435 "2024-12-30T17:51:43Z")

</div>

I have wrote two plugins,and one of them need the module in another. I have tried to add the module in build files,but it always warn that module dependency but plugins not. And another problem is that when I package o…

---

## [Is it possible to package 2 plugins together into 1 for the marketplace?](https://forums.unrealengine.com/t/is-it-possible-to-package-2-plugins-together-into-1-for-the-marketplace/260617)

<div class="topic-metadata">

**Author:** [@gokitty199](https://forums.unrealengine.com/u/gokitty199)\
**Replies:** 3\
**Last updated:** [December 30, 2024, 5:48pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-package-2-plugins-together-into-1-for-the-marketplace/260617 "2024-12-30T17:48:05Z")

</div>

As the title says. I’m working on another set of features in the form of a plugin that I would like to include into an already existing plugin I have on the marketplace, is it possible to build the 2 together without me …

---

## [Change Fixed Frame Rate in runtime?](https://forums.unrealengine.com/t/change-fixed-frame-rate-in-runtime/227237)

<div class="topic-metadata">

**Author:** [@ZerounoGames](https://forums.unrealengine.com/u/ZerounoGames)\
**Replies:** 4\
**Last updated:** [December 30, 2024, 4:57pm UTC](https://forums.unrealengine.com/t/change-fixed-frame-rate-in-runtime/227237 "2024-12-30T16:57:28Z")

</div>

Hi there! Can anybody say if these settings can be changed during runtime in a packaged project ? Use Fixed Frame Rate (bool) and Fixed Frame Rate (float) Thanks!

[Previous page](https://forums.unrealengine.com/c/development-discussion/programming-scripting/c-programming/29.md?page=59)

[Next page](https://forums.unrealengine.com/c/development-discussion/programming-scripting/c-programming/29.md?page=61)
