<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>copy Archives - Oxmond Technology</title>
	<atom:link href="https://oxmond.com/tag/copy/feed/" rel="self" type="application/rss+xml" />
	<link>https://oxmond.com</link>
	<description>IT Development</description>
	<lastBuildDate>Wed, 18 Nov 2020 04:45:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0</generator>
	<item>
		<title>How to make multiple copies (clones) of a GameObject. Unity 2019 beginner tutorial</title>
		<link>https://oxmond.com/how-to-make-multiple-copies-of-a-gameobject/</link>
					<comments>https://oxmond.com/how-to-make-multiple-copies-of-a-gameobject/#respond</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Thu, 16 May 2019 17:41:45 +0000</pubDate>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[2019]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[coding pirates]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[duplicate]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[gameplay]]></category>
		<category><![CDATA[instantiate]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[paste]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[Unity3d]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=448</guid>

					<description><![CDATA[<p>How to clone, copy, duplicate&#8230;developers call this &#8220;to instantiate an object&#8221;. In this video we will take a look at how we can clone (instantiate) an object. It&#8217;s easy and very, very useful in almost all kinds of game development. ❤️ Subscribe to Oxmond Tutorials....</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/how-to-make-multiple-copies-of-a-gameobject/">How to make multiple copies (clones) of a GameObject. Unity 2019 beginner tutorial</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>How to clone, copy, duplicate&#8230;developers call this &#8220;to instantiate an object&#8221;. In this video we will take a look at how we can clone (instantiate) an object. It&#8217;s easy and very, very useful in almost all kinds of game development.</p>
<hr />
<p>❤️ Subscribe to Oxmond Tutorials. Stay ahead of the game:<br />
<a href="https://bit.ly/SubscribeOxmondTutorials">https://bit.ly/SubscribeOxmondTutorials</a></p>
<p>✅ Check Out the Free Asset Packages at the Unity Assets Store:<br />
<a href="https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k">https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k</a></p>
<p>😷👕 Need a face mask / developer T-shirt? Drop by our shop and get a 20% DISCOUNT on your first purchase by using the discount code OXMONDSALE. Click here:<br />
<a href="https://shop.oxmond.com/discount/OXMONDSALE">https://shop.oxmond.com/discount/OXMONDSALE</a></p>
<hr />
<pre>/* .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © OXMOND / www.oxmond.com */

using UnityEngine;

public class Coin : MonoBehaviour
{
    void Update()
    {
        transform.Rotate(new Vector3(0f, 100f, 0f) * Time.deltaTime);
    }
}
</pre>
<pre>/* .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © OXMOND / www.oxmond.com */

using System.Collections.Generic;
using UnityEngine;

public class Gameplay : MonoBehaviour
{

    public GameObject coinOriginal;
    public GameObject coinContainer;

    void Start()
    {
        CreateCoins(60);
    }

    private void CreateCoins(int coinsNum)
    {
        for (int i = 0; i &lt; coinsNum; i++)
        {
            // GameObject CoinClone = Instantiate(coinOriginal);
            GameObject CoinClone = Instantiate(coinOriginal, new Vector3(i * 0.6f, coinOriginal.transform.position.y, i * 0.75f), coinOriginal.transform.rotation);
            CoinClone.name = "CoinClone-" + (i + 1);
            CoinClone.transform.parent = coinContainer.transform;
        }
    }

    public void DestroyAllCoins()
    {
            var coins = new List();
            foreach (Transform child in coinContainer.transform) coins.Add(child.gameObject);
            coins.ForEach(child =&gt; Destroy(child));
    }


}
</pre>
<p>The post <a rel="nofollow" href="https://oxmond.com/how-to-make-multiple-copies-of-a-gameobject/">How to make multiple copies (clones) of a GameObject. Unity 2019 beginner tutorial</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/how-to-make-multiple-copies-of-a-gameobject/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
