UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TextRenderActor.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
7#pragma once
8
9#include "CoreMinimal.h"
11#include "GameFramework/Actor.h"
12#include "TextRenderActor.generated.h"
13
15
16UCLASS(MinimalAPI, ComponentWrapperClass, hideCategories = (Collision, Attachment))
18{
20
21 friend class UActorFactoryTextRender;
22
25 UPROPERTY(Category = TextRenderActor, VisibleAnywhere, BlueprintReadOnly, meta = (ExposeFunctionCategories = "Rendering|Components|TextRender", AllowPrivateAccess = "true"))
26 TObjectPtr<class UTextRenderComponent> TextRender;
27
28#if WITH_EDITORONLY_DATA
29 // Reference to the billboard component
30 UPROPERTY()
31 TObjectPtr<UBillboardComponent> SpriteComponent;
32#endif
33
34public:
36 class UTextRenderComponent* GetTextRender() const { return TextRender; }
37#if WITH_EDITORONLY_DATA
39 UBillboardComponent* GetSpriteComponent() const { return SpriteComponent; }
40#endif
41};
42
43
44
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Actor.h:257
Definition TextRenderActor.h:18
class UTextRenderComponent * GetTextRender() const
Definition TextRenderActor.h:36
Definition ObjectPtr.h:488