I appreciate any help, and if there is a solution, a lot of people googling this issue will too I’m sure!
The issue I am having:
I have a C++ Actor script.
I have created a Blueprint Class from it.
I added the following variable to the header file:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
UCameraComponent* Camera;
Then successfully compiled the code.
Result:
I cannot see the variable when I select the Actor, in the Details window inside the Blueprint Class (or in the level the Actor is added to)
Attempted solution:
Wrapping UCameraComponent* as TObjectPtr. It became visible in the Details window , but when I selected to assign to it, the only option was the name of a level.
I hope there is a simple solution, otherwise I don’t understand how people can code a game mostly in C++ in Unreal Engine. I have found nothing online about how to do this. This is causing me a lot of pain, especially as someone who spent years making games with Unity (C#) where this was supremely easy to do.