title: Set z transform position of an instantiated GameObject sprite in unity
body: <p>Is there an easy (shorter) way to set the z transform position of an instantiated game object (sprite) in unity? I want to set each instance to 2 for now.
  Here's the one line of code I am using, I just wanted to set the z position and it seems cumbersome to do it this way - ignore the first line as I am only including it to demonstrate how the GameObject has been instantiated:</p>
  
  <pre><code>GameObject laser = Instantiate(laserPrefab, transform.position, Quaternion.identity) as GameObject;
  laser.transform.position = new Vector3(laser.transform.position.x, laser.transform.position.y, 2);
  </code></pre>
  
  <p>Thanks in advance!</p>