- Home /
What Is Lighter GameObject or Rect
Actually I wanna do button when the mouse hover over it the button scale up
I searched in iTween I found that to do any of its method I need a game object, so I did by coding using Rect, Texture and GUI.Draw()
My Question is: what is lighter GameObject with button and texture and done by iTween or the way I did (Rect, Texture & GUI.Draw())
Thanks
Answer by TonyLi · Jun 17, 2013 at 03:05 PM
Technically your method is lighter, since the iTween method includes all the pieces that your method uses and more. But the end result depends on how you implement your method. In the big picture, however, it might not have any noticeable effect either way. Other parts of your game will certainly be orders of magnitude heavier.
okay thank you for the helping answer :), very appreciated and yea sure other parts will be orders of magnitude heavier