Hello Roy, Thank you for Replying my question.
Creating a pointer is actually my first attempt, and it gives me an error.
EXCEPTION_ACCESS_VIOLATION reading address 0x00000000000000c8
but here is the weird thing, after i regenerate visual studio project file, i can access it without any problem, but after i write more code to CameraMovementComponent
suddenly it gives me the same error EXCEPTION_ACCESS_VIOLATION reading address 0x00000000000000c8
Yeah this is what i try to achieve Roy, i try to think as object oriented to keep things organize.
i only want to access 2 properties from TraceComponent
- Current Target
- bIsTargetLocked
Because i need that properties to determine my camera movement and state.
And i don’t know if i can make Camera Component
and Spring Arm Component
inside CameraMovementComponent
, i’ve tried but i can’t move it and no parameter shown inside editor, yeah maybe because it’s Actor Component.
Thank you for mentioning Delegates Roy. this is something i need to learn.
Sorry if i missunderstanding your answer roy, i learn C++ by just making this project, and i learnt a lot while making this project. so much fun doing this, yet so much stress ahaha