Bonjour, j'ai l'erreur : "Assets/deplacement.js(13,24): UCE0001: ';'...
Voici le script: function Start () { } function Update () { Vector3 move = new Vector3(); if(Input.GetKey(KeyCode.LeftArrow)) move.x -= 0.1f; if(Input.GetKey(KeyCode.RightArrow)) move.x += 0.1f;...
View ArticlePlay animation on mouse click
I want a C# or JS code to play my animation when I click left mouse button!
View ArticleShader was doing good suddenly shows this error pls help
hello unity community this is a dissolve shader it was going good and working fine 100% in my game suddenly shows this error, which missed up my whole game project so pls help me in this code thanks...
View ArticleMonodevelop Autocomplete for Javascropt
This has been asked many times, I know. I searched through all the related topics. But none of the steps suggested resolved the issue. and most are at least a year or more old and several versions old....
View ArticleCan a class array contain subclass items?
I have one class named "Vessel". I have other 2 classes named "Ferry" & "Cargo" that extend the class "Vessel". I need to make a 4th class that has the attribute "schedule", which is an array...
View ArticleUnity is not building Solution Project For Unityscript
Hello everyone, I upgraded to Unity 2017.1.0f3 but it not builds a unityscript project for MonoDevelop or VS. So i cant edit or use it.When i select it in any js in project tab,it says "No...
View ArticleObject does not support slicing (Adventurer Character asset)
So I have multiple errors across multiple lines of this and similar: var currentNormalizedTime : float = adventurer.animation[currentAnimationName].normalizedTime -...
View ArticleWebGL: Interacting with browser scripting unable to call java script method...
Hello, I want to to interact with javascript from c#. For this I was following the below link: https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html When I am trying to call any...
View ArticleI need help making a ball accelerate
**So this is my code for a 3D game I'm working on where you are a ball rolling left and right and u jump and stuff. My problem is I do not like having the speed be the same, because it just bothers me...
View ArticleList of enums from another Scipt
I have one script where I declared the enum, and another where I declare a list of enums, however I get 'does not denote a valid type' error.` Script where I declare enum: enum direction {NORTH, SOUTH,...
View ArticleCannot convert 'String' to 'float'. Making a stop watch
Hi all i have problem as it displays me this Cannot convert 'String' to 'float'. Im trying to make a timer, when i add 30 seconds it will add 30 to float, but have it in format so its minutes and...
View Articlehow to only allow a script to run once every X amount of given time unity
I'm new to unity and coding in general here is my code so far. I'm not sure whats wrong if i could get some help that would be great. i'm trying to make a 2d strategy game where I can move once within...
View ArticleUnassignedReferenceException: The variable Target of AI has not been assigned...
I was just trying to make a cube or a capsule to follow me, as a zombie game. I assigned the AI script to the cube and capsule then I made a prefab of the cube and capsule. And I cannot assign the...
View ArticleJavascript and start Assets not available
I am using the Unity beta (2017.2.0b11) and whenever I try to create a new project, the assets like environment, characters, etc. are not available. When I opened up the new project, in the assets tab...
View ArticleHide GameObject and children
Hi ! I can't fix the different issues i encounter when i try to hide a GameObject... I can't use the SetActive function because of the situation. Can someone help me using the renderer.enabled method ?...
View ArticlePlayer sticks to ground occasionally after trying to jump
Hello all! I've been trying to make it so that my Rigidbody player jump correctly while still keeping all of the correct checks in place. My issue is that occasionally the player will get stuck when...
View ArticleHow to make app that look through what you input and selects specific words
Hi all, I have question, I want to make simple app yet i think a bit complex All i want is to have a text box , where you can type or paste some words and it will select words specific words from what...
View ArticleHow To Detect MouseClick Using Raycast Java Script
Hello so basically I'm making this game, with several objects being clickable. I want it so that the script doesn't need to be under every single game object, which function Mouse Clicked needs. I...
View ArticleRaycast Not Casting Java Script
var FirstPlot: GameObject; if ( Input.GetMouseButtonDown (0)){ var hit: RaycastHit; var ray: Ray = Camera.main.ScreenPointToRay(Input.mousePosition); if (Physics.Raycast(ray, hit)) {...
View ArticleJDK home issue (Mac to android)
Hello! I've been working on this for 3-4 days and no luck. Please help if you have any ideas. I'm installed the Java to the library with echo $JAVA_Home and in unity I route the JDK location to the...
View Article