How to generate random objects at different locations on x, y, z axis
I have been trying to generate a random object on all three axis in different locations. However, Vector3 doesn't accept that many overloads e.g:
Vector3 spawnPos = new Vector3(Random.Range(spawnLimitXLeft, spawnLimitXRight), spawnPosY, 0);
I want a spawn limit range for y and z similar to x in the above example but I dont know how to impliment it. The results being that I can generate an object within a positive and negative range on y and z as well?