Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
Since the Vector3 constructor accepts separate X, Y and Z coordinates, if you want to randomise each one individually, you would need to call the Random.Range for each coordinate, e.g. Vector3 spa...
Answer
#1: Initial revision
Since the `Vector3` constructor accepts separate X, Y and Z coordinates, if you want to randomise each one individually, you would need to call the `Random.Range` for each coordinate, e.g. Vector3 spawnPos = new Vector3( Random.Range(spawnLimitXLeft, spawnLimitXRight), Random.Range(spawnLimitYBottom, spawnLimitYTop), Random.Range(spawnLimitZMin, spawnLimitZMax) );