@@ -38,19 +38,22 @@ struct FUNCTIONPICKER_API FFunctionPicker
3838 FFunctionPicker (UClass* InFunctionClass, FName InFunctionName);
3939
4040 /* * The class where function can be found. */
41- UPROPERTY (EditDefaultsOnly, BlueprintReadOnly, meta = (DisplayName = " Class" ))
41+ UPROPERTY (EditDefaultsOnly, BlueprintReadOnly, meta = (DisplayName = " Class" , ShowOnlyInnerProperties ))
4242 TObjectPtr<UClass> FunctionClass = nullptr ;
4343
4444 /* * The function name to choose for specified class.*/
45- UPROPERTY (EditDefaultsOnly, BlueprintReadOnly, meta = (DisplayName = " Function" ))
45+ UPROPERTY (EditDefaultsOnly, BlueprintReadOnly, meta = (DisplayName = " Function" , ShowOnlyInnerProperties ))
4646 FName FunctionName = NAME_None;
4747
4848 /* * Returns true if is valid. */
49- FORCEINLINE bool IsValid () const { return !(* this == Empty ); }
49+ FORCEINLINE bool IsValid () const { return FunctionClass && !FunctionName. IsNone ( ); }
5050
5151 /* * Returns the function pointer based on set data to this structure. */
5252 UFunction* GetFunction () const ;
5353
54+ /* * Returns string in text format: Class::Function. */
55+ FString ToDisplayString () const ;
56+
5457 /* * Compares for equality.
5558 * @param Other The other object being compared. */
5659 FORCEINLINE bool operator ==(const FFunctionPicker& Other) const { return GetTypeHash (*this ) == GetTypeHash (Other); }
0 commit comments