I am new to UE and programming. I want to scale a cylindrical static mesh to represent the filling of a tank with liquid. I managed to get it to work but it is scaling in both the negative and positive z axis. How do I get it to scale in only the positive direction?
This is the code I used:
TankMesh->SetRelativeScale3D(FVector(1, 1, TankPercentFill));
This is how it looks https://youtu.be/uST46mwHD5g