先参考这篇文章: UE4通过蓝图启动AR
一、将这几个核心类,替换成C++实现
1、实现MyARSessionConfig.h
#pragma once
#include "CoreMinimal.h"
#include "ARSessionConfig.h"
#include "MyARSessionConfig.generated.h"
/**
*
*/
UCLASS()
class ARPREVIEW_API UMyARSessionConfig : public UARSessionConfig
{
GENERATED_BODY()
};
2、实现MyARSessionConfig.cpp
// Fill out your copyright notice in the Description page of Project Settings.
#include "AR/Base/MyARSessionConfig.h"
</