I have a component that inheriate from UMeshComponent.
I got a BlueprintNativeEvent Function, which represent the surface function. By default, this is a sphere surface.
I got code like this:
.h:
.cpp:
But... How can I override this function in blueprint?
I got a BlueprintNativeEvent Function, which represent the surface function. By default, this is a sphere surface.
I got code like this:
.h:
Code:
UFUNCTION(BlueprintNativeEvent) void ImplicitSurfaceFunction(float x, float y, float z, float& result); virtual void ImplicitSurfaceFunction_Implementation(float x, float y, float z, float& result);
Code:
void USurfaceMeshComponent::ImplicitSurfaceFunction_Implementation(float x, float y, float z, float& result) { result = (x*x) + (y*y) + (z*z) - 100.0f; }
Comment