Nelaric Unreal Gameplay
Gameplay framework API
Loading...
Searching...
No Matches
PawnInitializationConfig.h
Go to the documentation of this file.
1// Copyright (c) 2026 Nelaric
2
6
7#pragma once
8
9#include "Engine/DataAsset.h"
10#include "Components/ActorComponent.h"
11
12#include "PawnInitializationConfig.generated.h"
13
22USTRUCT(BlueprintType)
24{
25 GENERATED_BODY()
26
27
28 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Initialization")
30
32 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Initialization")
33 TSubclassOf<UActorComponent> ComponentClass;
34
36 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Initialization")
37 bool bCreateOnAuthority = true;
38
40 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Initialization")
41 bool bCreateOnClient = true;
42
44 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Initialization")
46
48 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Initialization")
49 TArray<FName> DependencyIds;
50};
51
53UCLASS(MinimalAPI, BlueprintType)
54class UPawnInitializationConfig : public UDataAsset
55{
56 GENERATED_BODY()
57
58public:
60 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Initialization")
62};
Authored component creation and readiness contract for a pawn.
Definition PawnInitializationConfig.h:55
TArray< FPawnInitializationEntry > Components
Components managed by the pawn initialization component.
Definition PawnInitializationConfig.h:61
One component created and coordinated for a pawn.
Definition PawnInitializationConfig.h:24
bool bCreateOnAuthority
Create this component on authority, including standalone play.
Definition PawnInitializationConfig.h:37
bool bRequiredForPawnReady
Include this component in the local pawn readiness aggregate.
Definition PawnInitializationConfig.h:45
TSubclassOf< UActorComponent > ComponentClass
Concrete component class created for the pawn.
Definition PawnInitializationConfig.h:33
FName ComponentId
Stable identity used for dependency references and instance naming.
Definition PawnInitializationConfig.h:29
bool bCreateOnClient
Create this component on non-authority peers.
Definition PawnInitializationConfig.h:41
TArray< FName > DependencyIds
IDs of components that must reach Ready before this entry enters Ready.
Definition PawnInitializationConfig.h:49