Tagged Questions
-1
votes
0answers
35 views
how to make a cube to change color by clicking a button in unity? [duplicate]
i used this below code to change the color of a cube if i pressed a button. but its not working.i have added this code to cube and in button i have attached this script and function. if i pressed the ...
-2
votes
1answer
105 views
C# syntax for “This button is interactable”?
What should be the C# syntax for the condition if (This Button is interactable)?
I have a script attached to the button, Which has to run only if the button is interactable.
Thank you in advance!
3
votes
3answers
3k views
In Unity, how do I make separate mute buttons for sound-effects and music?
I'd like to have a button to mute game sounds and another to stop the game music. How can I do this?
1
vote
1answer
406 views
What would cause my script generated buttons and text to show in Unity and not on my phone?
I am using Unity 5 and the built in GUI tools. My static GUI shows up just fine which makes me think it's not a text/font issue or some such. Again, it all looks good in the Unity editor when I hit ...
3
votes
1answer
637 views
NGUI Texture Background Font of Sprite
I am new to Game Development and using NGUI plugin free version. There are few sprite images in my game. I made them prefab and instantiated at runtime. then I created NGUI Texture and Made it ...
1
vote
1answer
2k views
Generating a particle effect on top of a GUIElement (Unity)
I am working in Unity on a 2D project which is using C#.
I have a number of guitextures which are hearts in order to create a sort of life meter. I would like when the player loses a heart for the ...
0
votes
1answer
555 views
Make GuiText responsive
I'm using C# code to make a responsive GuiText.
I was abel to make a responsive GuiTexture, but I'm struggling with doing the same for a GuiText.
Code for the responsive GuiTexture
using ...
0
votes
1answer
1k views
Unity3D GUILayout Window Wont Show Components
I am fairly new to Unity, but picking things up quick. This is actually one of the first problems I have come across that has me stumped.
I am trying to print a good amount of components onto my GUI ...