How do i expose a pointer to a struct?

Hi,

This code (FYagPotentialStruct is a struct):

UFUNCTION()
	void ServerUpdatePotential(FYagPotentialStruct* InStruct);

gives me this error:

Inappropriate '*' on variable of type 'FYagPotentialStruct', cannot have an exposed pointer to this type.

I tried with reference, TSharedPtr, TSharedRef, i get various errors but can’t find the way to make this work.

Anyone knows ?

Thanks

Cedric

1 Like

Ok done.

UFUNCTION()
	void ServerUpdatePotential(struct FYagPotentialStruct& InStruct);

Finally found the answer here:

5 Likes