Changing view based on device
Hi Unitarians! I've got a pretty classic problem for app makers, but its not often seen by game developers. My issue is to detect and respond to if the user is using a tablet or a phone for their...
View ArticleRotation using touch input
OK so i have found a code here on the community that allows me to rotate an object using touch but i have a couple problems one it rotates the opposite direction from your swipe and two i would like to...
View Articlehas anyone seen this javascript error?
here is the error i am receiving. Actor::updateMassFromShapes: Compute mesh inertia tensor failed for one of the actor's mesh shapes! Please change mesh geometry or supply a tensor manually!...
View ArticleI tried to convert my Dev Console to C# from JS
**I tried to convert my Dev Console to C# from JS... But i don't know that much of C#.. So i got alot of bugs. Please can someone help me?** // Converted from UnityScript to C# at...
View ArticleMathAbs for input.acceleration only inputs for 1 side
So i Have a code that makes my tank cannon moves with acceleration input x and y using MathAbs when i Test my game my code only works when i move right and up but left and down is always idle I made...
View ArticleTrack debug - Object dissapears after collision
Hello. First, sorry for language. Second - the problem. I have two object, player and enemy. The problem is when enemy touch a player object, or bullet object, it's suddenly dissapear. But it must...
View ArticleSprites look blurry on larger computer screen.
Hello, Working on a hockey game in Unity and I tried testing it on a different computer, so I compiled a build and threw it on dropbox, the computer I've been making it on is a 21.5" iMac, the computer...
View ArticleI need help Enabling/Disabling Script (JavaScript)
I need to disable/enable the default First Person Controller on my character. ![alt text][1] This is my script so far: #pragma strict public var TabState : int = 1; function Update () {...
View ArticleHow to enable a script in Play-Mode?
Hey there. First of all I'm quite a noob, so please be patient with me.... I'm currrently working on a jump game quite similiar to Doodle Jump. My problem is that I want to enable a specific script as...
View ArticleSet Animator IK Rotation Axis
I want to set the blue sphere's position : ![alt text][1] Here's my IK Arms Script : #pragma strict var animator : Animator; var ikActive : boolean; var rightHand : Transform; var leftHand : Transform;...
View ArticleEdit mouse look script to not be effected by rotation
Hello! Currently, I have found and am using a smooth, javascript MouseLook script which I will show below. Right now, the problem I am facing is trying to get the script to act normally no matter what...
View ArticleModify "Humanoid" Animations
I've created my arms with [FPS mesh tool][1] ![img1][2] Look at the hierarchy, there's still the normal body bones. I also created a IKArms script to handle correctly my weapon sway effect (love it)...
View Articlejava script to c#
hi , i never learned/used java , i have a script ( i found it on internet ) is in the java script form ! but i need that in c# to add some more scripting to it ! the java script is working perfectly...
View ArticleHaving Multiple Controllable FPS Units Selected From A Singular RTS Mode?
Hello This is a problem thats been wracking my head for a month now due to how hard it is for my head to wrap around the underlying concepts. My Game is set up in a way where I can control units via an...
View ArticleUsing PlayerPrefs to transfer variables from Javascript to C#
Don't worry, I am not calling it on update. Anyways, I have a Javascript code which sets a string in PlayerPrefs. Then I have a C# script (has to be C# as its a multiplayer section of the game) and I...
View ArticleVoid can not be used with bool?
I am making a script and the function I am using is function Update() [JavaScript] and it keeps coming up with Void cannot be used with Bool. I am not using void so please help. Section of my code that...
View ArticleExplode Mesh when clicked on
I'm looking for some help. I want my GameObject to explode when it's clicked on. I don't mean like a fiery explosion but one like this: https://www.youtube.com/watch?v=38eEZyNfd3A If there's a tutorial...
View ArticleDo we still need to avoid foreach loops?
While searching for a solution to a bug in my game I ran across [this page](http://makegamessa.com/discussion/1493/it-s-official-foreach-is-bad-in-unity) saying that `foreach` loops are buggy and...
View ArticleObject not following mouse
So I have a script going that sorta half works as intended. The way I need it to work is the object will follow the mouse around as long as the left mouse button is held, however as I have it, the...
View Article