CG shader is treated as GLSL and doesn't compile
Hi, I need a shader to support vertex colors, so I followed this tutorial here: [http://en.wikibooks.org/wiki/Cg_Programming/Unity/Smooth_Specular_Highlights][1] and made the modifications so it showed...
View ArticleAn another problem - Tower Defense GUI
Sorry But I have an another problem in the same topic. I followed a tutorial on youtube which shows how to make a tower defense game in unity. But I stuck at the GUI part. This code is working with...
View Articlehow can I make an animation play on keypress but stop on release?
I have a model with an animator component and an animation controller. I want the animation to only play when I press right and left arrow keys. I have gotten it to play the animation but if I release...
View ArticleChanging the length of thruster
I am trying to design a thruster like Battle Star Galatica has on there game. I have the model of a cone shape behind my ship but what would be the best way to make the length of the flame change....
View ArticleJust before gameobject has been Destroyed --- Destroy (gameObject, lifeTime);
Hi, I am using this to destroy my gameobject after a certain time Destroy (gameObject, lifeTime); I want to call a method/ function just before it's destroyed is it possible to do it when using that...
View ArticleVolume detection.
Hey there, I'm trying to set up a simplistic system for detecting how much of an object is submerged in a volume, like water or something. What might be a good way to do this?
View ArticleHow can I determine the current locale, or at least the currency symbol?
I have tried multiple approaches - but they all return the wrong, or inadequate results. My test system is set to en-GB out of the box but everything behaves as if it is en-US in Unity (I am testing in...
View Article'Thread' not found in namespace 'System.Threading'
im trying to make code containing a Thread variable build for the Windows store, but i get this error "error CS0234: The type or namespace name 'Thread' does not exist in the namespace...
View ArticleHow to switch from normal to maximized screen (& vise versa) while I run my...
Simple enough, the title says it all. I just hit "Play" when I realized that I don't wanna be in maximized-screen mode, so I stop, un-highlight "maximize on play", and hit play again. That sounds...
View Articleimporting C/C++ function from DLL
Hi, I will explain what I want to do exactly and I'd like to know if I need Unity pro. What I read on [that page][1] let me think that yes but I want to be sure. I don't want to pay 100$ if it's not...
View ArticleMigrating Unity versions doesn't clear all flags
I migrated a project from Unity 4.1 to 4.2, and the first build I made in 4.2 had the UNITY_4_1 flag defined! The second build was fine. Also reproduced this with Unity 4.0.1. Is this a known bug?
View ArticleHow to null an instance of a class
Hi all, In the below example it seems the garbage collection doesn't delete the instance from memory, even after setting it to null. I know that is would be better to delete all references to that...
View ArticleDetect collisions without messages?
Hello. Anyone have a method to detect collisions without using messages functions? In other words, **do something like:** void Update() { this.Move(movement); if (rigidbody.enterCollision)...
View ArticleCollider incorrectly placed
Well, I'm having an issue where my mesh from the skeleton pack isn't working properly. If I place it so the mesh appears to have its feet on the ground, it falls through. Otherwise, it just floats...
View ArticleRagdolling not properly problem.
How do you get the ragdoll to instantiate at the same exact, form of the player/AI? My ragdoll is almost spawning at the desired position and rotation but its as if it gets pushed instantly onto the...
View Articleif (myNumber == 15 ) { number =1}; if == 14 number =2 etc.
hi guys I have a small problem if (myNumber 15 ) { number =1}; if (myNumber 14) { number =2}; if (myNumber 13) { number =3}; if (myNumber 12) { number =4}; if (myNumber 11) { number =5}; ...........
View Article1 script to trigger another script under same GameObject
Hi guys, I have a simple question that I cannot seem to figure out. I have a GameObject which is the main camera. Under this main camera I have a NGUI user interface with a couple of buttons. What I...
View ArticleTroubleshooting with BMX Physx
Hi guys, I wanted your opinion and some directions though about BMX physx similar to this video from GTA SanAndreas [Check Out the link][1] I tried to convert 4wheel physx to 2 wheels, but I need more...
View ArticleCircular Bar
Hi, I using AlphaCutoff shader to make my life bar circular. Its working half good - the texture disappears but it leaving black texture behind it. How can I change black to texture? Shader: Shader...
View ArticleError ; expected Insert a semicolon at the end even though i put one
so here is my problem after some coding i came up with a simple error "UCE0001: ';' expected. Insert a semicolon at the end." here is my script and the error is on 46,17. I clearly put a semicolon...
View Article