I wanted to check that I’ve understood something correctly from this lecture, can you look over the following and see if it sounds right:
We use “::” to access things in permanent storage, and “.” or “->” to access things in Stack/Heap.
When we first bind input to a function in this tutorial, we pass in the following parameters:
“Grab” = the name of the action as defined in project settings
“IE_Pressed” = the input event
“this” = the instance of the class that the function is called on
“&UGrabber::Release” = the location of the function we’re calling, which is based on the memory address of the original UGrabber class definition
I suppose I find it a bit strange that the function we’re calling is in permanent storage and the object that calls the function is “this”, which I think is an instance. I would have thought that “this” would be carrying around its own portable copy of the function. Suppose we added the component at runtime, or instantiated the player at runtime, would we use the same syntax to bind an action?