Okay so I've built my game to an Alpha state and when I try to build it I get...
I know I've asked a lot of questions here lately but I get this error when I try to build my game. Assets/Scripts/CoinPickup.js(11,13): BCE0005: Unknown identifier: 'UnityEditor'. My guess would be...
View ArticleI Cant seem to get a Object to detect A Mouse Click while using A First...
My Game Use's the first person Controller and I can't get to recognize a mouse Click. If i take the Cube out of my controller it works but if a add to to move with the controller i can't seem to get it...
View ArticleDouble Click problem in html5
I have a simple c# script that detects clicks, double clicks, and long presses. Everything works fine in Unity. BUT When I output to HTML5, double clicking makes things go crazy. I have an example:...
View ArticleHow can encode an image with Unity to be displayed in the website using...
I would to send images from Unity-webgl to Javascript to show them in the site without saving the images on the server. My idea is encoding images and then send them to Javascript, whichowould show...
View ArticleMenu Animation
Hi guys, I am trying to animate a UI menu and I'm having a little trouble with the script. I am trying to play the animation by pressing the space button, but I keep getting errors. Could someone...
View ArticleTurning an object by code over time in custom function
I have AI I want to turn a bit before taking a step in the new direction. I don't want to use update function, is this possible? The AI needs to turn over time.
View ArticleHow to loop folders in directory
i want to get the names of the folders in a local directory Folders/AllFolders/ in js
View ArticleAssets/Scripts/RespawnMenu.js(8,20): BCE0018: The name 'MouseLook' does not...
Help! I get an error, Assets/Scripts/RespawnMenu.js(8,20): BCE0018: The name 'MouseLook' does not denote a valid type ('not found'). Did you mean 'UnityStandardAssets.Characters.FirstPerson.MouseLook'?...
View ArticleNoob question: easing slidingdoor animation
I'm completely new to unity, been working in it for 10 weeks now. I want to make a sliding door, but I don't know how. I've got a script that makes it move instantly, is it possible to ad an easing...
View ArticleHow would I load a new scene when a score that is scored in a string is reached?
This is a code that I am working on for a space shooter. Part of it works and my score does increase by 7 every second but my script does not load my scene when the number reaches 1000. I have made...
View ArticleUnity if (qualitylevel...)?
I want to make a script that turn on and off camera effects and objects depending on the quality level, but how do I make an if statement for quality settings? I tried:...
View ArticleHow do I assign Leap Motion gestures to functions on Javascript?
I have been searching for a while for javascripts related to Leap Motion. Most of what I have found were fragments. My whole project is in java and I do not want to change. Starting with the basic:...
View ArticleHow do change UI.button onclick variables via script?(JS)
How do change UI.button onclick variables via script? ![alt text][1] [1]: /storage/temp/57930-123.png
View ArticleGUI button doesn't resize when I change the int without an extra step?
I'm working through the *Unity 4.X Game Development by Example* from Packt Pub. The code from the book is below. This just makes a little title screen with a play button. I wanted to change the button...
View ArticleChanging the size of a ball, problems with transform.localScale
I'm trying to make it so the player object, a ball, decreases in size as a timer goes down. It's supposed to be like a snowball melting. I've made a variable to represent the ball's size so it can...
View ArticleLocal Multiplayer On Pc?
Hello Unity3D i have a question about Local Multiplayer?How would i Go on of making the Local multiplayer on 1 single pc?For Example.I am making a 4 player split screen fighting game,and i need to know...
View ArticleNullReferenceException enemyAI.Update () (at Assets/enemyAI.js:14)...
im creating a game and when i wrote the scriot for my enemy AI this error keeps poping up and im not sure whats wrong with it. Also this error pops up too: Assets/enemyAI.js(14,30): BCE0020: An...
View ArticleMy UI Score Is Not Working?
Okay, when it comes to programming, I am a noob. I usually use Javascript even though I don't know jack squat about it, but I've sort of learnt how it works with the if statements and variables and...
View ArticleLooking at an Object (y-axis included)
Hello there :) I want to check if my FPS is looking at a certain object. I've used Raycasting and it works, BUT I can only rotate the ray on the x-axis, not the y-axis. How can I change that? Here's my...
View ArticleError BCE0051 with script JS
i am getting the following error Assets/Coin.js(10,10): BCE0051: Operator '+' cannot be used with a left hand side of type 'MenuShopSystem' and a right hand side of type 'int'. I got the variable from...
View Article