C++ UFUNCTION Noob Compiling Problem ?

Hi everyone,

I got a problem when i compiled my C++ code.
In my .h folder i declared this function:



UFUNCTION(BlueprintCallable, Category="Mesh Character")
	void ChangeMesh(float DeltaTime, USkeletalMeshComponent * CharacterMesh, USkeletalMeshComponent * GetMesh(), USkeletalMeshComponent * NewMesh);


Everything seems to be ok, but when i compile, i got this error:



Error: Missing ')' in parameter list


On my function declaration line.

If i delete this line: “UFUNCTION(BlueprintCallable, Category=“Mesh Character”)” the problem is resolved.

I thought someone will see where the problem come from.
Thanks in advance.

the problem is this:



USkeletalMeshComponent * GetMesh()


You can’t pass other function calls as function parameters, certainly for UFUNCTION’s anyway.

Thanks man, that’s what i thought :slight_smile: