Answer by M.G. Production
Hey thunderseethe! I might be totally wrong, but I saw that the first script got a Texture2D variable and the other is a Texture var... Wich are not the same. Try changing Texture for Texture2D in the...
View ArticleAnswer by M.G. Production
Hi FlashX! I would do this instead: //Simply Drag and drop your Sound in this var **public** AudioClip mySound; void Start() { //Forget About looking in ressources... audio.PlayOneShot (mySound); } PS:...
View ArticleAnswer by M.G. Production
Hey ZXYNINE! If you have put the rigidBody component, the rocket could clearly react to gravity... Are you only rotating the object or you are moving it to? What do you mean by "tiping"? The Rocket...
View ArticleAnswer by M.G. Production
Hi Gamershaze! You should check this: http://answers.unity3d.com/questions/183365/c-script-for-unity-camera-detect-difference-betwee.html?sort=oldest and if you are a lazy boy (like me :D)...
View ArticleAnswer by M.G. Production
Hi Noah1! About the textures I can't really help you... But to detect the size of any display, use: Screen.width and Screen.height. Don't forget they are "read only" and they will tell you the absolute...
View ArticleAnswer by M.G. Production
Hi ayks! You should read about Vector3.MoveTowards and transform.LookAt... Actually, this is the first time I see a moving system using rigidbody.MovePosition... When you are blocked, you should try...
View ArticleAnswer by M.G. Production
Hi looMeenin! I guess you should... Each time you are asking to find an object, you are actually searching it in the scene. So when you try to find an "inexistent" object, it will remains null... This...
View ArticleAnswer by M.G. Production
Hi karthees... I had the same problem :( you might need to find another way... http://answers.unity3d.com/questions/9661/how-do-i-set-a-parent-of-a-prefab-at-runtime-c.html Math
View ArticleAnswer by M.G. Production
Hi deeds0l! Hmmmmmm... You don't seem to want to set the Transform.Position of an GameObject, but a RectTransform Component... It's quite different... Try replacing Vector3.zero with "new...
View ArticleAnswer by M.G. Production
You should play with **Arrays**! Arrays are "Tables" that contents severals and different gameobjects or any other var. So, let's say this: **public GameObject[] hazard;** By adding "[]" you simply...
View ArticleAnswer by M.G. Production
Hi Edyvargas! **First: ** I really think you should create individuals animations for what you are trying to do here. When this will be done, set your Running propellers animation to Clampforever mode...
View ArticleAnswer by M.G. Production
Hey taxvi! Thanks showing interest in helping me, I **really** appreciate! But I think found the problem! I created a prefab with my controller in my assets folder and I think my script looked for it...
View ArticleAnswer by M.G. Production
Hi gonzalo rivero! theCar.transform.position will give you a Vector3 variable (Vector3 are 3 floats stored in a single var. Ex (x,y,z)) theCar.transform.eulerAngles will give you another Vector3...
View ArticleAnswer by M.G. Production
Hi JonWag! Create a square in an image editor and export it in png/jpeg (size doesn't really matter). Click on your particle system, in the inspector, go in the "Particle System" tab and then the...
View ArticleAnswer by M.G. Production
Hi elpuerco63! Perhaps you could do so: **this.DontDestroyOnLoad()** (you could change "this" with gameObject or whatever you want! "This" refers to the actual script) (Read about it:...
View ArticleAnswer by M.G. Production
Hi .black! Try this! Store the parent in another **Transform** variable! public Transform daVodaParent; public Rigidbody daVoda; void Start() { //You don't need to set daVoda to null!! Already the...
View ArticleAnswer by M.G. Production
Hi DarkSlash! When you say move to "0,-2,0", you set absolute values wich are relative to the scene "grid". In your case, you must make it relative to the object! **So There it is in C#:**...
View ArticleAnswer by M.G. Production
Hi mazket! Are you trying to acces a **Script Component** named "Button" or an **GameObject**? **If Button is an object:** using UnityEngine; using System.Collections; public class Cooldown :...
View ArticleAnswer by M.G. Production
**I formatted your code, and there is nothing here about Jumping :S** var walkSpeed: float = 7; // regular speed var crchSpeed: float = 3; // crouching speed var runSpeed: float = 20; // run speed...
View ArticleAnswer by M.G. Production
So here it is vultt3rim! There is plenty of way to do it, but now I'll show you mine! I made it simple with bunch of comments to see what's actually going on! So this C# system will instantly work and...
View Article