Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Clone object and move forward.

$
0
0
Hey, I want to put an object in another object (physically, in editor) clone it and then move it forwards. Now, I know I can make it move forwards with something like:
Code (CSharp):
  1. transform.position = new Vector3 (0, 5f, 0, Space.Self);
(or something alike)
But how do I make a clone of an object and select it and make it execute that command?

Viewing all articles
Browse latest Browse all 1466670

Latest Images

Trending Articles



Latest Images