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

GUI Texture Sheet of Controls

Discussion in 'UGUI & TextMesh Pro' started by derf, Dec 23, 2016.

  1. derf

    derf

    Joined:
    Aug 14, 2011
    Posts:
    356
    I am trying to figure out how to use the following GUI sprite sheet from open game art at http://opengameart.org/content/rpg-gui-construction-kit-v10

    It is not a standard layout. I got it to work in XNA by creating a bunch of widgets. I am trying something similar with Unity, but having trouble.

    Is there a way to specify what part of the texture to use?

    Do I have to go in and "cut-up" the gui elements?

    Any input would be helpful.
     
  2. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    @derf

    Hi there, there is no standard layout for Unity UI, if you are using the "new" UI.

    You'll just have to import the image, set it to be Sprite (2D and UI) and multiple sprites in one sheet, then edit the slices like you want. If you want to reduce workload, you can place the sprites in grid in image editor (if it's possible), that way you can cut your sheet to for example 64x64 sprites automatically.