Hello everyone, I have been trying to develop an AR App completely in C++, which requires an ARSessionConfig data asset to start an AR Session. I tried:
UARSessionConfig SessionConfig = UARSessionConfig();
UARSessionConfig* Ptr = &ARSession;
UARBlueprintLibrary::StartARSession(Ptr);
This doesn’t work as I keep getting an error with this message:
Error C2248: ‘UARSessionConfig::UARSessionConfig’ : cannot access private member declared in class ‘UARSessionConfig’
… note : see declaration of ‘UARSessionConfig::UARSessionConfig’
At this point I do not understand why this error occurs. The constructor of UARSessionConfig is defined as public:
Where did I make a mistake? I’d really appreciate your help. Thank you in advance.
Best regards