Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: weilies on October 17, 2015, 08:51:39 PM
-
i have a gameobject that will change to different image (in different sizes)
But once the sprite changed, it still keep to previous image size :(
it caused the image out of ratio
I know the 'snap' button will rectify the ratio. But what's the property to change in script? or how can i fix the component, to ensure everytime spritename changed, it will keep the perfect ratio?
Thanks for the help
-
Snap simply calls the MakePixelPerfect() function. You need to call it after changing the sprite.
-
Thanks,
Could u guide me through how to call the NGUI function in playmaker? I know it has to call from the specific gameobject but I just doesn't sure what's the exact script :p
-
Sorry, I don't know Playmaker. You will need to ask their support.
-
I forgot to update the thread. I managed to make it worked!
Believe it or not, the Playmaker shown an Error while i put in the actions.
But in fact, it run smoothly and the error will never happen during run time.