UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VisualLoggerKismetLibrary.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "VisualLoggerKismetLibrary.generated.h"
7
8UCLASS(MinimalAPI, meta=(ScriptName="VisualLoggerLibrary"))
10{
12
13public:
14 UFUNCTION(BlueprintCallable, Category = "Debug|VisualLogger", meta = (DisplayName = "Enable VisLog Recording", CallableWithoutWorldContext, DevelopmentOnly))
15 static void EnableRecording(bool bEnabled);
16
18 UFUNCTION(BlueprintCallable, Category = "Debug|VisualLogger", meta = (BlueprintThreadSafe, CallableWithoutWorldContext, DevelopmentOnly))
19 static void RedirectVislog(UObject* SourceOwner, UObject* DestinationOwner);
20
25 UFUNCTION(BlueprintCallable, Category = "Debug|VisualLogger", meta = (BlueprintThreadSafe, DisplayName = "VisLog Text", AdvancedDisplay = "WorldContextObject, bAddToMessageLog", CallableWithoutWorldContext, DevelopmentOnly, DefaultToSelf = "WorldContextObject"))
26 static void LogText(UObject* WorldContextObject, FString Text, FName LogCategory = TEXT("VisLogBP"), bool bAddToMessageLog = false);
27
32 UFUNCTION(BlueprintCallable, Category = "Debug|VisualLogger", meta = (BlueprintThreadSafe, DisplayName = "VisLog Location", AdvancedDisplay = "WorldContextObject, bAddToMessageLog", CallableWithoutWorldContext, DevelopmentOnly, DefaultToSelf = "WorldContextObject"))
33 static void LogLocation(UObject* WorldContextObject, FVector Location, FString Text, FLinearColor ObjectColor = FLinearColor::Blue, float Radius = 10, FName LogCategory = TEXT("VisLogBP"), bool bAddToMessageLog = false);
34
39 UFUNCTION(BlueprintCallable, Category = "Debug|VisualLogger", meta = (BlueprintThreadSafe, DisplayName = "VisLog Sphere Shape", AdvancedDisplay = "WorldContextObject, bAddToMessageLog", CallableWithoutWorldContext, DevelopmentOnly, DefaultToSelf = "WorldContextObject"))
40 static void LogSphere(UObject* WorldContextObject, FVector Center, float Radius, FString Text, FLinearColor ObjectColor = FLinearColor::Blue, FName LogCategory = TEXT("VisLogBP"), bool bAddToMessageLog = false, bool bWireframe = false);
41
46 UFUNCTION(BlueprintCallable, Category = "Debug|VisualLogger", meta = (BlueprintThreadSafe, DisplayName = "VisLog Cone Shape", AdvancedDisplay = "WorldContextObject, bAddToMessageLog", CallableWithoutWorldContext, DevelopmentOnly, DefaultToSelf = "WorldContextObject"))
47 static void LogCone(UObject* WorldContextObject, FVector Origin, FVector Direction, float Length, float Angle, FString Text, FLinearColor ObjectColor = FLinearColor::Blue, FName LogCategory = TEXT("VisLogBP"), bool bAddToMessageLog = false, bool bWireframe = false);
48
53 UFUNCTION(BlueprintCallable, Category = "Debug|VisualLogger", meta = (BlueprintThreadSafe, DisplayName = "VisLog Cylinder Shape", AdvancedDisplay = "WorldContextObject, bAddToMessageLog", CallableWithoutWorldContext, DevelopmentOnly, DefaultToSelf = "WorldContextObject"))
54 static void LogCylinder(UObject* WorldContextObject, FVector Start, FVector End, float Radius, FString Text, FLinearColor ObjectColor = FLinearColor::Blue, FName LogCategory = TEXT("VisLogBP"), bool bAddToMessageLog = false, bool bWireframe = false);
55
60 UFUNCTION(BlueprintCallable, Category = "Debug|VisualLogger", meta = (BlueprintThreadSafe, DisplayName = "VisLog Capsule Shape", AdvancedDisplay = "WorldContextObject, bAddToMessageLog", CallableWithoutWorldContext, DevelopmentOnly, DefaultToSelf = "WorldContextObject"))
61 static void LogCapsule(UObject* WorldContextObject, FVector Base, float HalfHeight, float Radius, FQuat Rotation, FString Text, FLinearColor ObjectColor = FLinearColor::Blue, FName LogCategory = TEXT("VisLogBP"), bool bAddToMessageLog = false, bool bWireframe = false);
62
67 UFUNCTION(BlueprintCallable, Category = "Debug|VisualLogger", meta = (BlueprintThreadSafe, DisplayName = "VisLog Box Shape", AdvancedDisplay = "WorldContextObject, bAddToMessageLog", CallableWithoutWorldContext, DevelopmentOnly, DefaultToSelf = "WorldContextObject"))
68 static void LogBox(UObject* WorldContextObject, FBox BoxShape, FString Text, FLinearColor ObjectColor = FLinearColor::Blue, FName LogCategory = TEXT("VisLogBP"), bool bAddToMessageLog = false, bool bWireframe = false);
69
74 UFUNCTION(BlueprintCallable, Category = "Debug|VisualLogger", meta = (BlueprintThreadSafe, DisplayName = "VisLog Oriented Box Shape", AdvancedDisplay = "WorldContextObject, bAddToMessageLog", CallableWithoutWorldContext, DevelopmentOnly, DefaultToSelf = "WorldContextObject"))
75 static void LogOrientedBox(UObject* WorldContextObject, FBox BoxShape, FTransform Transform, FString Text, FLinearColor ObjectColor = FLinearColor::Blue, FName LogCategory = TEXT("VisLogBP"), bool bAddToMessageLog = false, bool bWireframe = false);
76
81 UFUNCTION(BlueprintCallable, Category = "Debug|VisualLogger", meta = (BlueprintThreadSafe, DisplayName = "VisLog Arrow", AdvancedDisplay = "WorldContextObject, bAddToMessageLog, Thickness", CallableWithoutWorldContext, DevelopmentOnly, DefaultToSelf = "WorldContextObject"))
82 static void LogArrow(UObject* WorldContextObject, const FVector SegmentStart, const FVector SegmentEnd, FString Text, FLinearColor ObjectColor = FLinearColor::Blue, FName CategoryName = TEXT("VisLogBP"), bool bAddToMessageLog = false, float ArrowHeadSize = 8.0f);
83
88 UFUNCTION(BlueprintCallable, Category = "Debug|VisualLogger", meta = (BlueprintThreadSafe, DisplayName = "VisLog Circle", AdvancedDisplay = "WorldContextObject, bAddToMessageLog, Thickness", CallableWithoutWorldContext, DevelopmentOnly, DefaultToSelf = "WorldContextObject"))
89 static void LogCircle(UObject* WorldContextObject, FVector Center, FVector UpAxis, float Radius, FString Text, FLinearColor ObjectColor = FLinearColor::Blue, const float Thickness = 0.f, FName CategoryName = TEXT("VisLogBP"), bool bAddToMessageLog = false, bool bWireframe = false);
90
95 UFUNCTION(BlueprintCallable, Category = "Debug|VisualLogger", meta = (BlueprintThreadSafe, DisplayName = "VisLog Segment", AdvancedDisplay = "WorldContextObject, bAddToMessageLog, Thickness", CallableWithoutWorldContext, DevelopmentOnly, DefaultToSelf = "WorldContextObject"))
96 static void LogSegment(UObject* WorldContextObject, const FVector SegmentStart, const FVector SegmentEnd, FString Text, FLinearColor ObjectColor = FLinearColor::Blue, const float Thickness = 0.f, FName CategoryName = TEXT("VisLogBP"), bool bAddToMessageLog = false);
97
98private:
99 static constexpr ELogVerbosity::Type DefaultVerbosity = ELogVerbosity::Log;
100};
#define TEXT(x)
Definition Platform.h:1272
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition NameTypes.h:617
Definition BlueprintFunctionLibrary.h:16
Definition Object.h:95
Definition VisualLoggerKismetLibrary.h:10
Type
Definition LogVerbosity.h:17
@ Log
Definition LogVerbosity.h:40
Definition Color.h:48
static CORE_API const FLinearColor Blue
Definition Color.h:462