Skip to content

Commit 4d04701

Browse files
committed
[DevOps] add "Categories" for FAB release 2
1 parent b9c9030 commit 4d04701

File tree

22 files changed

+133
-133
lines changed

22 files changed

+133
-133
lines changed

Source/UnrealHelperEditor/Public/UHECustomThumbnail.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class UNREALHELPEREDITOR_API IUHECustomThumbnail
2424
public:
2525

2626
/** IUHECustomThumbnail **/
27-
UFUNCTION(BlueprintCallable, BlueprintNativeEvent, Category="Hittable Interface")
27+
UFUNCTION(BlueprintCallable, BlueprintNativeEvent, Category="Custom Thumbnail")
2828
UTexture2D* GetCustomThumbnailIcon();
2929
/** ~IUHECustomThumbnail **/
3030
};

Source/UnrealHelperLibrary/Private/Animation/Notifies/AN_UHL_Base.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55

66
#include UE_INLINE_GENERATED_CPP_BY_NAME(AN_UHL_Base)
77

8-
bool UAN_UHL_Base::IsPreviewWorld(USkeletalMeshComponent* MeshComp) const
9-
{
10-
return MeshComp->GetWorld() && MeshComp->GetWorld()->IsPreviewWorld();
11-
}
12-
138
void UAN_UHL_Base::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation, const FAnimNotifyEventReference& EventReference)
149
{
1510
OnNotified.Broadcast(MeshComp);

Source/UnrealHelperLibrary/Private/Utils/UnrealHelperLibraryBPL.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ void UUnrealHelperLibraryBPL::GetPointAtRelativeDirection(FVector& Point, FRotat
417417

418418
if (bDebug)
419419
{
420-
const UEnum* EnumPtr = FindObject<UEnum>(ANY_PACKAGE, TEXT("EUHLDirection"), true);
420+
const UEnum* EnumPtr = FindObject<UEnum>(nullptr, TEXT("EUHLDirection"), true);
421421
if (EnumPtr)
422422
{
423423
DrawDebugString(ActorIn->GetWorld(), Point, FString::Printf(TEXT("%s \nDirection %s\nDistance %.2f"), *DebugText.BuildSourceString(), *EnumPtr->GetNameStringByValue((uint8)Direction), Distance), 0, DebugColor.ToFColor(true), DebugLifetime, true, 1.0f);
@@ -462,7 +462,7 @@ void UUnrealHelperLibraryBPL::GetPointAtDirectionRelativeToOtherActor(FVector& P
462462

463463
if (bDebug)
464464
{
465-
const UEnum* EnumPtr = FindObject<UEnum>(ANY_PACKAGE, TEXT("EUHLDirection"), true);
465+
const UEnum* EnumPtr = FindObject<UEnum>(nullptr, TEXT("EUHLDirection"), true);
466466
if (EnumPtr)
467467
{
468468
DrawDebugString(Actor1->GetWorld(), Point, FString::Printf(TEXT("Direction %s\nDistance %.2f"), *EnumPtr->GetNameStringByValue((uint8)Direction), Distance), 0, DebugColor.ToFColor(true), DebugLifetime, true, 1.0f);

Source/UnrealHelperLibrary/Public/AI/Components/UHLAIPerceptionComponent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ class UNREALHELPERLIBRARY_API UUHLAIPerceptionComponent : public UAIPerceptionCo
1919
public:
2020
virtual void HandleExpiredStimulus(FAIStimulus& StimulusStore) override;
2121

22-
UPROPERTY(BlueprintAssignable)
22+
UPROPERTY(BlueprintAssignable, Category="UHL AIPerceptionComponent")
2323
FOnSightStimulusExpired OnSightStimulusExpired;
2424
};

Source/UnrealHelperLibrary/Public/AI/Composite/BTC_RandomSelector.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ class UNREALHELPERLIBRARY_API UBTC_RandomSelector : public UBTCompositeNode
2929

3030
// TODO validate that chances count == ChildrenNum
3131
// if no chance specified, node without chance will win always
32-
UPROPERTY(EditAnywhere, BlueprintReadWrite, meta=(ForceUnits="Multiplier"))
32+
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="RandomSelector", meta=(ForceUnits="Multiplier"))
3333
TArray<float> ChancesArray = { 0.5f, 0.5f };
3434

35-
UFUNCTION(BlueprintCallable, CallInEditor)
35+
UFUNCTION(BlueprintCallable, CallInEditor, Category="RandomSelector")
3636
void RemoveUnusedChances();
3737

3838
protected:

Source/UnrealHelperLibrary/Public/AI/Data/TurnSettings.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ struct FTurnRange
1212
GENERATED_BODY()
1313

1414
public:
15-
UPROPERTY(EditAnywhere, BlueprintReadWrite)
15+
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="TurnRange")
1616
FString Name;
17-
UPROPERTY(EditAnywhere, BlueprintReadWrite)
17+
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="TurnRange")
1818
FFloatRange Range = FFloatRange(-135, -45);
19-
UPROPERTY(EditAnywhere, BlueprintReadWrite)
19+
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="TurnRange")
2020
UAnimMontage* AnimMontage = nullptr;
2121
// useful in big enemies cases, Dragon shouldn't cancel 180deg rotate animation
2222
// even if Player somehow teleported
23-
UPROPERTY(EditAnywhere, BlueprintReadWrite)
23+
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="TurnRange")
2424
bool bOverrideStopMontageOnGoalReached = false;
25-
UPROPERTY(EditAnywhere, BlueprintReadWrite, meta=(EditCondition="bOverrideStopMontageOnGoalReached", EditConditionHides))
25+
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="TurnRange", meta=(EditCondition="bOverrideStopMontageOnGoalReached", EditConditionHides))
2626
bool bStopMontageOnGoalReached = false;
2727
};
2828

