Instantiate(prefab, new Vector3(i * 2.0F, 0, 0), Quaternion.identity) as Transform;
As we can see, there is no declaration like:
Transform Blabla = Instantiate(prefab, new Vector3(i * 2.0F, 0, 0), Quaternion.identity) as Transform;
But this example from documentation just do not work.
“Only assignment, call, increment, decrement, and new object expressions can be used as a statement”.
But I don’t need this variable, so I declarate it and my console spammed by:
“The variable `Blabla’ is assigned but its value is never used”
Of course this is not a problem. But it just interested that example from documentation didn’t work.