[Unity rectangle -> Rect]

    When reading NGUI portfolio source, a UV Texture coordinate conversion to pixel coordinates when using the Rect is transformed to that which the Rect

xMin , xMax , yMin , yMax updating data; when the return value found in all of the values have changed Rect, including position, width, then test it:

    

 Test Results:

    

 This is a very simple question, when you change the boundary value Rect, then the Rect the Position, Width, Height certainly will change, otherwise it is not the same Rect of such details species do change the time it needs to be carefully some;

 

Published 70 original articles · won praise 68 · Views 100,000 +

Guess you like

Origin blog.csdn.net/Rose_Girls/article/details/104635943