UE4 AR AugmentedReality之路-通过C++代码启动AR

先参考这篇文章: 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"
</

猜你喜欢

转载自blog.csdn.net/tangfuling1991/article/details/111826622
今日推荐