CARLA
Loading...
Searching...
No Matches
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
15UENUM(BlueprintType)
16enum 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
29USTRUCT(BlueprintType)
30struct 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)
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