<?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>tween Archives - Oxmond Technology</title>
	<atom:link href="https://oxmond.com/tag/tween/feed/" rel="self" type="application/rss+xml" />
	<link>https://oxmond.com/tag/tween/</link>
	<description>IT Development</description>
	<lastBuildDate>Thu, 29 Dec 2022 13:07:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0.2</generator>
	<item>
		<title>Changing Color of Gameobject Over a Period of Time</title>
		<link>https://oxmond.com/changing-color-of-gameobject-over-a-period-of-time/</link>
					<comments>https://oxmond.com/changing-color-of-gameobject-over-a-period-of-time/#comments</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Fri, 23 Aug 2019 16:00:44 +0000</pubDate>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[2019]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[animate]]></category>
		<category><![CDATA[at runtime]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[Changing Color of Gameobject Over a Period of Time]]></category>
		<category><![CDATA[coding pirates]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[color change script]]></category>
		<category><![CDATA[color.black]]></category>
		<category><![CDATA[color.green]]></category>
		<category><![CDATA[color.lerp]]></category>
		<category><![CDATA[color.red]]></category>
		<category><![CDATA[color.white]]></category>
		<category><![CDATA[dynamically]]></category>
		<category><![CDATA[fade]]></category>
		<category><![CDATA[gameobject]]></category>
		<category><![CDATA[gradually]]></category>
		<category><![CDATA[Hans Oxmond]]></category>
		<category><![CDATA[hex]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[Intermediate Tutorial Unity 2019]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[material]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[on-the-fly]]></category>
		<category><![CDATA[one color to another]]></category>
		<category><![CDATA[over time]]></category>
		<category><![CDATA[Oxmond Unity Tutorials]]></category>
		<category><![CDATA[period]]></category>
		<category><![CDATA[properties]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shader]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[tween]]></category>
		<category><![CDATA[Unity3d]]></category>
		<category><![CDATA[video games]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=536</guid>

					<description><![CDATA[<p>This Unity tutorial show how to change/fade/animate colors over time. ❤️ Subscribe to Oxmond Tutorials. We upload new tutorials every day! https://bit.ly/SubscribeOxmondTutorials ✅ Download the free Nefertiti 3D statue here: https://assetstore.unity.com/packages/3d/nefertiti-56818?aid=1100l4p9k ✅ Download the free DOTween here: https://assetstore.unity.com/packages/tools/animation/dotween-hotween-v2-27676?aid=1100l4p9k ✅ Other Free Assets from the Unity...</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/changing-color-of-gameobject-over-a-period-of-time/">Changing Color of Gameobject Over a Period of Time</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This Unity tutorial show how to change/fade/animate colors over time.</p>
<hr />
<p>❤️ Subscribe to Oxmond Tutorials. We upload new tutorials every day!<br />
<a href="https://bit.ly/SubscribeOxmondTutorials">https://bit.ly/SubscribeOxmondTutorials</a></p>
<p>✅ Download the free Nefertiti 3D statue here:<br />
<a href="https://assetstore.unity.com/packages/3d/nefertiti-56818?aid=1100l4p9k">https://assetstore.unity.com/packages/3d/nefertiti-56818?aid=1100l4p9k</a></p>
<p>✅ Download the free DOTween here:<br />
<a href="https://assetstore.unity.com/packages/tools/animation/dotween-hotween-v2-27676?aid=1100l4p9k">https://assetstore.unity.com/packages/tools/animation/dotween-hotween-v2-27676?aid=1100l4p9k</a></p>
<p>✅ Other Free Assets from 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 />
<p><strong>Set the color script:</strong></p>
<pre>/*

   .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © 2019 OXMOND / www.oxmond.com 

*/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;

public class ChangeColor : MonoBehaviour
{

    public Material nMaterial;

    public void SetColorToBlack() {
        nMaterial.SetColor("_Color", Color.black);
    }

    public void SetColorToWhite()
    {
        nMaterial.SetColor("_Color", Color.white);
    }

    public void SetColorToRed()
    {
        nMaterial.SetColor("_Color", Color.red);
    }

    public void SetColorToGreen()
    {
        nMaterial.SetColor("_Color", Color.green);
    }


}
</pre>
<hr />
<p><strong>Fade the color using DOTween:</strong></p>
<pre>/*

   .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © 2019 OXMOND / www.oxmond.com 

*/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;

public class ChangeColor : MonoBehaviour
{
    public Material nMaterial;

    public void SetColorToBlack() {
        nMaterial.DOColor(Color.black, 2);
    }

    public void SetColorToWhite()
    {
        nMaterial.DOColor(Color.white, 2);
    }

    public void SetColorToRed()
    {
        nMaterial.DOColor(Color.red, 2);
    }

    public void SetColorToGreen()
    {
        nMaterial.DOColor(Color.green, 2);
    }
}
</pre>
<p>The post <a rel="nofollow" href="https://oxmond.com/changing-color-of-gameobject-over-a-period-of-time/">Changing Color of Gameobject Over a Period of Time</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/changing-color-of-gameobject-over-a-period-of-time/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Animations Basics! How to Rotate Objects</title>
		<link>https://oxmond.com/animations-basics-how-to-rotate-objects/</link>
					<comments>https://oxmond.com/animations-basics-how-to-rotate-objects/#comments</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Fri, 14 Dec 2018 12:41:20 +0000</pubDate>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[2018]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[beginners]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[coin]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[dotween]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game making]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[itween]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[rotate]]></category>
		<category><![CDATA[rotation]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[tween]]></category>
		<category><![CDATA[tweens]]></category>
		<category><![CDATA[Unity3d]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=404</guid>

					<description><![CDATA[<p>Animation Tutorial for beginners. How to rotate objects in Unity. Using the Update() method, Unity Animation tools or a Tween tool like iTween or DOTween (HOTween v2) ❤️ Subscribe to Oxmond Tutorials: https://bit.ly/SubscribeOxmondTutorials ✅ Download the free iTween tool here: https://assetstore.unity.com/packages/tools/animation/itween-84?aid=1100l4p9k ✅ iTween documentation: http://www.pixelplacement.com/itween/documentation.php...</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/animations-basics-how-to-rotate-objects/">Animations Basics! How to Rotate Objects</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><span style="font-weight: 400;">Animation Tutorial for beginners. How to rotate objects in Unity. Using the Update() method, Unity Animation tools or a Tween tool like iTween or DOTween </span><span style="font-weight: 400;">(HOTween v2)</span></p>
<hr />
<p><span style="font-weight: 400;"><strong>❤️ Subscribe to Oxmond</strong> Tutorials:<br />
<a href="https://bit.ly/SubscribeOxmondTutorials">https://bit.ly/SubscribeOxmondTutorials</a></span></p>
<p><strong>✅ Download the free iTween tool here:</strong><br />
<a href="https://assetstore.unity.com/packages/tools/animation/itween-84?aid=1100l4p9k"><span style="font-weight: 400;">https://assetstore.unity.com/packages/tools/animation/itween-84?aid=1100l4p9k</span></a></p>
<p><strong>✅ iTween documentation:<br />
</strong><a href="http://www.pixelplacement.com/itween/documentation.php">http://www.pixelplacement.com/itween/documentation.php</a></p>
<p><span style="font-weight: 400;"><strong>✅ Other free Asset Packages at the Unity Assets Store:<br />
</strong></span><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>😷👕 <strong>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:</strong><br />
<a href="https://shop.oxmond.com/discount/OXMONDSALE">https://shop.oxmond.com/discount/OXMONDSALE</a></p>
<hr />
<p><strong>Rotate script:</strong></p>
<pre>/* .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © OXMOND / www.oxmond.com */

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Rotate : MonoBehaviour {

	void Update () {
        transform.Rotate(new Vector3(0f, 0f, 100f) * Time.deltaTime);
	}
}
</pre>
<p><strong>Set rotation:</strong></p>
<pre>
transform.eulerAngles = new Vector3(0, 100f, 0);
</pre>
<p><strong>Rotate iTween script:</strong></p>
<pre>/* .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © OXMOND / www.oxmond.com */

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RotateTween : MonoBehaviour {

    public iTween.EaseType easeType;
    public iTween.LoopType loopType;
	
	void Start () {
        iTween.RotateTo(this.gameObject, iTween.Hash("z", 180, "time", 1.5f, "easetype", easeType, "looptype", loopType));
	}
}

</pre>
<p>The post <a rel="nofollow" href="https://oxmond.com/animations-basics-how-to-rotate-objects/">Animations Basics! How to Rotate Objects</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/animations-basics-how-to-rotate-objects/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
