Can someone tell me how to assign an initial value to a variable of type Vector3?
C#:
using UnityEngine;
using System.Collections;
public class Question : MonoBehaviour {
public Vector3 myVector3D = Vector3(1,2,3); // [B]<---- How to assign initial value for this? [/B]
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
Java Script;
var myVector3D : Vector3 = Vector3(1,2,3); // [B]<---- How to assign initial value for this? [/B]
function Update () {
...
}