CARLA
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/ActorDefinition.h
Go to the documentation of this file.
1 // Copyright (c) 2017 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 
10 
11 #include "GameFramework/Actor.h"
12 
13 #include "ActorDefinition.generated.h"
14 
15 /// A definition of a Carla Actor with all the variation and attributes.
16 USTRUCT(BlueprintType)
18 {
19  GENERATED_BODY()
20 
21  /// Uniquely identifies the definition (no need to fill it).
22  uint32 UId = 0u;
23 
24  /// Display ID that identifies the actor.
25  UPROPERTY(EditAnywhere, BlueprintReadWrite)
26  FString Id;
27 
28  /// Class of the actor to be spawned (Optional).
29  ///
30  /// Note that this parameter is not exposed on the client-side, only used by
31  /// the spawner itself.
32  UPROPERTY(EditAnywhere, BlueprintReadWrite)
33  TSubclassOf<AActor> Class;
34 
35  /// A list of comma-separated tags.
36  UPROPERTY(EditAnywhere, BlueprintReadWrite)
37  FString Tags;
38 
39  /// Variations represent variables the user can modify to generate variations
40  /// of the actor.
41  UPROPERTY(EditAnywhere, BlueprintReadWrite)
42  TArray<FActorVariation> Variations;
43 
44  /// Attributes represent non-modifiable properties of the actor that might
45  /// help the user identifying and filtering actors.
46  UPROPERTY(EditAnywhere, BlueprintReadWrite)
47  TArray<FActorAttribute> Attributes;
48 };
A definition of a Carla Actor with all the variation and attributes.
An actor attribute, may be an intrinsic (non-modifiable) attribute of the actor or an user-defined ac...