- Home /
Question by
_Yue_ · Sep 22, 2014 at 09:18 AM ·
C# VS UnityScript (Question for Experts)
Hi, I'm fairly new to Unity and I would like to know how to give instructions in Unity is the best in performance, if C # or UnityScript.
According see UnityScript does the dirty work for us and what is much more comfortable on C #.
#pragma strict
// UnityScript
var posX:float;
var posY:float;
var posZ:float;
function Start () {
transform.position.x = posX;
transform.position.y = posY;
transform.position.z = posZ;
}
function Update () {
}
// C#
using UnityEngine;
using System.Collections;
public class PropiedadesVariables : MonoBehaviour {
public float posX;
public float posY;
public float posZ;
// Use this for initialization
void Start () {
Vector3 position = transform.position;
position.x = posX;
position.y = posY;
position.z = posZ;
transform.position = position;
}
// Update is called once per frame
void Update () {
}
}
Comment
Ok, thanks you, sorry my english is bad, i am using google translator.
Your answer
![](https://koobas.hobune.stream/wayback/20220613163515im_/https://answers.unity.com/themes/thub/images/avi.jpg)