UDim2 defines __unm

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

print(-UDim2.new(0.1,10,0.2,20) == UDim2.new(-0.1,-10,-0.2,-20)) --> true
2 Likes