Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[GUITexture] Running all over the screen

Discussion in 'Immediate Mode GUI (IMGUI)' started by GosuCherry, Nov 20, 2012.

  1. GosuCherry

    GosuCherry

    Joined:
    Nov 17, 2012
    Posts:
    17
    Hi. I have joystick/touchpad attached to moving gameobject, but position/rotation/scale of GUITexture is 0/0/0. But somehow ( only ingame ) it is at top border of screen, in addition moving horizontally ! Why is it happening ?
     
  2. GosuCherry

    GosuCherry

    Joined:
    Nov 17, 2012
    Posts:
    17
    Now it dont move at all. This is what i've done so far :

    I made prefabs of touchpads.
    I made gameobject which is Network.Instantiate'ed.
    This object have his own script for movement from touchpads.
    Even if variables ( of joysticks ) are properly implementated with those prefabs joystick, after those are getting spawned too, they dont respond with object ( they, work, since they are "flashing" when pressed, but there is no "interaction" between object and joysticks, even if they are "connected" ).

    When I make joysticks controlls childerns of this gameobject, it should work, but GUITextures of joystick are moving which means that game is unplayable...