Quantcast
Channel: Answers by "shriya"
Browsing all 98 articles
Browse latest View live

Answer by shriya

hi, Actually you have kept the image type to be sliced but your source image is not sliced, Keep your image type to be simple .This image doesnot have a border issue will go. U can edit your sprite...

View Article



Answer by shriya

HI, You can try editing sprite you are using through sprite editor. For details refer the mentioned link and look for **9-Slice Scaling** : http://www.raywenderlich.com/78675/unity-new-gui-part-1 Hope...

View Article

Answer by shriya

Hi, Problem here is that you are passing **button style** to both handStyle and blankhandstyle which is why changing the background of one changes for all. You need to create two different custom...

View Article

Answer by shriya

Hi, You can adjust the position of line renderer to show it above other object. Keep line renderer's "z" more/ less as per your position of object.

View Article

Answer by shriya

HI,If you are working with new UI then in scripting you need to do following using UnityEngine.UI; //its a must to access new UI in script public class YourClass : MonoBehaviour { public Text...

View Article


Answer by shriya

Hi, I don't think you are doing anything wrong. Still try this: using UnityEngine.UI; public class yourClass : MonoBehaviour { public Text largeAlphabetHighlighter; // Pass this value from inspector.....

View Article

Answer by shriya

Hi staticVoidMan, If I understood correctly, your problem is that "Datasource_GO" gameObject is multiplying every time you switch scenes as script has Dont Destroy onLoad method.. For this you can...

View Article

Answer by shriya

HI, I don't find any need to keep your boolean public . Try with this: private static yourbool; and maintain everything through code. I hope it helps.

View Article


Answer by shriya

hi, I guess you are missing a library which is required to access new UI elements. using UnityEngine.UI; I hope it helps.

View Article


Answer by shriya

HI, Please change "**==**" to "**=**" UiTextBrains = ValueOfBrains.ToString();

View Article

Answer by shriya

Hi, tugle = GameObject.FindGameObjectWithTag("musicToggle") In this it is giving error" it cannot convert GameObject to Toggle" because you have taken **tugle to be toggle object** and assigning it a...

View Article

Answer by shriya

Hi, In the first script you have not called the method **MusicChange()**. Call it in Start of the first script. i hope it helps.

View Article

Answer by shriya

Check for any errors in the console. Rectify it and then this variable will appear in inspector

View Article


Answer by shriya

Problem with your script is Bool replace it with boolean var jump : boolean = false; and it will work. In Javascript its boolean and in c# its bool. Good Luck!

View Article

Answer by shriya

In C#, it is done this way Font abc= Resources.Load ("fontname",typeof( Font)) as Font; Hope this helps

View Article


Answer by shriya

Try the solution mentioned there> http://answers.unity3d.com/questions/861622/dontdestroyonload-but-script-being-excuted-multipl.html

View Article

Answer by shriya

![alt text][1]hi, To make your button scale with your canvas, you need to set it anchors. Make your anchors Stretch stretch . You will notice that all four anchors placed themselves at the corner of...

View Article


Answer by shriya

Sorry to trouble you guys.... I figured it out myelf. To save it I used PlayerPrefsX Firstly converted it to int array and then saved itinto PlayerPrefsx intArray = new int[check.Count] ;...

View Article

Answer by shriya

hi, I guess your problem is the check. You have said `if (Input.GetButtonDown ("TransformToSecond") && (currentEnergy == 100))` i.e run this code till the time current energy is 100 and just...

View Article

Answer by shriya

Hi, Got it working.Check below the scripts using UnityEngine; using System.Collections; public class ScoreperSec : MonoBehaviour { public int startingScore = 0; public int currentScore = 0; public...

View Article
Browsing all 98 articles
Browse latest View live


Latest Images