Android Plugin Help
Hello Im making an App for android phones and i want if i push a GUI button, that it will start an other application on my phone (like Calculator ,Whatsapp, Sms). But i have a few problems and i've...
View ArticleTrouble with SetActive
Hi, I am making a game, there is a mechanic where you click a button and another button appears. When you click Button1 it disappears and button2 appears, when you click button2, button1 appears and...
View ArticleWhats wrongs with my code?
Hi, cant seem to figure out whats wrong with this code #pragma strict function Start () { Debug.Log("The game has started"); var gameStart : boolean = true; } function Update () { if(gameStart ===...
View ArticleCan I use DateTime without the overhead of importing the entire of "System"
I use DateTime in my project, so have had to add this at the top of my js script: import System; But this adds quite a lot to the filesize of the project. Is there a way I can *only* import the...
View ArticleStrange error when trying to use var XYZ = WWW(ABC); This site requires...
`This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support
View ArticleIs there eval() for C#?
I'm making a calculator and I use UnityScript already but I'm just curious if eval() is in C# I think this would also help others that want to use eval() If there is a way around every scenario that...
View ArticleMy while loop seems to crash unity
HI, My code seems to crash unity I suspect its the while loop not being able to end any suggestions. #pragma strict var changeCircleColor : int = 1; var circleColor : String; var gameState : String;...
View ArticleClick on object show menu, but also move it.
**Hi. I just want to make something like a script, a complex script i would say. I use the script from unity to move an object when it's clicked, i think it's named DragRigidBody, something like that....
View ArticleAdmob with javascript
Hi i have a game in unity 3d developped by Javascript and i wont to make interstitial(admob) in a specific action like when the player was die when i download package admob i found using c# but i need...
View Articleyield WaitForseconds not working?
HI, my code below doesn't seem to wait for 5 seconds before executing the code var gameState : String; var circleColor : int; function Start () { Debug.Log("The game has started"); gameState = "play";...
View ArticleHelp with variables
I want to add three variables together, but I am having trouble. Like this: "variable12 = variable1 + variable2;" But, of course, JS doens't work like that and I should've used C#. Please, I need this...
View ArticleSimple math, can not figure out why I am getting a different answer.
Developing a mobile game and needed pixel perfect sprites. The tablet I'm using to test with is 1920x1200. I can't figure out why I get a different answer on paper than what the script I made below is...
View ArticleMove by camera look without rotate character
Like this : ![link text][1] Help me please :) [1]: http://i.imgur.com/DBrYDYB.gif
View ArticleMove character along camera view without rotate the player
Like this : ![link text][1] Help me please :) [1]: http://i.imgur.com/DBrYDYB.gif
View ArticleDoes a model has to have specific blending animation in order to switch...
Ok so I used ThirdPersonController script to control the basic Idle, Walk, Run and Jumping animations of my [Samurai][1]. It is an older model made for older versions of Unity so scripting is just the...
View ArticleMesh scaling along velocity.y and curve
Hello, i'm creating a 3rd person shooter, for the beginning, i've created movement, pretty simple. BUT for starting with realistic movement i NEED to create a "Mesh scaling along velocity.y"! Picture:...
View Articlegetting the lowest point of a sine wave in javascript
Hi! you'll see, i've got this script from the wiki in javascript: waveslice = 0.0; if (Mathf.Abs(inputX) == 0 && Mathf.Abs(inputY) == 0) { timer = 0.0; } else { waveslice = Mathf.Sin(timer);...
View ArticleUnityScript compiler taking a long time
I've recently updated from Unity 3.5 to Unity 5, and my 200 scripts (about 2mb) take up to a minute to compile, each time I try and make a change in MonoDevelop. In Unity 3.5, it only took about 5...
View ArticleMoving an object and returning to location based on collider
I am trying to take an object and move it when my character gets close to it, but return it to its original position when I move away. I re-purposed a script I found for making an object rotate when...
View ArticleShow in text certain variables
I have all this variables #pragma strict public var pasta : int; public var verdura : int; public var ensaladamenu : int; public var verde : int; public var sopa : int; public var crema : int; public...
View Article