the terrain rises and lowers automatically
how can I do that in certain parts of the land, the land rises and lowers automatically ?
View ArticleHow do you find a component type attached to a game object in the project view?
I'd like to find all the Game Objects in my project with a particle system attached to it. How do I use the search tool in the project view to show me all the game objects with this type of component...
View ArticleHow to make an image pop up?
I want to make Javascript so that in Credits GUI an image pops up after 10 seconds. So 10 seconds the text scrolls and then script takes place: an image pops up suddenly. This is my code so far but i...
View ArticleVector 3 will not work..
void Update () { if (Input.GetKeyDown("q")) { GameObject wepon = Instantiate(Gun) as GameObject; wepon.transform.parent = player.transform; wepon.transform.position = new Vector3(0.37F, -0.3F, 0.5F);...
View ArticleCamera switching : C# onTriggerEnter not working
Hello. I'm actually making a game in which there are many cameras, and the switch between them occurs when the player enters a specific trigger. In the actual level I'm working on, I have 9 different...
View ArticleAdding multiple textures to a procedurally generated terrain mesh?
![my terrain curently][1] I'm trying to make a sort of improved minecraft procedurally generated terrain and thats coming along quite well but I want to, just like in minecraft have multiple materials...
View ArticleGet a custom button touch recognized by the input manager?
Hi, I've got a custom GUI Texture button which when pressed it displays a string on the log, what Im trying to do is to get it recognized on the Input Manager as an actual key. On the input manager I...
View ArticleHow to add a texture to a Terrain using script
Hello! I am trying to generate procedural terrain via a script using 'TerrainToolkit' and have run into an issue when trying to texture my terrains... Here is my code so far void Update () {...
View ArticlePerlin Noise throw me an NullReferenceException on CalcNoise function
I'm starting now with Perlin Noise, and I have made the following code with that [tutorial][1]. using UnityEngine; using System.Collections; public class WorldGen : MonoBehaviour { public Terrain...
View ArticleAdding varibales from other scripts
I have three scripts: Variable: static var score = 0; Present 1: var score= Variables.score; function OnTriggerEnter () { score = score+1; } and win: var score= Variables.score; function Update(){...
View ArticleHow to turn object into scrap when hit hard?
I alredy fixed the falling skyscraper problem it falls very neat but i want to make it so that when the building hits the ground it appears alot of smoke,and turns itself into scrap.like destroying the...
View ArticleChange hieght on smooth follow OnTriggerEnter
I am trying to make my script tell the smooth follow script to change the height to 0.5 when I enter the trigger. But I keep getting this error when I hit the trigger "NullReferenceException: Object...
View ArticleCreate an obstacles inside the map
Hai, i already create a map like this: ![alt text][1] [1]: /storage/temp/18336-map.png Now i want to draw a obstacles within those grids, how do i do that? Right now i only be able to draw a obstacles...
View ArticleDetermining how long a key has been held.
Hello I am trying to teach myself C# and in a part of my code I am trying to determine how long a key has been held so I can play a different animation, so for example, you have been walking for four...
View ArticleLoop a 'Start' function?
Hi, here's the code: ---------- #pragma strict var animator : Animator; var minWait = 5.0; var maxWait = 20.0; function Start () { animator = GetComponent("Animator"); yield...
View ArticleBaffling Model Behavior
Perhaps this is a Blender question, and if so, I'll happily delete it. But since occurring in Unity, I figured I'd ask it here. I have an article of clothing (just think of it as a 3d model, since I...
View ArticleHow to get child object facing direction
Hi guys, I have a quad attached to a parent object which can rotate in all three axes. And this is controlled by player. What I want to know is when the parent object stops rotating, which direction...
View ArticleIs there like a...... setcomponent?
I would like to kow if there is a way to like set a component. Like....... A script that if I walk over it, it clones, gets a component and the clone goes into that component space. and also is there...
View Articlecamera follow problem-unity 4.3 2d
I made a simple camera follow script, no smooth, just positioning the camera to the player position. but every time the player and the camera moves at the same time the player shakes. I even tried not...
View Article