A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
I think its a known thing that gizmos don't rotate. There may have been a solution, but I forget. Google may dig something up.
You probably meant to say if(prefabs != null) or if(prefabs.Length > 1)
Unity now ships with VS, enough said.
Uninstall monodevelop, the first mistake you made was to install that abomination.
this should help : http://answers.unity3d.com/questions/630670/rotate-2d-sprite-towards-moving-direction.html
I would create an empty parent object and put the camera in it. Then in update, continuously position the parent at the player position + offset,...
I`m not familiar with iTween, but have used DoTween and as a guess I would say that you need to change the path type from catmullrom to linear.
//put this in a script on the chair
public void OnTriggerEnter(Collider col)
I also agree that you should not be calling LookAt in the start function, or rotating the obj for that matter. Its better to have your obj as a...
isn't it the audio CLIP that will be 3D or 2D and not the source?
So I`ve fallen into this trap many times :
projectile.transform.position = this.gameObject.transform.position;
public class MoveUVS : MonoBehaviour
float _updateDelay = 0.05f;
public Renderer Rend;...
Well now that's not entirely true since you can indeed also play aniMATIONS from your aniMATION component :)
So in your audioSource there is a toggle for "Loop", just click it ;)
But be sure to drag your audioclip into the source in the inspector....
Yes sorry, I was going to mention doing an overlap sphere if you had no list of object, and totally forgot to add it, my bad :)
public GameObject GetClosestObject()
float closest = 1000; //add your max range here
GameObject closestObject = null;
for (int i = 0; i <...
I read somewhere that it may have to do with having stuff in StandardAssets/Plugins and compile order of scripts, but really not sure. I too use...
Since Thomas posted the wrong link, I`ll post the correct one :P
Looks fine to me. I`ve done clumsier things :)
Maybe look at Mathf.atan2 ? http://docs.unity3d.com/ScriptReference/Mathf.Atan2.html