Hello,
There are two things that I don’t understand from this lecture.
-
When the new
TankAimingComponent
is created, it, by default, creates two public specifiers and one protected one. Is there any difference between the two public sections and why does Unreal create 2 of them?
-
Other than the game crashing, what is the difference between the two below?
UTankAimingComponent TankAimingComponent;
TankAimingComponent.AimAt(HitLocation);
// vs.
TankAimingComponent->AimAt(HitLocation);
- Also, why not sure a reference for this? Is it because if it were a reference it could not be initialized to
nullptr
?
UTankAimingComponent* TankAimingComponent = nullptr;
Thanks!