Every gameobject has a transform component attached to in unity.
in my game each prefab is instantiated by a spawner script. however they are moving in a linear axis.
Rather i would like them to be spawned in different y axis position randomly.
This is too much complicated and i like to get some help please.
here is my code :
var newTransform = transform;
GameObjectUtil.Instantiate(prefabs[Random.Range(0, prefabs.Length)],
newTransform.position);