Questions tagged [guitexture]

11 questions
9
votes
2 answers

GUITexture is deprecated, so what should I use instead of it?

I'm currently experiencing an issue with updated coding in C#. I'm working out of a textbook "3.x Game Development Essentials", and am currently attempting to make an array that will have textures assigned to it which will show the progression of a…
2
votes
1 answer

How to send GUI texture behind a image having sprite renderer component in unity3D 4.5

I am making buttons with GUI Texture and need them to adjust on white (Transparent) portions of below image. By default these GUI Texture appears above/on the image. I need them to appear under/below the image to achieve actual look. What I need…
Mian.Ammar
  • 663
  • 1
  • 9
  • 22
1
vote
1 answer

Fit Texture background on Screen in Unity

I'm new in Unity and trying to add texture background. I know this question has been asked many times but still I'm having problem. I've set background texture following instruction given in answer of this thread. GUI Texture as Background And it's…
Nargis
  • 739
  • 7
  • 30
1
vote
2 answers

NullReferenceException on GUITexture

I want to add GUITexture from script but it's error, then i try insert GUITexture (from GameObject > create other > GUI Texture) then link it to the script but then as i try move the guitexture using pixelInset, there is error…
1
vote
1 answer

How to make pop up GUITexture?

I have a GUITexture "Settings" and I want when I'll click on it, some settings to show up, for example music on/off. You click on the settings button and the music button appears. And by clicking on the music button you can mute/unmute the music in…
0
votes
2 answers

Unity3d Issue NGUI UITexture/Facebook www Profile Pic

Having small issue here with Unity and NGUI. NGUI has UITexture as its main texture such as Unity has GUITexture. I sent a request to facebook to get the users profile image which sends back a perfect url which if I put in the browser works fine.…
user19983
  • 50
  • 5
0
votes
1 answer

OnMouseDown not working for GUITexture

I have spent the last hour trying to find out how to make it so if my GUITexture is clicked, something will happen. I am using UnityScript, and I thought this should work, but it doesn't. This script is applied to the GUITexture game object.…
0
votes
1 answer

How to pause parts of a game in Unity

I have a pause menu that I built in Unity3D, using sprites and colliders. I can't pause the game using something like this: if(gameObject == pauseButton) { Time.timeScale = 0; } because it pauses my pause menu too. I realize I should have…
LooMeenin
  • 818
  • 3
  • 17
  • 33
0
votes
1 answer

Unity GUITexture doesnt display correctly

so i am making a game for android but the display window no matter what ratio i choose from the list the GUI textures never show same size as my phone or tablet so making things very hard to work out correct sizes and positions etc is there anything…
user3546481
  • 107
  • 1
  • 12
0
votes
2 answers

Hide part of the GUITexture in Unity

I have a Health Bar in my Unity game and it's implemented as a GUITexture with gradient image from red to green. Now I can reduce it's width from max width to 0, but is still scaled gradient. public void UpdateHealthBar(int hitPoints) { …
Dmytro Zarezenko
  • 10,526
  • 11
  • 62
  • 104
-1
votes
1 answer

When I built my game in xcode all the gui textures/texts look different(unity3d)

I put all these GUI textures and texts and they look the way I want in the editor but when I ran it on my iphone from xcode it looks so different. All the GUI Textures and Texts are in different sizes and places. Why did that happen? Second…
Kevin Chen
  • 13
  • 1
  • 8