playMaker

Author Topic: Spritesheet as a GUI element  (Read 1731 times)

nepomuk

  • Playmaker Newbie
  • *
  • Posts: 32
Spritesheet as a GUI element
« on: June 15, 2014, 06:12:12 AM »
i' like to have a spritesheet (a flipping coin pixel graphic) to be part of the gui. when i use the sprite on a simple polygon model i can animate the coin flipping by changing the tileset.. this does not work for GUI elements.

is there a way to change the tiling of GUI elements OR is there a way to get another object in front the GUI layer in order to have it visible in front of the GUI?

on the unity forum they gave me the tip to use GUI.DrawTextureWithTexCoords

but since i'm not that good at coding and this function isn't included in playmaker maybe someone could give me a hit how to include the function :)

ghost010

  • Junior Playmaker
  • **
  • Posts: 51
Re: Spritesheet as a GUI element
« Reply #1 on: June 15, 2014, 04:59:36 PM »
Cant you just use a GUItexture and make an fsm that loops trough a couple of GUI textures whit every animation state sprite.

sure it wont uses the sheet,but its the same effect?