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

converting public ExampleName ExampleVariable to public GameObject ExampleVariable in C# UnityEngine2D

i am amking a unity 2D game and i have some variables of a preloaded GameObject that i want to refrence in a script of a prefab but i cant seem to be able to use the GameObject.FindWithTag("VariableName"); (to load the gameobject in the prefab)…
TroiDev
  • 1
  • 1
-1
votes
1 answer

Unity3D input.acceleration

I want to move an object with acceleration input in unity: if (...) transform.translate(vector2.right*speed); else if (...) transform.translate(vector2.left*speed); I don't know what the conditions should be
Ali Safari
  • 87
  • 1
  • 1
  • 6
-1
votes
1 answer

Unity type racer

I'm designing a typeracer game in unity where the player is in an athletics 100m sprint and the faster they type, the faster the character runs. I'm just wondering should I be aiming to get an animation that completes between every correct letter…
Michael Bell
  • 169
  • 1
  • 7
-1
votes
1 answer

Unity 5 unityscript returns errors when trying to write to a file

I have successfully made a level with a Terrain, a Rigidbody FPS Controller from Standard Assets -> Characters and some other GameObjects. I now need to save my system so I have started to google file IO for UnityScript. I have found some examples…
Kotauskas
  • 1,239
  • 11
  • 31
-1
votes
2 answers

unityscript, c#, boo together in unity?

Is it possible to use unityscript and boo together( in the same project) in unity 3d? We are trying to choose the platform and the engine to develop a game as a group and some coders are good in python and some others in js. So I will suggest unity…
Emre Canbazoğlu
  • 113
  • 3
  • 13
-1
votes
1 answer

How to Diagonal Flip Animation in Unity

I am creating a card game in unity. In that, I need to flip a card in diagonal. I have tried using rotate and translate methods, but unfortunately I was unable to archive the target. I have attached the YouTube link with this thread. Anyone can help…
Natheem Yousuf
  • 143
  • 2
  • 2
  • 8
-1
votes
2 answers

Making an object(with camera) move passively

I'm creating a Vive VR Passive VR experience, where your in a space ship and without any controls, it moves passively through the whole solar system. It's not AI, there will be a predetermined destination. My question: How to make on object move…
Mokrab
  • 55
  • 1
  • 7
-1
votes
1 answer

How can i move all the Spheres on the Terrain from it's original positions to new positions and back to the original in a loop?

What i want it to do is both in the editor and when running the game to see all the Spheres in the same time moving to another direction or maybe it will be the same direction untill endPoint and then back to the startPoint in a loop none stop. This…
TheLost Lostit
  • 505
  • 6
  • 28
-1
votes
2 answers

How do I move separate objects in a unity script?

I am trying to write a C# script in Unity that would move other objects in the game. I tried this code below, but it didn't work. The errors are saying that REDpos, RRDpos, RADpos, and RCDpos, do not exist in the current context. Please help me…
Dallas White
  • 83
  • 1
  • 10
-1
votes
1 answer

Unity 5.4 Button auto-clicks

When I create a button in unity3d 5.4 the button just clicks automatic when i press play in the editor. I haven't been using unity before, so I can't say if it would happen in other versions. First i create a script, then I attatch it to a empty…
-1
votes
1 answer

Gain points when the player kill an enemy

I want to gain 10 points when the player kill an enemy but I don't get it. I've created a method to add score on my PuntosPistas script in the Player, and just call the method inside of the CheckHealth of the Enemy but it don't sum 10 points in…
Angelsm
  • 337
  • 5
  • 15
-1
votes
1 answer

Don't understand the error with unity script

There is a problem with my code that I don't know how to fix and I could really need some help in order to make progress. The problem is that Unity says that : GetComponent().velocity; is a error and that only assignment, call, increment,…
-1
votes
1 answer

The Window > Animator apply for all players how i can make it to apply only for some of the players?

I created in the Window > Animator a new empty state called it Walk using HumandoidWalk and set it as default when running the game all the 3 ThirdPersonControllers start walking automatic. How can i make that the main player will not walk automatic…
TheLost Lostit
  • 505
  • 6
  • 28
-1
votes
1 answer

Unity Change Canvas Size as Portrait (mobile size)

How to change the canvas default scale (landscape) to portrait / match with mobile view? Thank you
Rahmat Siswanto
  • 127
  • 2
  • 12
-1
votes
1 answer

Player is stuttering when using StartCoroutine how can i fix it?

Not sure if the StartCoroutine make the stuttering. But when disable the script not to use it in the Inspector the stuttering is gone when using the script it happen. I'm using a waypoints script attached to ThirdPersonController. I added to the…
TheLost Lostit
  • 505
  • 6
  • 28