UnityScript
| UnityScript | |
|---|---|
| Surgido em | 8 de junho de 2005 (20 anos) |
| Última versão | Unity 2018.2 (2018) |
| Criado por | Unity Technologies, Rodrigo Barreto de Oliveira |
| Principais implementações | Unity, Mono (Com a Unity), Visual Studio (Com a Unity) |
| Influenciada por | JavaScript, ECMAScript, Boo |
| Extensão do arquivo | .js |
| Página oficial | https://github.com/bamboo/unityscript |
UnityScript foi uma linguagem de programação derivada da linguagem JavaScript[1], desenvolvida pela Unity Technologies para uso no seu motor gráfico Unity.
Desenvolvimento
O UnityScript foi criado em 2005 junto com a primeira versão do Unity, ele era uma alternativa ao C# e Boo, Em 2017 com a chegada da Unity 2017.0 foi anunciado que o UnityScript iria ser descontinuado e removido das novas versões da Untiy[2][3][4], o projeto atualmente se encontra no GitHub[5]. O UnityScript foi escrito na linguagem de programação Boo[5] criada pelo programador brasileiro Rodrigo Barreto de Oliveira [6][7]
Exemplo 1 [8]
#pragma strict
var myInt : int = 5;
function MyFunction (number : int) : int
{
var ret = myInt * number;
return ret;
}
Exemplo 2 [9]
#pragma strict
private var myLight : Light;
function Start ()
{
myLight = GetComponent(Light);
}
function Update ()
{
if(Input.GetKeyUp(KeyCode.Space))
{
myLight.enabled = !myLight.enabled;
}
}
Exemplo 3 [Uso do Import] [10]
import System;
var myByte : System.SByte;
function Start()
{
myByte = -8 ;
print(myByte.ToString());
}
Referências
- ↑ «UnityScript versus JavaScript - Unify Community Wiki». wiki.unity3d.com (em inglês). Consultado em 26 de agosto de 2018
- ↑ GameFromScratch.com, Copyright. «Unity Announce Removal Of UnityScript». www.gamefromscratch.com. Consultado em 26 de agosto de 2018
- ↑ «UnityScript's long ride off into the sunset – Unity Blog». Unity Technologies Blog
- ↑ Gamefromscratch (11 de agosto de 2017), RIP UnityScript -- Unity Removing JavaScript Support, consultado em 26 de agosto de 2018
- ↑ a b «Unity-Technologies/unityscript». GitHub (em inglês). Consultado em 26 de agosto de 2018
- ↑ «Boo programming language». boo-language.github.io. Consultado em 7 de agosto de 2020
- ↑ «Boo: Obscure Programming Language of the Month». Consultado em 7 de agosto de 2020
- ↑ «C# vs JS syntax - Unity». Unity. Consultado em 26 de agosto de 2018
- ↑ «Enabling and Disabling Components - Unity». Unity. Consultado em 26 de agosto de 2018
- ↑ «UnityScript Keywords - Unify Community Wiki». wiki.unity3d.com. Consultado em 17 de dezembro de 2019
Ligações externas
- «Página da Unity»
- «Wiki da Unity» (em inglês)
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.