Hi, Is there a way to have a UPARAMETER as a refence for the OutputType of a UFUNCTION.
It is possible to reference an input parameter of a function as OutputType of that UFUNCTION by meta DeterminesOutputType=.
I can reference a function in meta of UPARAMETER, but referencing a UPARAMTER in UFUNCTION meta doesn’t seem possible.
I wan’t to do something like:
UPROPERTY(EditAnywhere) TSubclassOf<UObject> Type; UFUNCTION(meta=(DeterminesOutputType=Type)) TArray<UObject*> GetData();
Currently it is compiling with that code but always returning a TArray<UObject*> in Blueprints, no matter what Type I have set … if I set it in an input parameter it works but adding it at every function is overhead that would not be needed.
Is there any way to achieve that, so I don’t need to add a type parameter to every function I want to be able to return a typed output in my helper class.