How to make object transparent dynamically
Hi, I want to make several objects transparent according to the position to the main camera. Any help please?
View ArticleDetermining Texture Memory Usage
I'm currently trying to port a game to iOS and running into memory issues. I know that the game is pretty liberal with memory usage, and I'd like to track down the biggest offenders so I can clean them...
View Articleproblems with my terrain in unity 3D
my terrain sometimes is red or blue and i can't see what i'm doing in there and i watched some videos and the terrain is white/grey, can anyone help me?
View ArticleEnter/Exit vehicle
im a complete noob and i found a script (below) var car : Transform; var player : Transform; var exitPoint : Transform; var doorTriggerLeft : Transform; var PlayerCamera : Camera; var CarCamera :...
View ArticleChanging lighting in-editor pre/post build
Hi all, I've tried searching this one, but struggling to find anything relevant. When I start my editor up, the Scene view looks like it does when the game is run. Fine. However, after I build the...
View ArticleImported Models become puffy
I'm new to Unity, and for an early project, I am making a simple scene with some basic Octahedrons that I'm looking to build my world with (Octahedrons tessellate, so it ends up looking fairly...
View ArticleBest way to achieve Sonic style physics?
So I'm making a 2.5D Sonic game where Sonic is just an invisible rigidbody ball with a Sonic model only being shown. The way he moves is perfect except for his behaviour on uneven terrain. What's the...
View ArticleHow to make IslandDemo water more reflective
I downloaded the Island demo project and ran it in Unity 4. I fixed the compiler errors according to a previous answer (http://answers.unity3d.com/questions/200734/compiler-error.html). The water looks...
View ArticleCan I use a variable in another variable name?
I have a quick javascript question. I'd like to use a variable as part of another variable name. I have 4 players. And a variable, `playerSelected = 1` (2, 3 or 4). I also have variables such as:...
View ArticleMouseY always enabled?
I have a First Person Controller and a Mouse Look Script is attached. Now I want to be able to disable "looking arround". But if I disable the Script, MouseY still works. Also if I remove the Script....
View ArticleAndroid SD card problem
I've finished an android game and I'm just doing the final tests on my phone, but I noticed that my phone was low on space. When I tried to move it to my phones SD card, it didn't have the option for...
View ArticleJoint for attaching a trailer to truck
Hello! Help me please. I'm using edy's vehicle's physics for a trucking game. But I can't attach the trailer to my truck. Who can help me with an advice? Please watch follow movie. There i will show...
View ArticleHow to get a terrain's maximum height
seems simple, but I can't find anything that returns me the terrain's maximum height. not in http://docs.unity3d.com/Documentation/ScriptReference/Terrain.html, nor in...
View ArticleActor must be (non-kinematic) dynamic error
If I have an Object with an Animator and a kinematic Rigid Body attached, I get the following error in the console Actor::setLinearVelocity: Actor must be (non-kinematic) dynamic error and my root...
View ArticleHow to make RayCast Detect a Tag?
var hit : RaycastHit; function Update() { if (Physics.Raycast (transform.position, transform.forward, hit, 10)) && hit.collider.gameObject.CompareTag("Player") } { print ("detected!"); else...
View ArticleWhy is ProjectSettings.asset unexpectedly modified?
We are using Unity 4 with Git for version control. We have noticed that sometimes when we save a scene, ProjectSettings/ProjectSettings.asset is modified unexpectedly. We are not actually changing any...
View ArticleNetworking CharacterController Help.
Hello guys, when I make my own character controller on my network, I can walk through things, here is the controller : function Update(){ if(Input.GetKey("up")){ transform.Translate(Vector3.forward *...
View ArticleHow to add aceleration to a sphere by pushing a key?
Hi everyone, I'm trying to make a javascript that move a ball by using aceleration when I push a key(not for mobile devices). Could anyone tell me how to do it or just give me the clue to think it by...
View ArticlePython and Unity 3d
Hi folks, i am new here. I am an enthusiast python programmer of age 16. This year, in my school, we will start learning about game programming. The languages that we will learn will be: C# and Java. I...
View ArticleGot A error and dont know how to fix it
Okay so I am kinda new to java. i started a main menu script and some error came up and i do not know how to fix it. thanks i will post the code but its long and if you want you can have it. that is if...
View Article