UDim defines __unm

UDim defines the __unm operation, which returns a UDim with the negation of each of its components.

print(-UDim.new(0.1,10) == UDim.new(-0.1,-10)) --> true
3 Likes