1
NGUI 3 Support / Irregular Shape UIWidget?
« on: January 20, 2014, 11:37:15 AM »
Hi there.
I am writing an extension tool for NGUI that will let you manipulate the four corners of the widget in order to make quadrilateral widgets of any shape. I am making a new widget type deriving from UIWidget. I would like to know if there is any sort of callback that would let me know that the pivot of a widget has changed. I noticed that all the processing is done inside the pivot property. What I need to do is to change the position of the vertexes that describe the mesh so they would match the new pivot point. I would like to get the tool working without altering NGUI source code. Any information would be much appreciated. Thanks.
I am writing an extension tool for NGUI that will let you manipulate the four corners of the widget in order to make quadrilateral widgets of any shape. I am making a new widget type deriving from UIWidget. I would like to know if there is any sort of callback that would let me know that the pivot of a widget has changed. I noticed that all the processing is done inside the pivot property. What I need to do is to change the position of the vertexes that describe the mesh so they would match the new pivot point. I would like to get the tool working without altering NGUI source code. Any information would be much appreciated. Thanks.
