Selecting gameobjects in game,
Hey! Need help with a script, the thing is that i want to be able to click a gameobject, in game and i want it to get highlighted, and set som kind of variable. Final result is that i can click a...
View ArticleStatic variable and Materials
Hi there! im trying to create smt like lego game. Now im trying to create system, thats allow player to choose between several (actually 66) materials for blocks. here is the code: (java)var...
View ArticleExamples for realtime moving or hiding of props?
Hi everyone,I'm new to Unity and even more new to programming in general. I'm hoping to find good tutorials or example files specifically for the following situation.I've created an interior of an...
View ArticleHow can i choose object with mouse ?
OnMouseDown() { obj = this.gameObject; } with this code i can choose objects with mouse but if i do this i should write different scripts for different objects. This mean there ll be too many script...
View Article[C#] How do I randomly pick between 3 specific numbers?
Is it possible to CHOOSE a random number between 3 numbers I have set? I want to randomly choose between -3, 0, 3 but only those exact three numbers. I want my enemies to randomly spawn in one of the...
View ArticleRamdomly select a variable
I am making a game which involves combat, and i wanted to make my enemy wander around. The best option that i have found was to store some empty gameobjects on some variables and make my enemy choose...
View ArticleRandom selection
Hey guys, i know that this question had already been asked, but i didn't understood what you are supposed to do and what i've tried didn't work really well. I would like to know how do you create a...
View ArticleWays to evaluate a programming technique to solve a problem? Ex: GameObject...
Hello there, I am a beginner in programming with C# and Unity, so sorry in advance if it is weird silly talk :). I am working on my first project, and i am trying to figure out how to evaluate which...
View ArticleWhich VR platform is easy to work with, Cardboard or Gear VR?
I am going to develop VR Game as my FYP, Just wanna know is it easy to develop for Cardboard, Or easy for Gear VR? Also with bluetooth controller or Gear VR Touchpad input :) Thanks
View ArticleHow can i choose the UV than i want to use with each Texture of a material ?
i have a huge building with a lightmapped/bumped-specular material. I got 2 UV. UV1 (tilling) is for the diffuse. UV2 (unwrap) is for the lightmap. Unity automatically affect bumpmap to UV1, but i want...
View ArticleSelecting gameobjects in game,
Hey! Need help with a script, the thing is that i want to be able to click a gameobject, in game and i want it to get highlighted, and set som kind of variable. Final result is that i can click a...
View ArticleStatic variable and Materials
Hi there! im trying to create smt like lego game. Now im trying to create system, thats allow player to choose between several (actually 66) materials for blocks. here is the code: (java)var...
View ArticleExamples for realtime moving or hiding of props?
Hi everyone,I'm new to Unity and even more new to programming in general. I'm hoping to find good tutorials or example files specifically for the following situation.I've created an interior of an...
View Article2 audio sources on a game object, how use script to instruct one to play?
If I have an empty game object with two audio sources, each with a unique audio clip. How, in script, do I pick one from the other? Let's say one audio source has a audio clip called jump.mp3 and the...
View Articlechoose random waypoint
http://screencast.com/t/BFgPLx3jJcI started with the fps tutorial and am using the script as a basic. What i want is that the AI robot chooses a random corridore. So 1 of the two waypoints. I'am...
View ArticleMy monster only choose one Target
Hi, I have been using as base, script monsters made by Unity, but now I have a problem, I have a couple of characters on the Game, so it have became a problem for my monsters, they don't know how to...
View ArticleUnity 3.3 vs Unity 3.4
I'm brand new to unity and I've done some research on it. I've noticed that some people are saying version 3.4 has some bugs and issues. So should I get the more stable version 3.3 or the more up to...
View Articleis there a way to change the public inspector details at runtime
im curious if this can be done public bool useStatic; public GameObject[] staticOjects; public GameObject[] nonStaticObjects; so that if useStatic = true; , then only staticOjects would show in the...
View ArticleLeft 4 Dead-style Spawnpoints?
Hi everyone. I need help with making a game where one person has to get to the other side of the map, and the other person tries to stop him. The person trying to stop him can choose from physical...
View ArticleHow to Choose a character.characters before game start
How to Choose a character. before game start I have 10 characters I want to Choose a character. the character on GuiTexture , Then Choose a character. the map for start game What should I do? What I...
View Article