UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WorldPartitionActorDescType.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
6
7#include <type_traits>
8
9class AActor;
10class UActorComponent;
11
12#if WITH_EDITOR
13template <typename ActorType UE_REQUIRES(std::is_base_of_v<AActor, ActorType>)>
15{};
16
17#define DEFINE_ACTORDESC_TYPE(ActorType, ActorDescType) \
18template <> \
19struct FWorldPartitionActorDescType<ActorType> \
20{ \
21 typedef class ActorDescType Type; \
22};
23
24template <typename ComponentType UE_REQUIRES(std::is_base_of_v<UActorComponent, ComponentType>)>
26{};
27
28#define DEFINE_COMPONENTDESC_TYPE(ComponentType, ComponentDescType) \
29template <> \
30struct FWorldPartitionComponentDescType<ComponentType> \
31{ \
32 typedef class ComponentDescType Type; \
33};
34
35#else
36#define DEFINE_ACTORDESC_TYPE(ActorType, ActorDescType)
37#define DEFINE_COMPONENTDESC_TYPE(ComponentType, ComponentDescType)
38#endif
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition Actor.h:257
Definition ActorComponent.h:152