So ive been taking this course on Udemy about C++ and Unreal Engine 5, one section is teaching us how to use the live coding feature in UE.
Where im confused abit at is for example i have a float value in one of my actors C++ .h files. ( float MyFloat = 1.0; )
Now if i update that value within the Unreal Editor for any reason, does the value thats written into the .h file updated or is the “1.0” just a place holder thats not ment to be changed?
If this value cn be updated do i do that manually or by recompiling the project within VS Code after saving and closing my project in the editor. This is mainly where im confused at because trying this none of the values are updated in the .h file even after building/compiling them.
The values you write in your IDE are just defaults. Same with values you set in the editor- the editor is just overriding the defaults to make new defaults.
So if you create the C++ actor class, the value will start as the default value you have in the .h file- in this case 1.0. If you create the blueprint actor class, that value will start at whatever you overrode the value to be- like 2.5 or something.