Search Unity

rotate a GUITexture WITHOUT OnGUI???

Discussion in 'Immediate Mode GUI (IMGUI)' started by mindengine, Oct 6, 2010.

  1. mindengine

    mindengine

    Joined:
    Sep 8, 2008
    Posts:
    114
    is it possible to rotate a GUITexture without using and OnGUI calls like GUIUtility etc...

    I dont want to take the performance hit from OnGUI on iphone...
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    No; you'd need to make your own GUI system using meshes or use an existing third-party system.

    --Eric
     
  3. mindengine

    mindengine

    Joined:
    Sep 8, 2008
    Posts:
    114
    yeah what i thought. wasnt sure if they changed anything in U3 as it relates to this issue.
    only concern with a mesh based gui is the lighting of it...
     
  4. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    You wouldn't light a mesh-based GUI at all.

    --Eric
     
  5. groovfruit

    groovfruit

    Joined:
    Apr 26, 2010
    Posts:
    257
    Spritemanager 2 would be good for you in this instance. It's what I'm using. Just create my sprites then add box collision and away I go. I was using GUITextures before for my menus, but with iPhone 4 i was getting issues of GUITextures not scaling and positioning to the correct place on the screen. I'm sure there's a technical (code) way of getting around this, but I decided to go down the path I know (which is SM2).