Before I continue with the course I would just like to have some help to break down for me how we are using pointers with Unreal Engine. Take this pointer declaration and later use as an example:
^ Here we are declaring/creating a pointer called PressurePlate, that points to the content of the class ATriggerVolume. This is the same as instantiating a class, like we did with FBullCowGame BCGame, only now we’re using a pointer.
^ Here we are accessing the content of the class ATriggerVolume and using one of its functions created by the Unreal Engine developers.
So I guess one of the questions I have is, if this class was directly #include’ed into our cpp file, we would be able to access and use the function with just using the “.” operator, right?
I’m just not completely seeing how the pointer is accessing the class and how the class is connected to our cpp file if it isn’t #included.
I can see the cIass is located here:
Is it just because the class is located anywhere in the solution that we can access it with pointers?