Quantcast
Browsing all 98 articles
Browse latest View live

Answer by shriya

hi Use below mentioned code using UnityEngine; using System.Collections; public class SCBlueButton : MonoBehaviour { public void ModeSelect(){ StartCoroutine("Wait"); } IEnumerator Wait() { yield...

View Article


Answer by shriya

Hi, Follow the below mentioned link http://www.raywenderlich.com/79031/unity-new-gui-tutorial-part-2 It will help you understanding

View Article


Answer by shriya

hi David, the problem is private SpriteRenderer spriteRenderer; In this you are assigning one game object and the sprite change is also occuring on the same object. For finding all the objects either...

View Article

Answer by shriya

Hi Problem is you are comparing two different things. eg : Vector3(0,50,0) cannot be compared to 10.0f but you can definitely compare 5 >=10 because the values are of same type. if you want to...

View Article

Answer by shriya

Hi, I have attached the script.Initially your button should be inactive in hierarchy. Now on clicking mouse it will get active on screen. `using using UnityEngine; using UnityEngine.UI; using...

View Article


Answer by shriya

HI, In the method On CollisionEnter method do the following code public void OnCollisionEnter(Collision collision) { StartCoroutine("PauseGame"); } Your character should have rigidbody and a collider...

View Article

Answer by shriya

![alt text][1]Hii, Please change settings as per image shared.Your problem might get solved .![alt text][2] [1]: /storage/temp/51079-screen-shot-2015-07-27-at-54155-pm.png [2]:...

View Article

Answer by shriya

Hi, This might help :) var FirstPerson: GameObject; var tempTransformroattion_y:float; var jalousie : GameObject; function Start () { tempTransformroattion_y = FirstPerson.transform.rotation.y;...

View Article


Answer by shriya

Hi, Check this link. http://docs.unity3d.com/ScriptReference/ForceMode.html

View Article


Answer by shriya

HI, Try this function Update() { if(Input.GetKeyDown (KeyCode.E)) { transform.Translate(Vector3.forward * Time.deltaTime*50); // transform.position += Vector3.forward * 20 * Time.deltaTime; }...

View Article

Answer by shriya

You have assigned x y z value equal to 0 and you have not applied any change to it. In Update you are Continuously passing (0,0,0). Your code works but since the value doesnot change ,you dont see any...

View Article

Answer by shriya

Hi NickZack, I guess you are new to unity. Issues in your Script: 1)Vector2.left does not exist .For this you should use (-Vector2.right). 2) In your Update function which runs continuously , you are...

View Article

Answer by shriya

HI Suzit, If I have understood correctly then the solution is mentioned below. Keep your Textures in Resources Folder and name your texture as per alphabet it contains (see attachment). This script is...

View Article


Answer by shriya

Hi, You have bluelight.SetActive(true) in both whatever the value of boolean is, it doesnot matter. Your blue light will stay active. And the bool never get true because you are not making it true at...

View Article

Answer by shriya

Here you go . Its using swiping with mouse and sweep test & also iTween. iTween script is attached. Place it in your Standard Assets and you are good to go.[link text][1] using UnityEngine; using...

View Article


Answer by shriya

Hi aan_comel, You just need static counter. In previous answer mistake is at line where we are setting player prefs on button click using counter it should be through fetching playerprefs but as you...

View Article

Answer by shriya

Rigidbody constraints are managed through scripts as mentioned below. rigidbody.constraints = RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationZ; A list of all the defined...

View Article


Answer by shriya

Hi, this error shows your Scenemangement script does not exist in your project and you are using its reference in some script. If script exists, Make sure scenemangement is also in c# and not...

View Article

Answer by shriya

Attach a rigidbody to the cube. Hope it helps.

View Article

Answer by shriya

Hello, Make sure your script is attached to the Main Camera. Also your camera property clear flag should be solid color![alt text][1] [1]: /storage/temp/75828-screen-shot-2016-08-10-at-53536-pm.png...

View Article
Browsing all 98 articles
Browse latest View live