Questions tagged [unityscript]

DO NOT use this tag to describe Unity scripts which are written in C#! UnityScript is a separate language and should be used only on questions explicitly using that language. UnityScript is a DEPRECATED scripting language used by the Unity game engine in versions prior to 2018.2. It is often mistakenly referred to as Javascript, but does not follow the ecmascript standards.

UnityScript was one of the scripting languages used by the prior to version 2018.2. It features classes, strict typing, and is generally developed within the framework, (similar to .Net but designed to be cross platform) among other features.

Although UnityScript is sometimes referred to as "JavaScript", it is a different language, that does not follow the standard. From the Unity3D wiki:

Though many in the Unity development community (and even in the Unity corporation) refer to UnityScript and JavaScript as if they were equivalent or interchangeable, the two are very different languages. Though they resemble each other syntactically, they have very different semantics.

The semantics of UnityScript resemble with the main difference (and really its biggest similarity to javascript) being the ability to have dynamically typed objects.

In the Unity blog "UnityScript’s long ride off into the sunset" it was announced that starting from Unity 2017.2 the ability to create a "UnityScript" has been removed from the "Create Assets" menu as one of the first steps taken to deprecating UnityScript. UnityScripts can however still be made in this version through other means.

As of Unity version 2018.2, support for UnityScript has been completely removed. A tool to convert UnityScript to C# scripts has been released by Unity to help UnityScript users transfer over to C#. More detailed information and a how-to can be found in the Unity blog "UnityScript to C# Conversion Tool"

References


Related tags

1604 questions
-1
votes
1 answer

How can i make a character to turn 180 degrees on the place while walking?

using System; using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityStandardAssets.Characters.ThirdPerson; public class Multiple_objects : MonoBehaviour { public GameObject prefab; public GameObject[]…
TheLost Lostit
  • 505
  • 6
  • 28
-1
votes
3 answers

How can i make random float numbers but to check that there will be no same numbers?

for(int i = 0; i < gos.Length; i++) { float randomspeed = (float)Math.Round (UnityEngine.Random.Range (1.0f, 15.0f)); floats.Add (randomspeed); _animator [i].SetFloat ("Speed", randomspeed); } Now what i get is only round…
TheLost Lostit
  • 505
  • 6
  • 28
-1
votes
1 answer

How can i change each gameobject movement speed?

In the Hierarchy i have 2 ThirdPersonController. In the Window > Animator i created new empty state called it Walk and set it to HumanoidWalk so when running the game both players are walking. On one of them i added the script and as Prefab the…
TheLost Lostit
  • 505
  • 6
  • 28
-1
votes
1 answer

Why my unity program froze when trying to create multiple gameobjects by c# script?

I have in the Hierarchy two ThirdPersonControllers. And i create new c# script file then dragged the script to the first ThirdPersonController. It should clone more 10 ThirdPersonControllers of the first ThirdPersonController. This is the…
TheLost Lostit
  • 505
  • 6
  • 28
-1
votes
1 answer

Unity to Android scaling

Hello in my unity project i have made 2 levels but when i build and run them on android they always scale upwards or downwards either the buttons were way too big or the main menu icon was really small.. i was wondering if there is any way change…
-1
votes
1 answer

How do i make Input.GetKey to be pressed once inside Update function?

If i'm using like now GetKeyDown instead KeyDown pressing the key "o" does nothing. But if i'm using GetKey and then KeyCode.O when i press on the O key the character stop walking but i need to keep pressing the O key all the time if i release the…
TheLost Lostit
  • 505
  • 6
  • 28
-1
votes
1 answer

How do i make a switch click in Unity3D?

I want to make it so that once clicking on a button it will make something and when you click on it again it will make something else. using UnityEngine; using System.Collections; public class Ai : MonoBehaviour { bool stopstate = false; …
TheLost Lostit
  • 505
  • 6
  • 28
-1
votes
1 answer

The waypoints i did is working smooth but changing the speed value not effecting anything why?

The only problem i face now is that in the Inspector when changing the Patrol Speed value it's not effecting at all the speed of the character walk. I did the character to walk in the window > Animator and there i created a new Empty State called it…
TheLost Lostit
  • 505
  • 6
  • 28
-1
votes
2 answers

In unity how can i make my ThirdPersonController character to move from point to point automatic ?

I'm looking for c# script. And once i'm creating the new automatic walking script i need to drag it to the ThirdPersonController ? Like patrloing. I give two values of two points and the character will go between the two points automatic and if…
TheLost Lostit
  • 505
  • 6
  • 28
-1
votes
1 answer

Dragging Item With Icon Following Pointer Unity C#

How To Dragging Item With Icon Following Pointer ? MAYBE IT WILL TAKE SOME TIMES TO SEE ALL THE CODE. Many thanks Before for your attention. But I have done a little Code Before. And it is run successful, but there is some mistake in my code.…
Dennis Liu
  • 303
  • 5
  • 21
-1
votes
1 answer

Unity spawn enemies

Currently i have spawning system that spawns Easy then medium enemies but I'm getting Array out of range error and it's only spawning 4 of the enemies. i want x20 easy (or general number) x20 medium and then random between (easy,medium and hard…
John
  • 141
  • 4
  • 12
-1
votes
2 answers

How can i give soccer ball a trajectory?

I am a beginner and trying to make penalty shooter Game in unity.. I have just setup the scene and just trying to shoot the ball towards the goal post. When i shoot the ball it goes toward the goal but does not come down, because i am shooting it…
-1
votes
1 answer

My animation is lagging, why?

I have an animation in unity, and basically it shows Donald Trump running: I also have this one frame animation of Trump jumping: Basically, when he jumps, the jump animation plays, and when he lands, the walk animation plays again. This all…
Number1son100
  • 219
  • 2
  • 12
-1
votes
2 answers

How To Capture the color from screen in mouse position using Unity and C#?

I did not find a direct function in Color section or since there is no direct C# Unity function for picking the color from post render. How is the best approach for picking the color in the mouse position? I have done research and looks like there…
Alan Mattano
  • 860
  • 3
  • 14
  • 22
-1
votes
2 answers

2D basic movement UNITY

Currently my character works perfectly on the keyboard, but when I convert your movements to touch, through 3 UI Buttons (i tried UI image too, but success) i'm not succeeding It basically goes to the right, left, and jumps. How should do to make it…
1 2 3
99
100