How to Properly Declare WildCard Variables inside UFunction?

Hey guys,

A followup question from this one →

I’ve checked the Documentation and class code as well as other sources. Main two class links provided by @Shadowriver
https://github.com/EpicGames/UnrealEngine/blob/f509bb2d6c62806882d9a10476f3654cf1ee0634/Engine/Source/Runtime/Engine/Classes/Kismet/KismetArrayLibrary.h
https://github.com/EpicGames/UnrealEngine/blob/08ee319f80ef47dbf0988e14b546b65214838ec4/Engine/Source/Runtime/Engine/Private/KismetArrayLibrary.cpp

Based on reading this, I’ve attempted to create, inside a UFunction, a proper Reference to a Wildcard Variable (I’m especially interested in them for Array Wildcards in the blueprint side); so far without any progress.

How should I declare it inside the Header (and how to properly reference and transform them inside the Constructor)?

Thanks!
Sorry for the follow up question. I just couldn’t get it to work.

The Solution for anyone that may ponder upon this. This test resulted in a Success::

in .h

UFUNCTION(BlueprintPure, meta=(DisplayName = "Test", CompactNodeTitle = "Test", ArrayParm = "TargetArray", ArrayTypeDependentParams = "Item", BlueprintThreadSafe), Category="Test")
	static bool Test(const TArray<UProperty*>& TargetArray, int Index, UProperty*& Item);

in .cpp

bool UTest::Test(const TArray<UProperty*>& TargetArray, int Index, UProperty*& Item)
{
    if(TargetArray[0])
    {
        return true;
    }
    else
    {
        return false;
    }
}

Test Image:

257582-z-wildcard.jpg

I’ve been trying to implement this and ran into this problem:
https://forums.unrealengine.com/development-discussion/c-gameplay-programming/1829763-c-function-only-accessing-even-indices

Idk if this is a silly issue or whatever, but either way, thanks for you’re time :smiley:

Sadly your link isn’t working anymore. :frowning:

I also tried the above, but when then using an Index input to get a value of the array and return it, I seemingly get a value that’s supposed to be on another index or garbage data.