mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-05 23:28:46 +00:00
CogSample: Add properties to test inspector TSet and TMap
This commit is contained in:
@@ -282,7 +282,7 @@ public:
|
|||||||
|
|
||||||
UFUNCTION(BlueprintCallable, BlueprintPure=false)
|
UFUNCTION(BlueprintCallable, BlueprintPure=false)
|
||||||
bool GetMontage(FName MontageName, UAnimMontage*& Montage, bool bPrintWarning) const;
|
bool GetMontage(FName MontageName, UAnimMontage*& Montage, bool bPrintWarning) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
friend class ACogSamplePlayerController;
|
friend class ACogSamplePlayerController;
|
||||||
|
|
||||||
@@ -389,5 +389,13 @@ protected:
|
|||||||
|
|
||||||
bool bIsAiming = false;
|
bool bIsAiming = false;
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------------------------------------------------
|
||||||
|
// Inspector Map Set Test
|
||||||
|
//----------------------------------------------------------------------------------------------------------------------
|
||||||
|
UPROPERTY(EditAnywhere, Category="Inspector Test")
|
||||||
|
TMap<FString, FVector> MapTest = { { FString("A"), FVector(1, 2, 3) }, { FString("B"), FVector(4, 5, 6) } };
|
||||||
|
|
||||||
|
UPROPERTY(EditAnywhere, Category="Inspector Test")
|
||||||
|
TSet<FString> SetTest = { FString("A"), FString("B") };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user