How to create a function which return SkeletalMesh?

I am actually trying to translate this function to C++ , how can I do it? with an input type of FName Name and Output type of USkeletalMesh SkeletalMesh, UTexture2D Texture2D
image_2022-05-16_065622417

Thank You In advance for helping.

UFUNCTION(BlueprintCallable)
	virtual void ReturnSkeletalMesh(FName Name, /*out*/ USkeletalMesh*& SkeletalMesh, /*out*/ UTexture2D*& Texture2D);
1 Like

is the /*out*/ part something that UHT picks up or it’s just for documentation?

Just for the documentation, later debugging the code will help to identify the input/outputs