Simple question: is it faster/better to use the word “new” while setting or declaring a variable ??
ex.
function Start () {
test = new Vector3(0.0.0);
}
or
function Start () {
test = Vector3(0.0.0);
}
Simple question: is it faster/better to use the word “new” while setting or declaring a variable ??
ex.
function Start () {
test = new Vector3(0.0.0);
}
or
function Start () {
test = Vector3(0.0.0);
}
It’s completely irrelevant since the exact same thing happens whether you use the “new” keyword or not.
if you are in C# you have to initialize all variables so you have to do …= new … because if you dont initialize it you wont be able to use it.