CARLA
 
载入中...
搜索中...
未找到
StaticMeshFactory.h
浏览该文件的文档.
1// Copyright (c) 2020 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
11
12#include "StaticMeshFactory.generated.h"
13
14//负责生成静态网格的工厂。此工厂能够在内容中生成任何网格。
15UCLASS()
16class CARLA_API AStaticMeshFactory : public ACarlaActorFactory
17{
18 GENERATED_BODY()
19
20 //检索静态网格 actor 的定义
21 TArray<FActorDefinition> GetDefinitions() final;
22
23 FActorSpawnResult SpawnActor(
24 const FTransform &SpawnAtTransform,
25 const FActorDescription &ActorDescription) final;
26};