playMaker

Author Topic: Image width issue with "GUI Button" [SOLVED]  (Read 2323 times)

Breadman

  • Full Member
  • ***
  • Posts: 185
  • Derp
Image width issue with "GUI Button" [SOLVED]
« on: March 31, 2014, 01:24:04 AM »
I'm using the "GUI button" action to create buttons for my game menu. I'm using images as buttons, here's what they look like!


For some reason, even when the button size allows for the image to be displayed at its full width, it stays squished horizontally. I added a black background to the button to show the size of the button vs the size of the image being displayed:


I'd like for the button image to display at its actual width/height ratio, but for some reason it stays squished. I'm not sure what I'm doing wrong, has anyone seen this before? Here's the way I'm using the action:


If anyone has any ideas I'd be thankful!
« Last Edit: April 03, 2014, 09:03:00 PM by Breadman »

Breadman

  • Full Member
  • ***
  • Posts: 185
  • Derp
Re: Image width issue with "GUI Button"
« Reply #1 on: April 03, 2014, 09:02:19 PM »
Found the solution after poking around:

  • Select the image in your project window
  • In the inspector window, set "texture type" to "GUI"

It really was that easy, derp. Lesson learned!