You could store it as a pointer on the same actor:
UPROPERTY()
UTraceComponent* TraceComponent = nullptr;
But usually there are better ways to write your code so you don’t have to do that:
- Move the logic to update the camera into the component.
- Don’t use tick, only use delegates (Observer pattern) to do things just when they are required. Sometimes you have to use tick but usually not.