When working with an Engine the first thing that matters is to see the documentation because it has important things to start, such as:
- guides
- examples
- tutorials
- first steps
- explanation of certain components
- features available
For Unreal Engine 4 you can refer to documentation here.
Regarding the two lines of code you indicated (be careful that the s
in Spring
it has to be higher):
class USpringArmComponent* CameraBoom;
class UCameraComponent* FollowCamera;
You are creating two fields in the class, which are two pointers. This would be similar to doing:
Jogador* jog;
That would create a pointer to the class Jogador
called jog
, but without the reserved word class
. It was used to make the statement as well, usually called forward declaration. This way you can use the pointer even without having previously interpreted the class definition through its header.
To finalize the classes concerned has the following meaning:
UCameraComponent
- Represents a camera point of view, contemplating projection type, angle of view and some settings. This class derives from USceneComponent
.
USpringArmComponent
- This component tries to keep your children at a fixed distance from their parents, but will collect the children if there is a collision and re-expand if there is no case. Also derives from the class USceneComponent
.
Documentation relevant to these classes:
Do not put code as image. Always put code as properly formatted text.
– Isac
Thank you. I removed the image and put the code in question.
– Walisson