Walk animation wont play but idle will
Hi!, I am making a FPS game but my walk animation won't work, when i press W,A,S, or D, my gun just jerks heres my script(In javascript): function Update() { if (Input.GetKeyDown(KeyCode.W)) {...
View ArticleA code prob. (java)
Hey. So I've made a game menu, but when I get my mouse on one of the buttons it doesn't get red, like I wanted to. And it doesn't work when you click on it. I'm a newbie on unity so don't judge me pls,...
View ArticleHow to make third person camera were the player walks in the direction in...
When i start the game the camera is facing the player but then when I press the W key my player walks backwards and same goes for A,S,D they do the opposite. Don't know what I did wrong with the...
View ArticleCode does not execute move right after being in top left corner
This is my code for checking if the character in my game can move to the desired position without intersecting the wall boundaries. So it checks for every wall (which is stored in limits) in the room,...
View ArticleWhy is every single tutorial on Youtube (including Unity's own beginner...
I've been reading a lot on the topic of using C# or Javascript for Unity, and the majority of the answers revolved around *use whatever you're familiar with* and *a lot of people use Javascript*. It's...
View ArticleA Proper Way To Pause A Game
Sorry i am a Beginner at Unity GUI and Time Scripting Stuff I Want to Know How to **Properly Pause the game** in 3d I dont want to use Time.timescale stuff Because most of my Game is in FixedUpdate()...
View ArticleExecuting code at runtime
Is there a way to execute code at runtime? E.g. C# or javascript or Python code (or any other language for that matter) that user has inputted? **EDIT** I am talking about a standalone executable and...
View ArticleSpawning a list of objects with XML?
So I'm building a game for an old teacher to use as sort of teaching tool for one of his lessons. I've got most of the game down and ready to go with a few minor quality of life tweaks I'll be...
View ArticleAssets/Shot Script.js(17,21): BCE0023: No appropriate version of...
I have this problem : Assets/Shot Script.js(17,21): BCE0023: No appropriate version of 'UnityEngine.Object.Instantiate' for the argument list '(UnityEngine.Vector3, UnityEngine.Quaternion)' was found....
View ArticleArgumentException: Input Button Firel is not setup. To change the input...
I have this problem : ArgumentException: Input Button Firel is not setup. To change the input settings use: Edit -> Project Settings -> Input Shot Script.Update () (at Assets/Shot Script.js:11)...
View ArticleBCE0031: Language feature not implemented: Ambiguous(Void...
hey I'm pretty new to unity and javascript and all I want to do is apply force on its local y axis for a helicopter and I keep getting the same error over and over please help **error :...
View ArticleRealtime mesh deformation collisions in Unity 5
> [info]>> ***I am a total beginner of editing meshes via script***>> I would prefer JavaScript but c-sharp> will work too>> I use Unity 5>> My target platform is...
View ArticleHows to assign an objects children to its LOD component?
Hello, I have trees with 2 lod levels. The trees work with a parent object (LOD group attached). This parent has 2 children (different tree objects). Im trying to find a way for my small LOD_Set script...
View ArticleAssets/pauseMenue boutton menue.js(20,24): BCE0044: expecting ), found ';'.
I have a probleme : Assets/pauseMenue boutton menue.js(20,24): BCE0044: expecting ), found ';'. Assets/pauseMenue boutton menue.js(20,25): UCE0001: ';' expected. Insert a semicolon at the end....
View ArticleCollisions = Get colliding vertices
JS is required but C# will do too I need help to Get the vertices (or nearest vertices) of the collision and some explanation or some links to how to do it Basically I use this script but I found out...
View ArticleGet Vector3s in range
Hello guys, I want to make it simple for your and my sake I just want to know the ***technique*** of getting the Vector3s in range from an array of Vector3s I'd prefer Javascript but C# will work too...
View ArticleEditor Windows : Help required
***Hello UA Members,*** For your (and my) sake ill keep it simple I am creating a massive Custome Editor (Which i Will notify you on release) that needs Gizmos and Handles inside the editor window...
View ArticleHow do I get this Canvas to disappear?
Hey! So I've got a JS script that I want to use to make a canvas disappear and reappear when its parent is raycast at. Here is the script: #pragma strict function Update() { if...
View ArticleUnknown Identifier when trying to load a new scene with a script.
So, I recently began using Unity and I have been creating small projects, and now I want to add a main menu. I finished making it, got a script to load my 2nd scene (the game itself, from the main...
View ArticleCreate only one Instantiated Object
Okay guys - I can't figure this one out. I have a day night cycle going by the rotation of the directional light, and at night I need a fire particle system prefab I have to start up, and during the...
View Article