CARLA
Toggle main menu visibility
Loading...
Searching...
No Matches
Unreal
CarlaUnreal
Plugins
Carla
Source
Carla
Actor
PropParameters.h
Go to the documentation of this file.
1
// Copyright (c) 2026 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
9
#include <util/ue-header-guard-begin.h>
10
#include "Engine/StaticMesh.h"
11
#include <util/ue-header-guard-end.h>
12
13
#include "PropParameters.generated.h"
14
15
UENUM(BlueprintType)
16
enum class
EPropSize
: uint8
17
{
18
19
Tiny
UMETA
(DisplayName =
"Tiny"
, ToolTip =
"Smaller than a mailbox"
),
20
Small
UMETA
(DisplayName =
"Small"
, ToolTip =
"Size of a mailbox"
),
21
Medium
UMETA
(DisplayName =
"Medium"
, ToolTip =
"Size of a human"
),
22
Big
UMETA
(DisplayName =
"Big"
, ToolTip =
"Size of a bus stop"
),
23
Huge
UMETA
(DisplayName =
"Huge"
, ToolTip =
"Size of a house or bigger"
),
24
25
SIZE
UMETA
(Hidden),
26
INVALID
UMETA
(DisplayName =
"INVALID"
)
27
};
28
29
USTRUCT(BlueprintType)
30
struct CARLA_API
FPropParameters
31
{
32
GENERATED_BODY()
33
34
UPROPERTY(EditAnywhere, BlueprintReadWrite)
35
FString
Name
;
36
37
// Soft reference so catalog parsing does not force-load the mesh; resolution
38
// happens in MakePropDefinition / the prop factory mesh cache.
39
UPROPERTY(EditAnywhere, BlueprintReadWrite)
40
TSoftObjectPtr<UStaticMesh>
Mesh
;
41
42
UPROPERTY(EditAnywhere, BlueprintReadWrite)
43
EPropSize
Size
=
EPropSize
::INVALID;
44
45
// What the prop is, in the two levels the catalogue groups by: a base type
46
// such as "garbage", and a subtype within it such as "trash_cans".
47
UPROPERTY(EditAnywhere, BlueprintReadWrite)
48
FString
BaseType
;
49
50
UPROPERTY(EditAnywhere, BlueprintReadWrite)
51
FString
SubType
;
52
};
EPropSize
EPropSize
Definition
PropParameters.h:17
EActorAttributeType::UMETA
@ UMETA
Definition
Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Actor/ActorAttribute.h:29
EVehicleInputPriority::INVALID
@ INVALID
Definition
VehicleInputPriority.h:17
FPropParameters
Definition
PropParameters.h:31
FPropParameters::Size
EPropSize Size
Definition
PropParameters.h:43
FPropParameters::Mesh
TSoftObjectPtr< UStaticMesh > Mesh
Definition
PropParameters.h:40
FPropParameters::BaseType
FString BaseType
Definition
PropParameters.h:48
FPropParameters::SubType
FString SubType
Definition
PropParameters.h:51
FPropParameters::Name
FString Name
Definition
PropParameters.h:35
Generated by
1.18.0