CARLA
载入中...
搜索中...
未找到
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Util
EmptyActor.cpp
浏览该文件的文档.
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
#include "
EmptyActor.h
"
8
9
// 为 AEmptyActor 类设置一个静态(不需要Tick)的根组件,并确保根组件是可移动的。
10
AEmptyActor::AEmptyActor
(
const
FObjectInitializer &ObjectInitializer)
11
: Super(ObjectInitializer)
12
{
13
PrimaryActorTick.bCanEverTick =
false
;
14
RootSceneComponent
= CreateDefaultSubobject<USceneComponent>(TEXT(
"SceneRootComponent"
));
15
RootComponent =
RootSceneComponent
;
16
RootComponent->SetMobility(EComponentMobility::Movable);
17
}
EmptyActor.h
AEmptyActor::AEmptyActor
AEmptyActor(const FObjectInitializer &ObjectInitializer)
Definition
EmptyActor.cpp:10
AEmptyActor::RootSceneComponent
USceneComponent * RootSceneComponent
Definition
EmptyActor.h:33
制作者
1.10.0