Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: jacksmash on November 24, 2014, 07:59:26 PM
-
I have a UITexture using the DownloadTexture script to get the image. This works fine, but I'd like to allow the user to resize the texture with the mouse and also drag it around the screen. What is the best approach to this?
-
ALT+SHIFT+C to add a collider and add UIDragObject to it.
To resize, UIDragResize. Check the chat window example, it's a resizable window.
-
Thanks! Dragging works great! I'm missing the resize script so I must need to update my NGUI package :)
-
Is there a way to have the drag script maintain the aspect ratio of the widget being resized?
-
Widgets have an aspect ratio field. You will need to set it to something other than "free".
-
Apologies. Missed that. All good now.