@@ -32,7 +32,7 @@ struct FTurnRanges
3232
GENERATED_BODY()
3333

3434
public:
35-
UPROPERTY(EditAnywhere, BlueprintReadWrite)
35+
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="TurnRanges")
3636
TArray<FTurnRange> TurnRanges;
3737
};
3838

@@ -51,7 +51,7 @@ struct FTurnSettings
5151
GENERATED_BODY()
5252

5353
public:
54-
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(EditCondition="true", MultiLine))
54+
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="TurnSettings", meta=(EditCondition="true", MultiLine))
5555
FString Notes = FString(TEXT(
5656
"Use cases:"
5757
"\n\n1) Big enemy (dragon, etc.) - better to use with \"bTurnOnlyWithAnims\", \"bStopMontageOnGoalReached\" and \"Precision = 1°\", BlendOut settings in AnimMontage becomes critcal for smooth visual ~0.5s blendout + inertionalization recommended"
@@ -62,15 +62,15 @@ struct FTurnSettings
6262

6363
// if enabled - turn only with animations, if no ranges fits - consider it as success
6464
// if disabled - turn also with rotating enemy in place
65-
UPROPERTY(EditAnywhere, BlueprintReadWrite)
65+
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="TurnSettings")
6666
bool bTurnOnlyWithAnims = true;
6767
// stops AnimMontage when reached goal, even if 180deg turn animation on half of playing - stop it
6868
// BlendOut settings for this option is critical
69-
UPROPERTY(EditAnywhere, BlueprintReadWrite)
69+
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="TurnSettings")
7070
bool bStopMontageOnGoalReached = true;
7171
// TODO bChooseClosestInRaceCondition? если подходят 2 ренджа, в чью пользу принимать решение, зач если есть order TurnRange'ей
7272

73-
UPROPERTY(EditAnywhere, BlueprintReadWrite, meta=(ForceInlineRow))
73+
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="TurnSettings", meta=(ForceInlineRow))
7474
TMap<FString, FTurnRanges> TurnRangesGroups;
7575

7676
void Cleanup();
@@ -88,7 +88,7 @@ class UNREALHELPERLIBRARY_API UTurnSettingsDataAsset : public UPrimaryDataAsset
8888
GENERATED_BODY()
8989

9090
public:
91-
UPROPERTY(EditAnywhere, BlueprintReadWrite)
91+
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="TurnSettings")
9292
FTurnSettings TurnSettings;
9393

