-1
\$\begingroup\$

How to make clone of gameobject have the same properties as the original gameobject just placed right to it and the clone should fire exactly parallel to original character. Every property should be same.

actually I have a player having 4 skills and I wanted to add one more skill to my player (5th skill) so that it can clone itself and do everything like its original player and one restriction will be there is clone player should be just right(2-3 units) to the original player.

\$\endgroup\$
  • \$\begingroup\$ This question can be answered on your own by reading the API. \$\endgroup\$ – Stephan Jul 10 '15 at 15:20
0
\$\begingroup\$

Instantiate()

var clone = Instantiate(originalGameObject, position, orientation)(GameObject);

See this tutorial for more information.

I'd encourage you to read the scripting documentation or try some tutorials - this type of answer is very easy to find on your own.

\$\endgroup\$
  • \$\begingroup\$ Thanks for your quick reply..I have taken these information from tutorials. let me explain first every thing related to my problem ...actually I have a player having 4 skills and I wanted to add one more skill to my player (5th skill) so that it can clone itself and do everything like its original player and one restriction will be there is clone player should be just right(2-3 units) to the original player. \$\endgroup\$ – RJV Jul 10 '15 at 13:04
  • 1
    \$\begingroup\$ @Rajeev Chauhan Details about your question belong in your question, not in comments. You should edit your question to describe exactly what behaviour you want, what you've tried so far, and what isn't working. \$\endgroup\$ – DMGregory Jul 10 '15 at 13:06
  • \$\begingroup\$ ok thanks for your suggestion ..issue is now resolved any way \$\endgroup\$ – RJV Jul 10 '15 at 15:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.