9494
// Prefers to rotate 180deg if relative angle >115deg, suits for all medium mobs(human size)

Source/UnrealHelperLibrary/Public/AI/Decorators/BTD_InAngle.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@ struct FBTInAngleMemory
1010
{
1111
};
1212

13-
USTRUCT()
13+
USTRUCT(BlueprintType)
1414
struct FAngleRange
1515
{
1616
GENERATED_BODY()
1717

1818
public:
1919
UPROPERTY(Category="Decorator", EditAnywhere)
20-
FFloatRange Range;
20+
FFloatRange Range = FFloatRange();
21+
22+
// ~"FColor::MakeRandomColor()" will lead to non-critical error
23+
// ~unreal don't support random colors from native code.
24+
// ~They should be deterministic but there is no option
2125
UPROPERTY(Category="Decorator", EditAnywhere)
22-
FColor DebugColor = FColor::MakeRandomColor();
26+
FColor DebugColor = FColor::Blue;
2327
};
2428

2529
/**

Source/UnrealHelperLibrary/Public/AI/Decorators/BTD_RandomChance.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class UNREALHELPERLIBRARY_API UBTD_RandomChance : public UBTDecorator
1717
public:
1818
UBTD_RandomChance(const FObjectInitializer& ObjectInitializer);
1919

20-
UPROPERTY(Category=Decorator, EditAnywhere, meta=(UIMin=0.0f, UIMax=1.0f, ClampMin=0.0f, ClampMax=1.0f, EditCondition="!bUseUnclamped && !bUseBlackboardValue", EditConditionHides))
20+
// UPROPERTY(Category="Decorator", EditAnywhere, meta=(UIMin=0.0f, UIMax=1.0f, ClampMin=0.0f, ClampMax=1.0f, EditCondition="!bUseUnclamped && !bUseBlackboardValue", EditConditionHides))
21+
UPROPERTY(Category="Decorator", EditAnywhere, meta=(UIMin=0.0f, UIMax=1.0f, ClampMin=0.0f, ClampMax=1.0f))
2122
float Chance;
2223
// UPROPERTY(Category=Decorator, EditAnywhere, meta=(EditCondition="bUseUnclamped && !bUseBlackboardValue", EditConditionHides))
2324
// float ChanceUnclamped;

Source/UnrealHelperLibrary/Public/AI/Decorators/BTD_TimeLimitRandom.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ class UNREALHELPERLIBRARY_API UBTD_TimeLimitRandom : public UBTDecorator
2828
UBTD_TimeLimitRandom(const FObjectInitializer& ObjectInitializer);
2929

3030
/** TimeLimit */
31-
UPROPERTY(EditAnywhere, meta=(ClampMin="0"))
31+
UPROPERTY(EditAnywhere, Category="TimeLimitRandom", meta=(ClampMin="0"))
3232
FFloatInterval TimeLimitRange = FFloatInterval(3.0f, 5.0f);
33-
UPROPERTY(EditAnywhere)
33+
UPROPERTY(EditAnywhere, Category="TimeLimitRandom")
3434
bool bUseIntegers = true;
3535

3636
virtual FString GetStaticDescription() const override;
@@ -59,6 +59,6 @@ class UNREALHELPERLIBRARY_API UBTD_TimeLimitRandom : public UBTDecorator
5959

6060
private:
6161
/** max allowed time for execution of underlying node */
62-
UPROPERTY(Category=Decorator, EditAnywhere)
62+
UPROPERTY(EditAnywhere, Category="Decorator")
6363
float TimeLimit;
6464
};

Source/UnrealHelperLibrary/Public/AI/Tasks/BTT_SetBBValue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class UNREALHELPERLIBRARY_API UBTT_SetBBValue : public UBTTaskNode
8888
private:
8989
UPROPERTY()
9090
UEnum* CurrentEnum;
91-
UPROPERTY(EditDefaultsOnly)
91+
UPROPERTY()
9292
EBBValueType CurrentBBKeyValueType = EBBValueType::None;
9393

9494
UFUNCTION()

0 commit comments

Comments
 (0)