<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[Siggy's Notebook]]></title><description><![CDATA[This is an online notebook about art + code!]]></description><link>https://notebook.siggyworks.com</link><image><url>https://substackcdn.com/image/fetch/$s_!Rbei!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F155c5ea1-363b-4e27-b90c-ceb6f5151c76_250x250.png</url><title>Siggy&apos;s Notebook</title><link>https://notebook.siggyworks.com</link></image><generator>Substack</generator><lastBuildDate>Sat, 11 Apr 2026 06:33:21 GMT</lastBuildDate><atom:link href="https://notebook.siggyworks.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[SiggyWorks]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[siggyworks@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[siggyworks@substack.com]]></itunes:email><itunes:name><![CDATA[Siggy]]></itunes:name></itunes:owner><itunes:author><![CDATA[Siggy]]></itunes:author><googleplay:owner><![CDATA[siggyworks@substack.com]]></googleplay:owner><googleplay:email><![CDATA[siggyworks@substack.com]]></googleplay:email><googleplay:author><![CDATA[Siggy]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[An Artist's Guide to C# in Unity3D: Classes]]></title><description><![CDATA[This article is an addition to my series for code-leaning artists who want to learn Unity 3D. In this article we learn about classes.]]></description><link>https://notebook.siggyworks.com/p/an-artists-guide-to-c-in-unity3d</link><guid isPermaLink="false">https://notebook.siggyworks.com/p/an-artists-guide-to-c-in-unity3d</guid><dc:creator><![CDATA[Siggy]]></dc:creator><pubDate>Mon, 18 Jan 2021 13:00:35 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!13ih!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F65b70be6-5841-48d6-a5fe-10e6e8aa6e94_900x600.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>This article is an addition to my series for code-leaning artists who want to learn Unity 3D. In this article we learn about functions and methods.</em></p><p><em>The series is available <a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-setting">here</a>.</em></p><div><hr></div><p>Way back in lesson three of the <em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-common">Artist&#8217;s Guide to C# in Unity</a></em>, we learned about common data types.&nbsp; These built-in data types are great for representing simple data values.&nbsp; </p><p>Need to track a player&#8217;s game score?&nbsp; No problem--use an integer</p><p>Need to set the speed of a ball?&nbsp; Check--use a float</p><p>Need to indicate if a character is alive or dead? Easy--use a boolean</p><p>Need to store a character&#8217;s first name? (Is this supposed to be hard?) Use a string</p><p>And on and on.</p><p>These work fine for many simple cases, but what if you need to represent something a little more complex or multidimensional like a box, or a dog or a whole character.&nbsp; Can we do this in C-sharp?&nbsp;&nbsp;</p><p>The answer is, &#8220;of course, we can!&#8221;</p><p>You can define your own <em>&#8220;custom data type</em>&#8221; and then create objects of this data type whenever you want.&nbsp; You define custom data types using something called a <em><strong>class</strong></em>--it's sort of like a blueprint.&nbsp; This blueprint is then used to create one or more instances of your custom data type--these are the objects you assign to a variable and use in your program.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!13ih!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F65b70be6-5841-48d6-a5fe-10e6e8aa6e94_900x600.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!13ih!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F65b70be6-5841-48d6-a5fe-10e6e8aa6e94_900x600.jpeg 424w, https://substackcdn.com/image/fetch/$s_!13ih!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F65b70be6-5841-48d6-a5fe-10e6e8aa6e94_900x600.jpeg 848w, https://substackcdn.com/image/fetch/$s_!13ih!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F65b70be6-5841-48d6-a5fe-10e6e8aa6e94_900x600.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!13ih!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F65b70be6-5841-48d6-a5fe-10e6e8aa6e94_900x600.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!13ih!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F65b70be6-5841-48d6-a5fe-10e6e8aa6e94_900x600.jpeg" width="900" height="600" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/65b70be6-5841-48d6-a5fe-10e6e8aa6e94_900x600.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:600,&quot;width&quot;:900,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:101453,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!13ih!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F65b70be6-5841-48d6-a5fe-10e6e8aa6e94_900x600.jpeg 424w, https://substackcdn.com/image/fetch/$s_!13ih!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F65b70be6-5841-48d6-a5fe-10e6e8aa6e94_900x600.jpeg 848w, https://substackcdn.com/image/fetch/$s_!13ih!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F65b70be6-5841-48d6-a5fe-10e6e8aa6e94_900x600.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!13ih!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F65b70be6-5841-48d6-a5fe-10e6e8aa6e94_900x600.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>So, to restate, a <em>class</em> is like a set of blueprints, and <em>instances</em> are the actual objects created from the blueprints.&nbsp; Each &#8220;blueprint&#8221; contains any number of internal attributes (variables) and behaviors (functions/methods) that make-up the object.</p><p></p><h3><strong>Parts of a class</strong></h3><p>A basic class definition adheres to the following format:</p><blockquote><pre><code><em>access_level class class_name {

   <strong>// attributes -- variables</strong>
   
   access_level data_type variable1;
   access_level data_type variable2;
   access_level data_type variable3;

   
   <strong>// behaviors -- methods

   </strong>access_level return_type method1(parameter_list) {
      // method body
   }

   access_level return_type method2(parameter_list) {
      // method body
   }

   access_level return_type method3(parameter_list) {
      // method body
   }

}</em></code></pre></blockquote><p>The only new part of this format to us is the class declaration line (<em><strong><code>access_level class class_name</code></strong></em>).&nbsp; This is where we name our class (our custom data type) and define its innards within a code block.&nbsp;&nbsp;</p><p>We will discuss the <em><code>access_level</code> </em>towards the end of this lesson.&nbsp; The main thing to note is the keyword, <em><strong><code>class</code></strong></em>, which tells C-sharp that we are defining a custom class with the <em><strong><code>class_name</code></strong> </em>we decide to give it.&nbsp;&nbsp;</p><p>A Class can be named anything as long as it starts with a letter and is not a pre-existing C-sharp keyword.&nbsp; The C-sharp convention is to use camel-casing for class names (e.g. <em><code>BomberPlane</code></em>, <em><code>HarrierJet</code></em>).&nbsp;&nbsp;</p><p>Let&#8217;s assume we&#8217;re creating some sort of ninja fighting game.&nbsp; We may want a custom data type to represent a ninja character type since we are likely to have several.&nbsp; We could declare a class to represent a ninja object.&nbsp; In your <em><code>Fundamentals.cs</code></em> script file, locate the space between the library import statements (the last line should be <em><code>Using UnityEngine;</code></em>) and the script top-level class which starts with this line:</p><p><em><code>public class Fundamentals: Monobehaviour { ...</code></em></p><p>Add the following code in that space.</p><blockquote><pre><code><em><code>public class Ninja {

}</code></em></code></pre></blockquote><p></p><p>We now have a valid class that we could use to create instances of <em><code>Ninjas</code></em>.&nbsp; Right now it&#8217;s empty so lets make it a bit more useful.&nbsp; I imagine there are some attributes of ninjas we may need in a game such as power level, health level, weapon, running speed and suit color.&nbsp; Lets add these attributes.</p><blockquote><pre><code>public class Ninja {
    int power = 10;
    int health = 5;
    float speed = 3.5;
    string weapon = &#8220;katana&#8221;;
    string suitColor = &#8220;red&#8221;;

}</code></pre></blockquote><p></p><p>Now that we have some basic attributes for our <em><code>Ninja</code></em> type, let&#8217;s give our <em><code>Ninja </code></em>class a couple of behaviors.&nbsp; I&#8217;d like our ninja object to be able to change weapons, change suit color and yell when instructed.&nbsp; Lets add those methods next.</p><blockquote><pre><code>public class Ninja {</code></pre><pre><code>&#9;int power = 10;</code></pre><pre><code>&#9;int health = 5;</code></pre><pre><code>&#9;float speed = 3.5;</code></pre><pre><code>&#9;string weapon = "katana";</code></pre><pre><code>&#9;string suitColor = "red";</code></pre><pre><code>&#9;public changeWeapon(string nextWeapon) {</code></pre><pre><code>&#9;&#9;weapon = nextWeapon;</code></pre><pre><code>&#9;}</code></pre><pre><code>&#9;public changeSuit(string nextColor) {</code></pre><pre><code>&#9;&#9;suitColor = nextColor;</code></pre><pre><code>&#9;}</code></pre><pre><code>&#9;public yell() {</code></pre><pre><code>&#9;&#9;Debug.Log("Hee-yah!");</code></pre><pre><code>&#9;}</code></pre><pre><code>}</code></pre></blockquote><p>Your entire script file, if you&#8217;ve been following along, should look something like this:</p><blockquote><pre><code>using System.Collections;</code></pre><pre><code>using System.Collections.Generic;</code></pre><pre><code>using UnityEngine;</code></pre><pre><code>public class Ninja&nbsp;</code></pre><pre><code>{</code></pre><pre><code>&#9;private int power = 10;</code></pre><pre><code>&#9;private int health = 5;</code></pre><pre><code>&#9;private float speed = 3.5;</code></pre><pre><code>&#9;private string weapon = "katana";</code></pre><pre><code>&#9;private string suitColor = "red";</code></pre><pre><code>&#9;public void changeWeapon(string nextWeapon) {</code></pre><pre><code>&#9;&#9;weapon = nextWeapon;</code></pre><pre><code>&#9;}</code></pre><pre><code>&#9;public void changeSuit(string nextColor) {</code></pre><pre><code>&#9;&#9;suitColor = nextColor;</code></pre><pre><code>&#9;}</code></pre><pre><code>&#9;public void Yell() {</code></pre><pre><code>&#9;&#9;Debug.Log($"Yee-haw! I am a {suitColor} ninja 
                            with a giant {weapon}!");</code></pre><pre><code>&#9;}</code></pre><pre><code>}</code></pre><pre><code>public class Fundamentals : MonoBehaviour</code></pre><pre><code>{</code></pre><pre><code>        // Start is called before the first frame update</code></pre><pre><code>        void Start()</code></pre><pre><code>        {</code></pre><pre><code>                Debug.Log("Unity Rocks!");</code></pre><pre><code>        }</code></pre><pre><code>        // Update is called once per frame</code></pre><pre><code>        void Update()</code></pre><pre><code>        {</code></pre><pre><code>        }</code></pre><pre><code>}</code></pre></blockquote><p>We have now defined a class that we can use to create as many new Ninja objects as we want, anytime we want.&nbsp; Let's learn how to do that next.</p><p></p><h3><strong>Using a class</strong></h3><p>Once we&#8217;ve defined our class (the blueprint), we can use that class to create instances (objects) of our custom defined data type.&nbsp; The process of creating a new instance from a class definition is called <em><strong>instantiation</strong></em>.&nbsp; The way to instantiate new objects will be familiar to you--we simply use the <em><strong><code>new</code></strong></em> keyword when creating our variable much like we did when creating a new list object.</p><p>Let's create our first Ninja object.&nbsp; In the <em><code>Start()</code></em> method, add the following code:</p><blockquote><pre><code>Ninja ninja1 = new Ninja();</code></pre></blockquote><p></p><p>With our new instance let's ask it to <em><code>Yell();</code></em></p><blockquote><pre><code>ninja1.Yell();</code></pre></blockquote><p></p><p>The console should now print out:</p><blockquote><pre><code><em><code>&#8220;Yee-haw! I am a red ninja with a giant katana!&#8221;</code></em></code></pre></blockquote><p></p><p>Lets create a second ninja.</p><blockquote><pre><code>Ninja ninja2 = new Ninja();</code></pre><pre><code>ninja2.Yell();</code></pre></blockquote><p></p><p>Right now, our second ninja prints out the same exact thing as the first one.</p><blockquote><pre><code><em>&#8220;Yee-haw! I am a red ninja with a giant katana!&#8221;</em></code></pre></blockquote><p></p><p>Let&#8217;s change this.</p><blockquote><pre><code>ninja2.changeWeapon("bo");</code></pre><pre><code>ninja2.changeSuit("purple");</code></pre><pre><code>ninja2.Yell();</code></pre><pre><code>ninja1.Yell();</code></pre></blockquote><p></p><p>Now, ninja2 prints</p><blockquote><pre><code><em>&#8220;Yee-haw! I am a purple ninja with a giant bo!&#8221;</em></code></pre></blockquote><p></p><p>While ninja1 prints </p><blockquote><pre><code><em>&#8220;Yee-haw! I am a red ninja with a giant katana!&#8221;</em></code></pre></blockquote><p></p><p>We could keep creating new instances of our <em><code>Ninja</code> </em>class this way indefinitely.&nbsp; However, every time we create a new instance, the attributes like suit color or weapon are always the same at the beginning.&nbsp; What if we would like to create new instances but specify the suit color and weapon during instantiation?&nbsp; Well, we can do that using a special type of method in our class called a <em><strong><code>constructor</code></strong></em>.</p><p>Constructor methods are just regular class methods that are executed when the instance is created.&nbsp; Constructor methods must be named exactly the same as the class name and do not have a return type&#8212;they must be <em><code>void</code></em>.&nbsp;&nbsp;</p><p>For our example, we would like to provide a way to specify the suit color and weapon for each new ninja.&nbsp; This can be accomplished by adding two parameters on our Ninja constructor method.&nbsp; Let&#8217;s modify the Ninja class to look like this:</p><blockquote><pre><code>public class Ninja&nbsp;</code></pre><pre><code>{</code></pre><pre><code>&#9;private int power = 10;</code></pre><pre><code>&#9;private int health = 5;</code></pre><pre><code>&#9;private float speed = 3.5;</code></pre><pre><code>&#9;private string weapon = "katana";</code></pre><pre><code>&#9;private string suitColor = "red";</code></pre><pre><code>&#9;public Ninja(string weapon, string suitColor) {</code></pre><pre><code>&#9;&#9;this.weapon = weapon;</code></pre><pre><code>&#9;&#9;this.suitColor = suitColor;</code></pre><pre><code>&#9;}</code></pre><pre><code>&#9;public void changeWeapon(string nextWeapon) {</code></pre><pre><code>&#9;&#9;weapon = nextWeapon;</code></pre><pre><code>&#9;}</code></pre><pre><code>&#9;public void changeSuit(string nextColor) {</code></pre><pre><code>&#9;&#9;suitColor = nextColor;</code></pre><pre><code>&#9;}</code></pre><pre><code>&#9;public void Yell() {</code></pre><pre><code>&#9;&#9;Debug.Log("Yee-haw! I am a {suitColor} ninja 
                           with a giant {weapon}!");</code></pre><pre><code>&#9;}</code></pre><pre><code>}</code></pre></blockquote><p></p><p>We now have a constructor function which accepts two string variables--one for the weapon and one for the suit color.&nbsp; The constructor assigns these values to the object's <em><code>weapon</code></em> and <em><code>suitColor</code></em> variables respectively.&nbsp; The &#8220;<em><code>this</code>&#8221;</em> keyword is C-sharp&#8217;s way of referencing the current object (self-referencing).&nbsp; This is how the compiler tells the difference between the weapon variable you&#8217;re passing as a parameter and the weapon variable that is an attribute of our ninja object.&nbsp;&nbsp;</p><p>Now, our instantiation call could look like this:</p><blockquote><pre><code>Ninja ninja1 = new Ninja("nunchuk", "blue");</code></pre></blockquote><p></p><p>It's important to note that this is now the only way we can instantiate a new Ninja object.&nbsp; The old method without parameters will no longer work.&nbsp; If we still wanted a way to instantiate ninja objects without specifying weapon or suit color, we would need to add a second constructor which doesn&#8217;t accept parameters like this:</p><blockquote><pre><code>Public Ninja() {</code></pre><pre><code>&#9;Debug.Log(&#8220;Ninja created with default values&#8221;);</code></pre><pre><code>}</code></pre></blockquote><p></p><p>Lets add this to our file right before the existing constructor so our class looks like this:</p><blockquote><pre><code>public class Ninja&nbsp;</code></pre><pre><code>{</code></pre><pre><code>&#9;private int power = 10;</code></pre><pre><code>&#9;private int health = 5;</code></pre><pre><code>&#9;private float speed = 3.5;</code></pre><pre><code>&#9;private string weapon = "katana";</code></pre><pre><code>&#9;private string suitColor = "red";</code></pre><pre><code>&#9;public Ninja() {</code></pre><pre><code>&#9;&#9;Debug.Log("Ninja created with default values");</code></pre><pre><code>        }</code></pre><pre><code>&#9;public Ninja(string weapon, string suitColor) {</code></pre><pre><code>&#9;&#9;this.weapon = weapon;</code></pre><pre><code>&#9;&#9;this.suitColor = suitColor;</code></pre><pre><code>&#9;}</code></pre><pre><code>&#9;public void changeWeapon(string nextWeapon) {</code></pre><pre><code>&#9;&#9;weapon = nextWeapon;</code></pre><pre><code>&#9;}</code></pre><pre><code>&#9;public void changeSuit(string nextColor) {</code></pre><pre><code>&#9;&#9;suitColor = nextColor;</code></pre><pre><code>&#9;}</code></pre><pre><code>&#9;public void Yell() {</code></pre><pre><code>&#9;&#9;Debug.Log($"Yee-haw! I am a {suitColor} ninja 
                           with a giant {weapon}!");</code></pre><pre><code>&#9;}</code></pre><pre><code>}</code></pre></blockquote><p></p><p>Now we can create our ninja objects like this:</p><blockquote><pre><code>// creates a ninja with default attributes

Ninja ninja1 = new Ninja();&nbsp; 
</code></pre><pre><code>// creates another ninja with these values

Ninja ninja2 = new Ninja("crossbow", "green");&nbsp;
</code></pre><pre><code>ninja1.Yell();&nbsp;// Yee-haw! I am a red ninja with a giant katana!</code></pre><pre><code>ninja2.Yell();&nbsp;// Yee-haw! I am a green ninja with a giant
               // crossbow!</code></pre></blockquote><p></p><h3><strong>Other details about classes (access and scope)</strong></h3><p>Now that we understand how to use classes, let's finally talk about those <em><strong><code>access_level</code></strong></em><strong><code> </code></strong>keywords we keep running into.&nbsp; Access level keywords, or access modifiers as they are called, determine how &#8220;visible&#8221; a particular variable, method or class is to other objects in your program.&nbsp; Every C-sharp program runs within what&#8217;s called a program assembly (a bundle of all the classes and libraries compiled together as part of your program&#8217;s executable).&nbsp;</p><p>The main visibility levels are:</p><ul><li><p><strong>Public</strong> -- these methods and variables can be accessed by any code with access to the object whether in the same assembly or not.</p></li><li><p><strong>Protected </strong>-- these methods and variables can only be accessed by code in the same class or subclass (subclasses are classes derived from a parent class--no need to worry about them for now until we learn about inheritance).&nbsp;&nbsp;</p></li><li><p><strong>Private </strong>-- these methods and variables can only be accessed by code in the same class.</p></li><li><p><strong>Internal </strong>-- these methods and variables can only be accessed by code in the same assembly.</p></li></ul><p>If you skip declaring an access level, then a default visibility is used--class variables and methods default to <em><code>private</code></em> while classes default to <em><code>internal</code></em>.&nbsp;&nbsp;</p><p>Access levels are best illustrated with an example.&nbsp; We&#8217;ll largely be concerned with just the public and private access levels.&nbsp; So, let's revisit our Ninja class example in our script.&nbsp; </p><p>Right now the <em><code>Fundamentals</code></em> script is running in a class of its own as you can surmise from the code.&nbsp; The <em><code>Fundamentals</code></em> script and the Ninja objects created within it are logically separate objects.</p><p>In the <em><code>Start()</code></em> function of the <em><code>Fundamentals</code></em> script, we instantiated a ninja object and then called its <em><code>.Yell()</code></em> method.&nbsp; We were able to do this because the <code>.</code><em><code>Yell()</code></em> method was created with a <em><code>public</code> </em>access level.&nbsp; If we had created the function with a <em><code>private</code> </em>access level, the call would have failed.</p><p>The same logic applies to the variables in our Ninja class.&nbsp; Go to your Ninja class code and change the power level attribute to public for now.</p><blockquote><pre><code>public int power = 10;</code></pre></blockquote><p></p><p>Now in the <em><code>Start()</code></em> function of <em><code>Fundamentals.cs</code></em> try the following:</p><blockquote><pre><code>Ninja ninja1 = new Ninja();</code></pre><pre><code>ninja1.power = 20;&nbsp; <em>// since power is public, this works</em></code></pre><pre><code>Debug.Log(ninja1.power);&nbsp; <em>// ...and so does this
</em></code></pre><pre><code><em>// However, if you try this, it will fail:</em></code></pre><pre><code><em>// this fails because suitColor is set to private</em>
ninja1.suitColor = "black";&nbsp; </code></pre></blockquote><p></p><p>Private attributes can only be accessed by code within the class.</p><p>This sort of access level restriction is beneficial for code design, data security, proper encapsulation and separation of concerns within a program&#8217;s design.&nbsp; These benefits will become clearer the more you code and the larger your projects become.</p><p>The last thing worth mentioning here is variable <em><strong>scope</strong></em>.&nbsp; This refers to which variables can be accessed from different blocks of your code.&nbsp; This is different from access level modifiers which are enforced at runtime.&nbsp; Variable scopes are enforced at write-time, or compile time.&nbsp;&nbsp;</p><p>Let's revisit the Ninja class.&nbsp; I&#8217;ll add some new comments, a new private variable (<em><code>BoxOfTricks</code></em>) and a new method (<em><code>ShowTricks</code></em>).</p><blockquote><pre><code>public class Ninja&nbsp;</code></pre><pre><code>{</code></pre><pre><code>&#9;// <strong>Scope:</strong>&nbsp; All variables declared within this class block
        // have <em>class scope</em> and can&nbsp;be accessed by all code in 
        // this class</code></pre><pre><code>&#9;private int power = 10;</code></pre><pre><code>&#9;private int health = 5;</code></pre><pre><code>&#9;private float speed = 3.5;</code></pre><pre><code>&#9;private string weapon = "katana";</code></pre><pre><code>&#9;private string suitColor = "red";</code></pre><pre><code>&#9;private List&lt;string&gt; BoxOfTricks = new List&lt;string&gt;() {</code></pre><pre><code>&#9;&#9;"Cyclone Kick",</code></pre><pre><code>&#9;&#9;"Shuriken Flurry",</code></pre><pre><code>&#9;&#9;"Invisibility Cloak"</code></pre><pre><code>        };</code></pre><pre><code>&#9;public Ninja() {</code></pre><pre><code>&#9;&#9;Debug.Log(&#8220;Ninja created with default values&#8221;);</code></pre><pre><code>        }</code></pre><pre><code>&#9;public Ninja(string weapon, string suitColor) {</code></pre><pre><code>&#9;&#9;this.weapon = weapon;</code></pre><pre><code>&#9;&#9;this.suitColor = suitColor;</code></pre><pre><code>&#9;}</code></pre><pre><code>&#9;public void changeWeapon(string nextWeapon) {</code></pre><pre><code>&#9;&#9;// <strong>Scope:</strong>&nbsp; the <em>nextWeapon</em> parameter is passed into
                // this method and has <em>method level scope only</em>.&nbsp;
                // So, it does not exist outside this method.&nbsp; The
                // same applies for any variables declared within
                // a method.</code></pre><pre><code>&#9;&#9;// As you can see, the <em>weapon</em> variable can be
                // accessed here because it has a class level scope</code></pre><pre><code>&#9;&#9;weapon = nextWeapon;</code></pre><pre><code>&#9;}</code></pre><pre><code>&#9;public void changeSuit(string nextColor) {</code></pre><pre><code>&#9;&#9;suitColor = nextColor;</code></pre><pre><code>&#9;}</code></pre><pre><code>&#9;public void Yell() {</code></pre><pre><code>&#9;&#9;Debug.Log($"Yee-haw! I am a {suitColor} ninja with 
                           a giant {weapon}!");</code></pre><pre><code>&#9;}</code></pre><pre><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#9;public void ShowTricks() {</code></pre><pre><code>&#9;&#9;// <strong>Scope:</strong>&nbsp; <em>BoxOfTricks</em> is accessible because it was
                // declared at the class level but the <em><strong>i</strong></em> variable
                // is created in the for loop block, so it&#8217;s not
                // accessible outside this block. It has <em>block</em>
                // <em>level scope only</em>.</code></pre><pre><code>&#9;&#9;for(int i = 0; i &lt; BoxOfTricks.Count; i++) {</code></pre><pre><code>&#9;&#9;&#9;Debug.Log($"Behold my {BoxOfTricks[i]}!");</code></pre><pre><code>&#9;&#9;}</code></pre><pre><code>&#9;&#9;// the <em><strong>i</strong></em> variable does not exist here</code></pre><pre><code>&#9;}</code></pre><pre><code>}</code></pre></blockquote><p></p><p>The rule of thumb with scope is that variables are accessible only within the code block they are declared within. These code blocks are usually at the:</p><ul><li><p><strong>Class level</strong> -- the variable can be accessed only within the class it is declared</p></li><li><p><strong>Method level</strong> -- the variable can be accessed only within the method it is declared</p></li><li><p><strong>Block level</strong> -- the variable can be accessed only within the code block it is declared, such as a looping block</p></li></ul><p>That&#8217;s a wrap on the concept of classes.&nbsp; You&#8217;ll find yourself using classes extensively because they are a fundamental aspect of object-oriented design.&nbsp; When applied well they promote good code design and structure.&nbsp; So let&#8217;s get a little practice using classes.</p><p></p><h3><strong>Try it out</strong></h3><p>You&#8217;ve been tasked with creating a set of class structures to represent characters in your new game and the characters&#8217; weapons.&nbsp; Here is your brief:</p><p>Create a class to represent a warrior.&nbsp;&nbsp;</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!nCtz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e473b63-d676-47a5-8299-e47a25b9b71a_900x600.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!nCtz!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e473b63-d676-47a5-8299-e47a25b9b71a_900x600.jpeg 424w, https://substackcdn.com/image/fetch/$s_!nCtz!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e473b63-d676-47a5-8299-e47a25b9b71a_900x600.jpeg 848w, https://substackcdn.com/image/fetch/$s_!nCtz!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e473b63-d676-47a5-8299-e47a25b9b71a_900x600.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!nCtz!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e473b63-d676-47a5-8299-e47a25b9b71a_900x600.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!nCtz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e473b63-d676-47a5-8299-e47a25b9b71a_900x600.jpeg" width="900" height="600" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/7e473b63-d676-47a5-8299-e47a25b9b71a_900x600.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:600,&quot;width&quot;:900,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:110779,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!nCtz!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e473b63-d676-47a5-8299-e47a25b9b71a_900x600.jpeg 424w, https://substackcdn.com/image/fetch/$s_!nCtz!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e473b63-d676-47a5-8299-e47a25b9b71a_900x600.jpeg 848w, https://substackcdn.com/image/fetch/$s_!nCtz!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e473b63-d676-47a5-8299-e47a25b9b71a_900x600.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!nCtz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e473b63-d676-47a5-8299-e47a25b9b71a_900x600.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Warrior attributes are&nbsp;</p><ul><li><p>Name</p></li><li><p>Warrior type (Amazonian, Hulkian, Monkian or Smurfian)</p></li><li><p>Health (0 to 100)</p></li><li><p>Power (0 to 10)</p></li><li><p>Sigil color</p></li><li><p>Weapon (created from the <em>Weapon</em> class)</p></li><li><p>Goodie bag</p></li></ul><p>Warrior behaviors are&nbsp;</p><ul><li><p>Greeting -- Print a hello message with their name</p></li><li><p>Strike -- Print the damage amount they can inflict which is:<br> <em><code>weapon&#8217;s damage amount * warrior&#8217;s power</code></em></p></li><li><p>Take Hit -- decrease the Health score by the damage amount passed to this method</p></li><li><p>Inventory -- Print what&#8217;s in their Goodie Bag</p></li><li><p>Empty Bag -- ability to empty the bag at once (clear it)</p></li><li><p>Select Item -- ability to pick an item from the bag using the name of the item</p></li><li><p>Stash Item -- ability to place items into the bag by name only</p></li><li><p>Discard Item -- ability to remove and discard an item from the bag</p></li></ul><p></p><p>Create a class to represent a weapon (which can be owned by the characters).</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!mdEe!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ffa1f1adb-3be6-4c91-8b94-329f6fd0d7bd_900x600.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!mdEe!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ffa1f1adb-3be6-4c91-8b94-329f6fd0d7bd_900x600.jpeg 424w, https://substackcdn.com/image/fetch/$s_!mdEe!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ffa1f1adb-3be6-4c91-8b94-329f6fd0d7bd_900x600.jpeg 848w, https://substackcdn.com/image/fetch/$s_!mdEe!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ffa1f1adb-3be6-4c91-8b94-329f6fd0d7bd_900x600.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!mdEe!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ffa1f1adb-3be6-4c91-8b94-329f6fd0d7bd_900x600.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!mdEe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ffa1f1adb-3be6-4c91-8b94-329f6fd0d7bd_900x600.jpeg" width="900" height="600" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/fa1f1adb-3be6-4c91-8b94-329f6fd0d7bd_900x600.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:600,&quot;width&quot;:900,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:93074,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!mdEe!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ffa1f1adb-3be6-4c91-8b94-329f6fd0d7bd_900x600.jpeg 424w, https://substackcdn.com/image/fetch/$s_!mdEe!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ffa1f1adb-3be6-4c91-8b94-329f6fd0d7bd_900x600.jpeg 848w, https://substackcdn.com/image/fetch/$s_!mdEe!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ffa1f1adb-3be6-4c91-8b94-329f6fd0d7bd_900x600.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!mdEe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ffa1f1adb-3be6-4c91-8b94-329f6fd0d7bd_900x600.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Weapon attributes are&nbsp;</p><ul><li><p>Weapon type (sword, battle axe, crossbow, spear, machete, slingshot, morningstar, club)&nbsp;</p></li><li><p>Damage amount (1 to 5)</p></li><li><p>Weapon ID</p></li></ul><p>Create instances of the different warrior types and assign them different types of weapons.&nbsp;&nbsp;</p><p>Have fun with this exercise and see if you can get the striking and &#8220;take a hit&#8221; functions to work correctly between combatting warriors.</p>]]></content:encoded></item><item><title><![CDATA[An Artist's Guide to C# in Unity3D: Functions and Methods]]></title><description><![CDATA[This article is part of an ongoing series for code-leaning artists who want to learn Unity 3D. In this article we learn about functions and methods.]]></description><link>https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-functions</link><guid isPermaLink="false">https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-functions</guid><dc:creator><![CDATA[Siggy]]></dc:creator><pubDate>Mon, 21 Dec 2020 03:45:22 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!5bu6!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd3943ff-8343-412a-84d1-d8a6c4290519_900x600.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>This article is part of an ongoing series for code-leaning artists who want to learn Unity 3D. In this article we learn about functions and methods.</em></p><p><em>Read Previous:&nbsp;<a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-flow">Flow Control</a></em></p><div><hr></div><p>Congratulations for making it this far, you motivated learner!&nbsp;&nbsp;</p><p>This is the last topic in our C-sharp fundamentals section.&nbsp; After this, you could pretty much write your own game with the knowledge you already have&#8212;pretty much.&nbsp;&nbsp;</p><p>So, let's continue with functions and methods.&nbsp; For our purposes, I&#8217;ll use the terms <em>function</em> and <em>method</em> almost interchangeably.&nbsp; The difference between a function and a method is purely contextual&#8212;similar to the difference between a man and a husband (or a woman and a wife). &nbsp; A husband is just a man within the context of matrimony.&nbsp; All husbands are men, but not all men are husbands.</p><p>The same applies to functions and methods.&nbsp; All methods are just functions that are <em>associated </em>with an object.  Incidentally, in C-sharp all functions are associated with an object, so the difference is negligible.&nbsp; We&#8217;ll learn more about objects in an upcoming lesson about classes.</p><p>For this lesson let's stick mostly with the term <em>function</em>.&nbsp; Where I use the term method, you can understand that to mean the same thing as function.</p><p></p><h3>Function Basics</h3><p>A function is a chunk of code that you assign to an identifier, the same way a variable is a piece of data that you also assign to an identifier.&nbsp; If a variable is a container for data, then a function is a container for code.&nbsp; We use functions for organization, good program structure and code reusability.&nbsp;&nbsp;</p><p>If we view functions as containers for code, we should mention a few things about this container.&nbsp; For one thing, once the code is written, it helps to think of the function as a black box, or at least a self-contained box.&nbsp; This box accepts specific input data from one end, crunches this data internally, and then spits new data out of another end.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!5bu6!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd3943ff-8343-412a-84d1-d8a6c4290519_900x600.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!5bu6!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd3943ff-8343-412a-84d1-d8a6c4290519_900x600.png 424w, https://substackcdn.com/image/fetch/$s_!5bu6!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd3943ff-8343-412a-84d1-d8a6c4290519_900x600.png 848w, https://substackcdn.com/image/fetch/$s_!5bu6!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd3943ff-8343-412a-84d1-d8a6c4290519_900x600.png 1272w, https://substackcdn.com/image/fetch/$s_!5bu6!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd3943ff-8343-412a-84d1-d8a6c4290519_900x600.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!5bu6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd3943ff-8343-412a-84d1-d8a6c4290519_900x600.png" width="900" height="600" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/dd3943ff-8343-412a-84d1-d8a6c4290519_900x600.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:600,&quot;width&quot;:900,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:63470,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!5bu6!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd3943ff-8343-412a-84d1-d8a6c4290519_900x600.png 424w, https://substackcdn.com/image/fetch/$s_!5bu6!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd3943ff-8343-412a-84d1-d8a6c4290519_900x600.png 848w, https://substackcdn.com/image/fetch/$s_!5bu6!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd3943ff-8343-412a-84d1-d8a6c4290519_900x600.png 1272w, https://substackcdn.com/image/fetch/$s_!5bu6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd3943ff-8343-412a-84d1-d8a6c4290519_900x600.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The basic syntax looks like this:</p><blockquote><pre><code><em><strong>access_level return_type function_name(parameter_list)&nbsp;
{
&nbsp;&nbsp;&nbsp;&nbsp;function_body
}</strong></em></code></pre></blockquote><p>The components of a function are:</p><ul><li><p><strong>function name</strong> &#8212; this is the identifier you&#8217;ll use to reference and call the function</p></li><li><p><strong>parameter list</strong>&nbsp; &#8212; the input data provided to function, usually represented as a comma-separated list of variables.&nbsp; If the function doesn&#8217;t accept any parameters this is left blank.</p></li><li><p><strong>function body</strong> &#8212; this is your function&#8217;s code&#8212;the guts of the function.&nbsp; Every time the function is called, this code is executed from top to bottom.&nbsp;</p></li><li><p><strong>return type</strong> &#8212; when the function is called it returns a value of this data type</p></li><li><p><strong>access level</strong> &#8212; functions have different access levels to determine who (which objects) can call them.&nbsp; It makes more sense to cover this in an upcoming lesson about classes, so I won't say anymore about this here. We will skip the access level for all our examples in this lesson.</p></li></ul><p></p><p>Let&#8217;s look at the example of a temperature conversion function.&nbsp; This function could accept a temperature value in <em>Fahrenheit</em>, run its internal conversion equation, and then output a new temperature value in <em>Celsius</em>.&nbsp; We&#8217;ll call the function <em><code>TemperatureConverter</code></em>.</p><p>If you&#8217;re using the <em><code>Fundamentals.cs</code></em> file, place the following code right after the <em><code>Start()</code></em> method&#8212;just below the bottom curly brace ( } ) but before the <em><code>Update()</code></em> method.</p><blockquote><pre><code>float TemperatureConverter(float fahrenheit)&nbsp;
{
&nbsp;&nbsp;&nbsp;&nbsp;// our code will go here
}</code></pre></blockquote><p></p><p>In the code above, we skipped the <em>access level</em> and started with the <em>return type</em>.&nbsp; Since this is expected to be the temperature value in Celsius, we opted for a data type of float.&nbsp; Then we used the name <em><code>TemperatureConverter</code></em> followed by a list of parameters (expected inputs) enclosed in parentheses. We&#8217;re only expecting one input variable so we list it with the right data type and name it accordingly&#8212;<em><code>float fahrenheit</code></em>.&nbsp;&nbsp;</p><p>Right now, our function body is empty.&nbsp; It just contains the comment, <code>&#8220;</code><em><code>our code goes here&#8221;</code></em>.&nbsp; Let's make it do some real work and properly return the Celsius value.</p><blockquote><pre><code>float TemperatureConverter(float fahrenheit)&nbsp;
{
&nbsp;&nbsp;&nbsp;&nbsp;// we use the <em>fahrenheit-to-celsius</em> conversion equation 
    // to get the <em>celsius</em> value,&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;// then we assign it to a variable

&nbsp;&nbsp;&nbsp;&nbsp;float celsius = (fahrenheit &#8722; 32) * 5/9;&nbsp;


&nbsp;&nbsp;&nbsp;&nbsp;// then we return the <em>celsius </em>value as the output

&nbsp;&nbsp;&nbsp;&nbsp;return celsius;&nbsp;&nbsp;
}</code></pre></blockquote><p></p><p>There.&nbsp;&nbsp;</p><p>We have a functional <em><code>TemperatureConverter</code></em>, umm&#8230; function.&nbsp; Let&#8217;s use it in code.</p><p>In the <em><code>Start()</code></em> method lets add some more code that calls the <em><code>TemperatureConverter</code></em>.&nbsp; Modify the method to look like this:</p><blockquote><pre><code>void Start() {

&nbsp;&nbsp;&nbsp;&nbsp;float fahrenheit = 36;&nbsp; // 36 degrees Fahrenheit
&nbsp;&nbsp;&nbsp;&nbsp;float celsius;          // no value yet

&nbsp;&nbsp;&nbsp;&nbsp;// now call our converter function to get a celsius value
&nbsp;&nbsp;&nbsp;&nbsp;// <em><strong>Note</strong>: the data type of the variable passed to the</em>&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;// <em>function must match what the function expects</em>

&nbsp;&nbsp;&nbsp;&nbsp;celsius = TemperatureConverter(fahrenheit);
&nbsp;&nbsp;&nbsp;&nbsp;Debug.Log($"{fahrenheit} Fahrenheit is {celsius} Celsius");

}</code></pre></blockquote><p></p><p>This is great so far.</p><p>Right now our function is only useful if we have a Fahrenheit value and want to convert it to Celsius.&nbsp; What about going the other way?&nbsp; Passing a Celsius value to get a Fahrenheit value back?&nbsp; Well, one option is to write another function, just like the one we have, to convert from Celsius to Fahrenheit values. However, that seems like doubling our work for not much gain.&nbsp;&nbsp;</p><p>What if we modified our function to accept a second parameter that indicates what type of value we are providing.&nbsp; Then we would know which type of value to return.</p><p>For example, if we passed the values <code>36</code> and <code>&#8220;fahrenheit&#8221;</code>, the function would know it was receiving Fahrenheit readings and therefore return a Celsius value. However, if the second parameter was <code>&#8220;celsius&#8221;</code> then it would convert to and return a Fahrenheit value.</p><p>Let&#8217;s make those changes to <em><code>TemperatureConverter</code></em>.</p><blockquote><pre><code>float TemperatureConverter(float temperature, string scale)&nbsp;
{
&nbsp;&nbsp;&nbsp;&nbsp;// declare a local variable that will hold our new temperature
&nbsp;&nbsp;&nbsp;&nbsp;float convertedTemperature;

&nbsp;&nbsp;&nbsp;&nbsp;// we create a set of&nbsp; if-else clauses, to check 
    // the <em>scale </em>parameter

&nbsp;&nbsp;&nbsp;&nbsp;if (scale == "fahrenheit")&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// convert to celsius
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;convertedTemperature = (temperature &#8722; 32) * 5/9;
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;else if (scale == "celsius")
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// convert to fahrenheit
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;convertedTemperature = (temperature * 9/5) + 32;
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;else{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// print error message if scale is unknown
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Debug.Log("Error: Unrecognized temperature scale!");
&nbsp;&nbsp;&nbsp;&nbsp;}

&nbsp;&nbsp;&nbsp;&nbsp;// then we return the converted value as the output
&nbsp;&nbsp;&nbsp;&nbsp;return convertedTemperature;&nbsp;&nbsp;
}</code></pre></blockquote><p></p><p>Now the code in the <em><code>Start()</code></em> method should be changed to something like this:</p><blockquote><pre><code>void Start() {

&nbsp;&nbsp;&nbsp;&nbsp;float temp = 36;&nbsp; // 36 degrees Fahrenheit
&nbsp;&nbsp;&nbsp;&nbsp;string tempScale = "fahrenheit";
&nbsp;&nbsp;&nbsp;&nbsp;float convertedTemp;
&nbsp;&nbsp;&nbsp;&nbsp;string convertedScale;

&nbsp;&nbsp;&nbsp;&nbsp;// Now call our converter function to get a celsius value
&nbsp;&nbsp;&nbsp;&nbsp;// <em><strong>Note:</strong></em> the data type of the variable passed to the&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;// function must match what the function expects

&nbsp;&nbsp;&nbsp;&nbsp;convertedTemp = TemperatureConverter(temp, tempScale);

&nbsp;&nbsp;&nbsp;&nbsp;// show the right convertedScale to use in the print message
&nbsp;&nbsp;&nbsp;&nbsp;if (tempScale == "fahrenheit")
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;convertedScale = "celsius";
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;else if (tempScale == "celsius")
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;convertedScale == "fahrenheit";
&nbsp;&nbsp;&nbsp;&nbsp;}

&nbsp;&nbsp;&nbsp;&nbsp;Debug.Log($"{temp} {tempScale} is
                {convertedTemp} {convertedScale}");

}</code></pre></blockquote><p></p><p>Play around with the <em><code>temp</code> </em>and <em><code>tempScale</code> </em>values to get different results.</p><p>Finally, what if we want to create a function that doesn&#8217;t return any values.&nbsp; Maybe a function that just prints the current date and time to the console and nothing else. Functions with no return value use the keyword <em><code>void</code> </em>as their return type&#8212;as in, they return a <em>void</em>.</p><p>Here is our function to print the date and time.</p><blockquote><pre><code>// The function uses the <em><strong>void</strong></em> keyword to indicate that it 
// doesn&#8217;t return anything. It's <em>parameter list</em> is also empty
// because it doesn&#8217;t take any parameters</code></pre><pre><code>void PrintTimeNow()
{
&nbsp;&nbsp;&nbsp;&nbsp;// we print the current time and date 
    // using C#'s built-in <em>DateTime</em> object

&nbsp;&nbsp;&nbsp;&nbsp;Debug.Log(DateTime.Now);

}</code></pre></blockquote><p></p><p>Add a line in the <em><code>Start()</code></em> method to call this <em><code>PrintTimeNow</code> </em>function.</p><blockquote><pre><code>PrintTimeNow();</code></pre></blockquote><p></p><p>Now the date and time gets printed to the console as expected.</p><p></p><h3>Try it out</h3><p>Time to practice creating different functions on your own.&nbsp; Here are a few exercises to test your knowledge.</p><ol><li><p>Create a function to calculate the area of a circle.&nbsp; The formula for calculating a circle&#8217;s area is <em><code>area = pi * (radius * radius)</code></em>.&nbsp; Use <em><code>3.14</code></em> for the value of <em><code>pi</code></em>.&nbsp; The function should accept just one parameter&#8212;<em><code>radius</code></em>&#8212;and return the area of a circle with the given radius.</p></li><li><p>Write a function that takes an integer between <em><code>1</code></em> and <em><code>7</code></em> and returns the corresponding day of the week spelled out.&nbsp; So, <em><code>1</code></em> should return <em><code>&#8220;Sunday&#8221;,</code></em> <em><code>2</code></em> should return <em><code>&#8220;Monday&#8221;</code></em>, <em><code>3</code></em> should return <em><code>&#8220;Tuesday&#8221;</code></em> and so on.&nbsp; Do the same for the months of the year (<em><code>1 - 12</code></em>).</p></li><li><p>This last exercise is closer to something you&#8217;re likely to write during game development&#8212;a function that inflicts health damage on a character.&nbsp; To start with, create a variable to store your character&#8217;s <em><code>health</code></em> and set it to <code>10</code> (remember to place this just above the <em><code>Start()</code></em> method).&nbsp; <br><br>Next, create a function called <em><code>DamageHealth</code></em> which accepts one integer parameter called <em><code>damage</code></em>.&nbsp; This is the amount of <em>&#8220;damage&#8221;</em> to subtract from the character&#8217;s health.&nbsp; Add code to prevent the health score from dropping below zero (<em><code>0</code></em>).&nbsp; Print the health value after each call.</p></li></ol><p></p><p>Congratulations!&nbsp;&nbsp;</p><p>Give yourself a well-deserved pat on the back.&nbsp;&nbsp;</p><p>You now understand the fundamentals of C-sharp.&nbsp; And, believe it or not, you could write a full game with the knowledge you currently possess.&nbsp;&nbsp;</p><p>You could branch off from here and start experimenting with creations of your own, or you could continue with the upcoming lessons to gain intermediate knowledge and try your hand at some guided projects.</p><div><hr></div><p><em><strong>An Artist's Guide to C# in Unity3D</strong></em></p><ol><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-setting">Setting up your environment</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity-creating">Creating your first script</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-common">Common data types and variables</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-operators">Operators</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-collections">Collections</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-flow">Flow Control</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-functions">Functions and Methods</a></em></p></li></ol><div><hr></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://notebook.siggyworks.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://notebook.siggyworks.com/subscribe?"><span>Subscribe now</span></a></p><p></p>]]></content:encoded></item><item><title><![CDATA[An Artist's Guide to C# in Unity3D: Flow Control]]></title><description><![CDATA[This article is part of an ongoing series for code-leaning artists who want to learn Unity 3D. In this article we learn about mechanisms for controlling the execution flow of your programs.]]></description><link>https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-flow</link><guid isPermaLink="false">https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-flow</guid><dc:creator><![CDATA[Siggy]]></dc:creator><pubDate>Fri, 18 Dec 2020 21:40:23 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!smrG!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1b625a75-8365-4e32-bb36-4ed4753c89bd_1024x768.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>This article is part of an ongoing series for code-leaning artists who want to learn Unity 3D. In this article we learn about mechanisms for controlling the execution flow of your programs.</em></p><p><em>Read Previous: <a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-collections">Collections</a></em></p><div><hr></div><p>We&#8217;ve learned quite a bit already about coding in C-sharp--variables, data types, operators and collections.  However, we still can&#8217;t do much in our programs without a way to:</p><ul><li><p>Make branching decisions</p></li><li><p>Conditionally repeat an action or block of actions</p></li><li><p>Iterate through items of a collection</p></li></ul><p>For example, say you have a list of 100 city temperatures in Fahrenheit and wish to convert all 100 values to Celsius.  How would you do that?  You need a way to run through your entire list and perform the conversion equation on each value.</p><p>Or say you have a player character running around in your video game world.  You&#8217;ve placed several different types of objects around the world for the character to run into.  Some objects may be coins to add to his wallet, health tokens to give him extra health points or poisonous bushes that reduce his health points.  You would need a way to make decisions based on what type of object your player has collided with.  </p><p>These are all examples of flow control in a program&#8217;s structure.</p><p></p><h3>Making branching decisions</h3><p>The primary device for making branching decisions is the logical <em>if-else statement</em>.  It tells your program to execute one block of code if a set of conditions is <em><strong>true</strong></em>, but execute a different block of code if those conditions are <em><strong>false</strong></em>.  The basic form looks like this:</p><blockquote><pre><code><em>if ( expression_is_true) 
{
   // Run all the code in this block
}
else 
{
  // ...run the code here instead
} </em></code></pre></blockquote><p></p><p>The <em>expression_is_true </em>should be replaced with an expression that the compiler can evaluate into a <em>boolean </em>value.  This likely means using logic or comparison operators.</p><p>Here&#8217;s an example.  Your character stumbles on a clover and you would like to print different messages depending on the number of leaves found on the clover.</p><blockquote><pre><code>int cloverLeaves = 4;  // set to 4 or some other number

if(cloverLeaves == 4)
{
    Debug.Log("Yippee! Today is my lucky day!");
}
else 
{
    Debug.Log("Shucks! No luck today!");
}</code></pre></blockquote><p></p><p>In this example, the statement in the <em>if-clause</em> checks to see if <em><code>cloverLeaves </code></em>is equal to <code>4</code>. It then proceeds down one of two paths, depending on whether that statement is true or not.  This is the most basic form of branching you&#8217;ll create.  </p><p>You can also have the <em>if-clause</em> alone, if your logic doesn&#8217;t require an <em>else-clause</em>.</p><blockquote><pre><code>if(cloverLeaves == 4) 
{
    Debug.Log("Yippee! Today is my lucky day!');
}</code></pre></blockquote><p></p><p>There is also an <em>if-else-if statement</em> you can use.  This adds an extra evaluation clause and code block to the entire construct.  For example, what if we also want to check if the clover has <code>5</code> or more leaves?  Our code would look like this</p><blockquote><pre><code>if(cloverLeaves == 4) 
{
    Debug.Log("Yippee! Today is my lucky day!");
}
else if (cloverLeaves &gt;= 5) 
{
    Debug.Log("Today is an unusual day!");
}
else 
{
    Debug.Log("Shucks! No luck today!");
}</code></pre></blockquote><p></p><p>We now have three possible branches our code could take depending on the value of <em><code>cloverLeaves</code></em>.  It's important to note that when our running program encounters this code, it will only select one of these branches to run, before continuing through the rest of your program. </p><p>At this point, you may be wondering if you can add more <em>else-if</em> clauses to this structure.  The answer is, &#8220;yes!&#8221;  </p><p>You can add as many <em>else-if</em> clauses as you like.  Let's add another one to handle a clover with three leaves or fewer.  I&#8217;ll rearrange the order of the clauses so the conditional numbers are arranged incrementally--it's just easier to read and understand.</p><blockquote><pre><code>if (cloverLeaves &lt;= 3) 
{
    Debug.Log("Meh! Nothing special today!");
}
else if (cloverLeaves == 4) 
{
    Debug.Log("Yippee! Today is my lucky day!");
}
else if (cloverLeaves &gt;= 5) 
{
    Debug.Log("Hmm, today is an unusual day!");
}
else 
{
    Debug.Log("Shucks! No luck today!");
}</code></pre></blockquote><p></p><p>Ok, now I would like to add yet another clause to handle exactly two leaves.  I could add it to my existing stack of clauses, but at this point it's starting to get a bit long for my liking.  If you have more than four or five branches to string together, there is another feature we can use called a <em>switch statement</em>.</p><p><em>Switch</em> statements take an expression and then execute the code block that exactly matches the expression value.  Each code block in a switch statement is labeled with a <em>case clause</em> which must be a literal data value and NOT a variable. There is no limit to the number of cases allowed in a switch statement block.</p><p>The syntax for a switch statement looks like this:</p><blockquote><pre><code>switch(<em>expression</em>) {
   case <em>literal_value1</em>:
      // this code runs if <em>expression == literal_value1</em>
      break;
   case <em>literal_value2</em>:
   case <em>literal_value3</em>:
      // this code runs if <em>expression == literal_value2</em> or
      // <em>expression == literal_value3</em>
      break;
   case <em>literal_value4</em>:
      // this code runs if <em>expression == literal_value4</em>
      break;
   default:   
      // this code runs if <em>expression </em>does NOT match any of 
      // the literal values above
      break;
}</code></pre></blockquote><p></p><p>Additionally, every <em>case clause</em> must be terminated with a <em><code>break</code></em><code> </code>statement.  The last clause is simply called <em><code>default </code></em>and will run if none of the previous case clauses match the expression. </p><p>Default clauses are optional.</p><p>Let's refactor our clover leaf branching logic to use a switch statement instead of a string of if-else statements.  We&#8217;ll also add the extra code to handle clovers with two leaves.</p><blockquote><pre><code>int cloverLeaves;  // assign this to any number between 2 and 5

switch(cloverLeaves) {
    case 2:
        Debug.Log("Ooh, you better go ring shopping!");
        break;
    case 3:
        Debug.Log("Meh! Nothing special today!");
        break;
    case 4:
    case 5:
        Debug.Log("Yay! It&#8217;s a lucky day!");
        break;
    default:
        Debug.Log("Dude! Are you sure it's even a clover leaf??");
        // this clause will run if <em>cloverLeaves</em> is set<em> </em>to anything
        // other than 2, 3, 4 or 5
}</code></pre></blockquote><p></p><h3>Conditionally repeat a block of actions</h3><p>Sometimes you may need to repeat an action or group of actions several times.  We&#8217;ll start by learning two ways of implementing loops in C-sharp.  </p><ul><li><p><em>for</em> loops</p></li><li><p><em>while</em> loops</p></li></ul><p>These loops accomplish the same thing--repeating a particular block of code one or more times.  However they accomplish this in different ways depending on the scenario.</p><p><em><strong>for </strong></em><strong>loops</strong></p><p><em><code>for </code></em>loops are best used when you know how many times you want your code block to run.  The basic syntax is:</p><blockquote><pre><code><em>for (initialize counter; termination expression; increment counter) 
{
&#9;// this code will run multiple times until 
        // the termination expression is <strong>false</strong>
} </em></code></pre></blockquote><p></p><p>So what&#8217;s going on here?  The <em>for statement</em> has three parts to it.  </p><ol><li><p>A counting variable (usually an integer) must be initialized to a starting value like <code>0.</code></p></li><li><p>Before each attempt to execute the code block, the program checks the <em>termination expression</em>.  If the expression evaluates to <em><strong>true</strong></em>, then it executes the code block.  If the termination expression evaluates to <em><strong>false</strong></em>, it will terminate the loop and continue with the rest of your program.</p></li><li><p>After every execution of the code block, the program increments the counter by a specified amount&#8212;usually <code>1</code>.</p></li></ol><p>Let&#8217;s look at a trivial example.  </p><p>Remember when you had to write lines in school for punishment? (Or am I the only one?)</p><p>I once had to write the following line 100 times: </p><blockquote><p><em>&#8220;I will not pour glue on my neighbors chair!&#8221;</em>  </p></blockquote><p>If I knew how to code back then, I could&#8217;ve saved myself a lot of time.  Using a <code>for</code> loop I could&#8217;ve done it this way:</p><blockquote><pre><code>for (int i = 0; i &lt; 100; i++) {
    Debug.Log("I will not pour glue on my neighbor&#8217;s chair!");
}</code></pre></blockquote><p></p><p>That&#8217;s all there is to it.</p><p>We initialize a variable (the convention is to use an <em><code>i</code></em>) to <code>0</code>.  The termination expression is a check to see if <em><code>i</code></em> is less than <code>100</code>.  After each loop, we increment <em><code>i</code></em> by <code>1</code> using the <code>++</code> operator.  There is nothing special about incrementing by <code>1</code>.  If your logic required it, you could increment by any number like <code>4</code>&#8212;<code> i += 4</code>. But then it wouldn&#8217;t repeat 100 times, right?  And I&#8217;d still be in detention.</p><p><em><strong>while</strong></em><strong> Loops</strong></p><p>In some other scenarios you may not want to loop your code a fixed number of times.  Perhaps the type of loop you would like to create doesn&#8217;t depend on a strict counter.  </p><p>Let&#8217;s consider the example of continuously outputting an <em>&#8220;S.O.S&#8221;</em> message until it has been received by someone.  You could create a <em><code>received </code></em>variable and set it to false.  Then repeatedly print the SOS until <em><code>received </code></em>is set to true.  </p><p><em><code>while </code></em>loops look like this:</p><pre><code><em>while (termination expression is true) {
    // run this code ..
}</em></code></pre><p>Simple enough, right?  The thing with <em><code>while</code> </em>loops, is that it&#8217;s up to you to make sure your termination expression evaluates to true at some point, otherwise the loop will run forever.  Or at least until your machine crashes.  Seriously.</p><p>Following this syntax, our example would look like this:  </p><blockquote><pre><code>bool received = false;

while (received == false) {
    Debug.Log("S.O.S");
    // This message would print continuously, 
    // until confirmation is set to true
}</code></pre></blockquote><p>Note:  If you&#8217;re running this program in your <em><code>Fundamentals.cs</code></em> file from <a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity-creating">lesson two</a>, you&#8217;ll need a way to set the <em><code>received </code></em>variable to true otherwise this loop will run forever.  Let's modify our code so that <em><code>received </code></em>is flipped to true after 20 loops.</p><blockquote><pre><code>bool received = false;
int counter = 0;

while (received == false) {  
    Debug.Log("S.O.S");
    
    if (counter &gt; 19) {
        received = true;
    }
    counter++;
}</code></pre></blockquote><p></p><h3>Iterate through items of a collection</h3><p>Ok, now the last set of flow controls we&#8217;ll discuss is how to loop through all those fancy collections you learned about in the previous <a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-collections">lesson</a>.  </p><p>We can use <em><code>for </code></em>loops and <em><code>while </code></em>loops to accomplish this. Let&#8217;s start with a <em><code>for </code></em>loop.</p><p>Given this array:</p><blockquote><pre><code>String[] turtles = 
new string[4] {"Leonardo", "Michelangelo", "Raphael", "Donatello"}</code></pre></blockquote><p>We can write a simple iteration loop to pull each name from our array and print it out.  </p><p>Let&#8217;s recall the standard loop syntax for this:</p><blockquote><pre><code><em><code>for (initialize counter; termination expression; increment counter)  { &#9;
    // this code will run multiple times until          
    // the termination expression is </code><strong><code>false</code></strong><code> 
} </code></em></code></pre></blockquote><p></p><ul><li><p>We&#8217;ll set our initial <em>counter</em> variable to <code>0</code>.</p></li><li><p>We want the looping to stop once the counter reaches the end of our array.</p></li><li><p>We will increment the counter by <code>1</code>.</p></li></ul><p>Putting that all together, our loop will look like this:</p><blockquote><pre><code>for (int i = 0; i &lt; turtles.Length; i++)
{
    // we use <strong>i</strong> as the index of the item we want to retrieve
    // since <strong>i</strong> will be incremented from 0 through to the end
    // of the array we can use <strong>turtles[i]</strong> 
    // to get the array item

    Debug.Log($"Here comes {turtles[i]} to kick Shredder's butt!");
}</code></pre></blockquote><p>We can achieve the same thing with a <em><code>while </code></em>loop.  We just have to provide and increment our own counter.  Given the same array, here&#8217;s what a <em><code>while</code></em> loop would look like:</p><blockquote><pre><code>int index = 0;

while (index &lt; turtles.Length) 
{
    Debug.Log($"Here comes {turtles[i]} to kick Shredder&#8217;s butt!");
    index++;  // increments our counter at the end of each loop&#9;
}</code></pre></blockquote><p></p><p>Looping through arrays and looping through lists are almost identical. The only real difference is using <em><code>.Count</code></em> to get the size of the list instead of <em><code>.Length</code></em> for arrays.</p><p>Here&#8217;s a <em><code>for </code></em>loop:</p><blockquote><pre><code>List&lt;string&gt; turtles = new List&lt;string&gt;() {"Leonardo", "Michelangelo", "Raphael", "Donatello"};

for (int i = 0; i &lt; turtles.Count; i++) {
    Debug.Log($"Here comes {turtles[i]} to kick Shredder&#8217;s butt!");
}</code></pre></blockquote><p>And the <em><code>while </code></em>loop:</p><blockquote><pre><code><code>int index = 0;  

while (index &lt; turtles.Count)
{     
    Debug.Log($"Here comes {turtles[i]} to kick Shredder&#8217;s butt!");
    index++;  // increments our counter at the end of each loop&#9; 
}</code></code></pre></blockquote><p></p><p>There is another type of loop called the <em><code>foreach </code></em>loop which is commonly used for iterating through collections. Rather than use an incrementing index for referencing the items in the collection, <em><code>foreach </code></em>gives you the actual item as a variable in each loop iteration.</p><p>The basic syntax is:</p><blockquote><pre><code><em><code>foreach ( data_type variable in collection) {
    // code goes here to do something with </code><strong><code>variable</code></strong><code>;
} </code></em></code></pre></blockquote><p></p><p>Using our collection of turtles, a <em><code>foreach </code></em>loop would look like this:</p><blockquote><pre><code>foreach (string turtle in turtles) {
    Debug.Log($"Here comes {turtle} again!"); 

    // the variable, <em><strong><code>turtle</code></strong></em>, is the actual value retrieved 
    // from the collection or turtles--no indices needed
}</code></pre></blockquote><p></p><p>The <em><code>foreach </code></em>loop is particularly useful for looping through collections like dictionaries which aren&#8217;t indexed by number.  Looping through a dictionary requires the use of a new data type we haven&#8217;t encountered yet called a <em><strong><code>KeyValuePair</code></strong></em>.  This is a special data type for storing key-value pairs of a dictionary item.</p><p>The syntax for the key value pair looks like this:  <br><em><code>KeyValuePair&lt;data_type, data_type&gt;</code></em>, where the <em>data_types </em>match the dictionary to loop through.</p><p>First, let&#8217;s create our dictionary:</p><blockquote><pre><code>Dictionary&lt;string,string&gt; ninjaTurtles = new Dictionary&lt;string,string&gt;() {
    {&#8220;Leonardo&#8221;, &#8220;Leader&#8221;},
    {&#8220;Donatello&#8221;, &#8220;Hacker&#8221;},
    {&#8220;Raphael&#8221;, &#8220;Brawler&#8221;},
    {&#8220;Michelangelo&#8221;, &#8220;Party Boy&#8221;}
};</code></pre></blockquote><p></p><p>Now we&#8217;ll use a <em><code>KeyValuePair&lt;string, string&gt;</code></em> to match the data types of our dictionary.</p><blockquote><pre><code>foreach ( KeyValuePair&lt;string, string&gt; item in ninjaTurtles) {
    
    // Now we can access the <em><strong>key</strong></em><strong> </strong>with item.Key 
    // and the <em><strong>value</strong></em><strong> </strong>with item.Value

    Debug.Log($"{item.Key} is the {item.Value}!");
}</code></pre></blockquote><p>This will print out:</p><blockquote><pre><code>Leonardo is the Leader!
Donatello is the Hacker!
Raphael is the Brawler!
Michelangelo is the Party Boy!</code></pre></blockquote><p></p><h3><strong>Try it out</strong></h3><p>We&#8217;ve covered a lot of territory in this lesson.&nbsp; Understanding and using proper flow control is a fundamental aspect of writing code.&nbsp; The good thing is that these are just syntactic concepts to represent the way we naturally reason as human beings. </p><p>Let's get a little more practice before we move on to the next lesson.&nbsp;&nbsp;</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!smrG!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1b625a75-8365-4e32-bb36-4ed4753c89bd_1024x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!smrG!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1b625a75-8365-4e32-bb36-4ed4753c89bd_1024x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!smrG!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1b625a75-8365-4e32-bb36-4ed4753c89bd_1024x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!smrG!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1b625a75-8365-4e32-bb36-4ed4753c89bd_1024x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!smrG!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1b625a75-8365-4e32-bb36-4ed4753c89bd_1024x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!smrG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1b625a75-8365-4e32-bb36-4ed4753c89bd_1024x768.jpeg" width="1024" height="768" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/1b625a75-8365-4e32-bb36-4ed4753c89bd_1024x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:111057,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!smrG!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1b625a75-8365-4e32-bb36-4ed4753c89bd_1024x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!smrG!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1b625a75-8365-4e32-bb36-4ed4753c89bd_1024x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!smrG!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1b625a75-8365-4e32-bb36-4ed4753c89bd_1024x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!smrG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1b625a75-8365-4e32-bb36-4ed4753c89bd_1024x768.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>You&#8217;re writing code for a <strong>quality assurance robot at a toy factory</strong>.&nbsp; The robot receives a list of toys each with a quality score assigned.&nbsp; Quality scores range between <code>0.0</code> (if it's utter crap) and <code>10.0</code> (perfect).&nbsp; It's the robot&#8217;s job to sort the toys into the following bins according to their quality scores.</p><ul><li><p><strong>Discard</strong> bin:&nbsp;                <code>0 to 2.50</code></p></li><li><p><strong>Re-fabrication</strong> bin:     <code>2.51 to&nbsp; 6.50</code></p></li><li><p><strong>Refinishing</strong> bin:          <code>6.51 to 8.0</code></p></li><li><p><strong>Shipping bin</strong>:               <code>8.01 to 10.0</code></p></li></ul><p>Here is your quality test data. Copy-and-paste this into your script.</p><blockquote><pre><code><code>Dictionary&lt;string, float&gt; toyScores = new Dictionary&lt;string, float&gt; {
&nbsp;&nbsp;&nbsp;&nbsp;{"Z00M56R", 6.9},
&nbsp;&nbsp;&nbsp;&nbsp;{"Z00M14R", 7.8},
&nbsp;&nbsp;&nbsp;&nbsp;{"Z00M91R", 1.33},
&nbsp;&nbsp;&nbsp;&nbsp;{"Z00M28R", 9.93},
&nbsp;&nbsp;&nbsp;&nbsp;{"Z00M66R", 3.97},
&nbsp;&nbsp;&nbsp;&nbsp;{"Z00M72R", 6.5},
&nbsp;&nbsp;&nbsp;&nbsp;{"Z00M39R", 8.55},
&nbsp;&nbsp;&nbsp;&nbsp;{"Z00M87R", 2.509},
&nbsp;&nbsp;&nbsp;&nbsp;{"Z00M43R", 0.248},
&nbsp;&nbsp;&nbsp;&nbsp;{"Z00M15R", 4.41},
&nbsp;&nbsp;&nbsp;&nbsp;{"Z00M07R", 9.01},
}</code></code></pre></blockquote><ol><li><p>&nbsp;Create suitable collections to represent the four different bins.&nbsp; All they need to store is the toy&#8217;s serial id.</p></li><li><p>Iterate through the toy scores and place each toy in its correct bin.</p></li><li><p>Once the toys are sorted, print out the contents of each bin.&nbsp; How many toys are in each bin?&nbsp; Print that out too.</p></li></ol><p></p><p>Next, we&#8217;ll learn about <a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-functions">functions and methods</a>&#8212;the last topic of this introductory series to the fundamentals of C-sharp.</p><div><hr></div><p><em><strong>An Artist's Guide to C# in Unity3D</strong></em></p><ol><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-setting">Setting up your environment</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity-creating">Creating your first script</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-common">Common data types and variables</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-operators">Operators</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-collections">Collections</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-flow">Flow Control</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-functions">Functions and Methods</a></em></p></li></ol><div><hr></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://notebook.siggyworks.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://notebook.siggyworks.com/subscribe?"><span>Subscribe now</span></a></p><p></p>]]></content:encoded></item><item><title><![CDATA[7 Myths about Creativity]]></title><description><![CDATA[Creativity researchers and psychologists may disagree about exactly what creativity is, but there is growing consensus about what it certainly is not!]]></description><link>https://notebook.siggyworks.com/p/7-myths-about-creativity</link><guid isPermaLink="false">https://notebook.siggyworks.com/p/7-myths-about-creativity</guid><dc:creator><![CDATA[Siggy]]></dc:creator><pubDate>Wed, 16 Dec 2020 12:45:50 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!FPrt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fee919faa-e7cf-4c9a-9a5c-0d4f23092b8f_1024x496.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!FPrt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fee919faa-e7cf-4c9a-9a5c-0d4f23092b8f_1024x496.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!FPrt!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fee919faa-e7cf-4c9a-9a5c-0d4f23092b8f_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!FPrt!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fee919faa-e7cf-4c9a-9a5c-0d4f23092b8f_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!FPrt!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fee919faa-e7cf-4c9a-9a5c-0d4f23092b8f_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!FPrt!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fee919faa-e7cf-4c9a-9a5c-0d4f23092b8f_1024x496.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!FPrt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fee919faa-e7cf-4c9a-9a5c-0d4f23092b8f_1024x496.jpeg" width="1024" height="496" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/ee919faa-e7cf-4c9a-9a5c-0d4f23092b8f_1024x496.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:496,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:334008,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!FPrt!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fee919faa-e7cf-4c9a-9a5c-0d4f23092b8f_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!FPrt!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fee919faa-e7cf-4c9a-9a5c-0d4f23092b8f_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!FPrt!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fee919faa-e7cf-4c9a-9a5c-0d4f23092b8f_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!FPrt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fee919faa-e7cf-4c9a-9a5c-0d4f23092b8f_1024x496.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Photo by <a href="https://www.flickr.com/people/exesandbox/">evesandbox</a></em></figcaption></figure></div><p>If your friend circles are anything like mine then you&#8217;re probably sick of hearing this question:&nbsp;</p><blockquote><p><em><strong>What is creativity?&nbsp;&nbsp;</strong></em></p></blockquote><p>Pose this question to ten different neuroscientists and psychologists and you&#8217;ll get ten different answers.&nbsp; Trust me, I&#8217;ve asked.&nbsp;&nbsp;</p><p>In all fairness, there are some consistencies across the different responses I&#8217;ve received, however any hope of consensus around a definition of creativity is still in the distant horizon.</p><p>After reading several dozen books about the topic of creativity (there are millions), I&#8217;ve noticed that even though experts may disagree on a definition of the word, they share broad agreement on what creativity is not.&nbsp; More surprisingly, what they have discovered often contradicts popular beliefs about creativity.</p><p></p><blockquote><p><em><strong>Even though experts may disagree on the definition of [creativity], they share broad agreement on what it is not.</strong></em></p></blockquote><p></p><p>So in our ongoing attempts to understand our creativity, here are some myths about the process that you should definitely put to rest.</p><p></p><h3><strong>Myth 1:&nbsp; Only a chosen few are born creative</strong></h3><p>The prevailing man-on-the-street wisdom is that certain people are born creative while others are not.&nbsp; Some may even cite anecdotal evidence about their friend, cousin or brother who could &#8220;always draw,&#8221; forgetting that most children up to a certain age, enjoy drawing.&nbsp;</p><p>There is overwhelming evidence from recent brain science which shows that human beings are not born with a fixed creative capacity.&nbsp; In fact, it's quite the opposite.&nbsp; What we recognize as creativity can be expanded and improved with effort much like training a muscle.&nbsp; Furthermore, this improvement can be accomplished at any age.</p><p>People who &#8220;appear&#8221; to be creative from birth just have more immediate agency over the brain states that facilitate creative work.&nbsp; For instance, most human beings are born with the ability to breathe on their own--it's not a special trait.&nbsp; However, not every successfully breathing human being knows how to use their breathing to control mood, mental state or cognitive function.&nbsp; This sort of proficiency can be acquired early or late in life.</p><p></p><h3><strong>Myth 2:&nbsp; Painters and poets are creative but certainly not doctors or accountants</strong></h3><p>People often associate the word &#8220;creative&#8221; with individuals who have chosen a profession in the arts of some kind.&nbsp; They think of poets, painters, and musicians as creative but fail to draw the same conclusion about professions in the sciences.&nbsp;&nbsp;</p><p>The start-up accountant who figures out how to extend the life of his cash-strapped firm for another three months is being just as creative as the poet who pens a new sonnet.&nbsp; Physicists developing new theories, entrepreneurs developing new services or products and doctors diagnosing and developing new treatments for diseases are all exercising tremendous creativity.&nbsp;&nbsp;</p><p>A helpful way to understand the universality of creativity is not to think of the practitioner as a &#8220;creative,&#8221; but to think of the person as engaging in &#8220;creative thinking.&#8221;&nbsp; Viewing creativity as a mode of thinking regardless of the domain emphasizes just how pervasive it is in humans.</p><p></p><h3><strong>Myth 3:&nbsp; People are Left-brain or Right-brain dominant</strong></h3><p>This model about how the brain is structured, though once useful, is now widely believed to be inaccurate and a bit antiquated.&nbsp; The idea that humans are either left-brain or right-brain dominant originated from a series of studies conducted on patients who had their corpus callosum severed.&nbsp;&nbsp;</p><p>In these patients, their left brain hemispheres could no longer communicate with the right one.&nbsp; And a series of interesting behaviours were observed as a result.&nbsp; For example, some patients could recognize and read letters and symbols with their right eye but not their left (the right side of the brain controls the left side of the body and vice versa).&nbsp; Or could hum along with a tune piped into their left ear but not their right one.&nbsp;&nbsp;</p><p>Based on such compelling results, scientists developed the familiar left-brain, right-brain model of brain function.&nbsp; The left brain is believe to specialize in rational, analytic thought like mathematics and language processing, while the right brain specializes in more non-verbal tasks like spatial awareness, music, emotion and intuition.&nbsp;&nbsp;</p><p>Current brain-imaging software has revealed that this simple left-right delegation of tasks to particular brain hemispheres isn&#8217;t exactly accurate.&nbsp; There is far more cross-communication between the hemispheres on all tasks than was previously thought.&nbsp; Although there is some degree of hemispheric specialization, most brains engage both hemispheres quite dynamically on many tasks.&nbsp;&nbsp;</p><p>It's actually more accurate to think of different brain states for different types of activities rather than different brain regions handling one type of activity over others.</p><p></p><h3><strong>Myth 4:&nbsp; Mental illness improves creativity</strong></h3><p>Forget all the Hollywood lore and popular fiction fetishizing the &#8220;mad genius&#8221; or &#8220;tortured artist.&#8221;&nbsp; Despite well known examples like Van Gogh, Howard Hughes or Nina Simone, there is no evidence to support a link between mental illness and enhanced creative output.&nbsp; Such famous examples remain the exception, not the rule.</p><p>Despite the perception, highly creative individuals with mental illnesses still make up a tiny percentage of the larger pool of creative exceptionals.&nbsp; In fact, upon further investigation artists like Van Gogh and Sylvia Plath were creative despite their illness, not because of it.</p><p>The image, though, is a persistent one.&nbsp; This could be because of what creative researcher, Scott Kaufman, calls the &#8220;messy creative mind.&#8221;&nbsp; He reports that highly creative minds are often characterized by a compendium of paradoxes, capable of maintaining contradictory extremes such as fierce individualism and devoted collectivism, a high tolerance for disorder but an ability to thread order out of chaos.</p><p>Such extremes in the same person may lead observers to conclude that creatives are mentally unstable when in fact, they are quite psychologically sound.</p><p></p><h3><strong>Myth 5:&nbsp; Creativity is an individual endeavour</strong></h3><p>Consider this assertion, Thomas Edison invented the lightbulb.&nbsp; Or this one, Steve Jobs created the iPhone.&nbsp; As much as we love to repeat them, both statements are of course, false.&nbsp;&nbsp;</p><p>Thomas Edison employed an army of engineers at Menlo Park and so did Steve Jobs at Apple.&nbsp; These creative geniuses understood something fundamental about creativity--it thrives and multiplies with collaboration.&nbsp; Some historians like Edmund Morris will even say Edison&#8217;s greatest invention was his team and culture at Menlo Park, not the thousands of inventions with which he is credited.&nbsp;&nbsp;</p><p>Similarly, Steve Jobs crafted the cultures of Apple and Pixar to encourage group interaction and what he called &#8220;social collisions.&#8221;&nbsp; Jobs insisted the work space at Pixar be built around an enormous atrium which everyone had to pass through to get to their cubes and offices.&nbsp; This raised the frequency of worker interactions, sharing of ideas and likelihood of collaborations.&nbsp; Apple's current headquarters is built in the shape of a giant ring for the same reasons. These creative collaborations gave us our beloved iPhones, iPods and Macs; hardly the products of a singular tireless genius tinkering away in a dark bunker.</p><p></p><h3><strong>Myth 6:&nbsp; Creativity strikes in a flash of brilliance</strong></h3><p>This one is a myth only in the way it is recast as a near mystical event.&nbsp; Tales of Archimedes running naked through the streets of Syracuse shouting &#8220;Eureka,&#8221; or August Kekule discovering the benzene molecule<strong>*</strong> in a dream are quite inspiring to hear.&nbsp; Sadly, these over-dramatizations of miraculous moments of insight are a tiny sliver of the entire creation process.</p><p>The truth is less dramatic.&nbsp; Research by creativity myth-debunker, David Burkus, shows that such moments of insight are usually the culmination of months and often years of prior hard work.&nbsp; If the insight is the visible tip, then the prior failed attempts and long hours of study are the entire iceberg.&nbsp;&nbsp;</p><p>It takes time for the brain to assimilate and synthesize information in a particular problem space, but our minds are remarkably good at condensing and synthesizing information in this way.&nbsp; Think about the amount of mental effort you had to exert when you were learning how to drive a car.&nbsp; You had to think about steering, speeding up and slowing down, shifting gears (if you learned a stick-shift transmission) and many other details that seemed overwhelming at the beginning.&nbsp; However, ten years later, when was the last time you consciously thought about those things while driving.&nbsp; More likely, you&#8217;re thinking about an office meeting, picking up the kids and fixing your hair all while switching lanes on a freeway at 80-mph.&nbsp;&nbsp;</p><p>Our minds are good at this type of chunking down and synthetization of information and we do it all the time.&nbsp; When such synthesis happens in a specific problem space, the end results can seem like a flash of insight from the gods.&nbsp; It's more likely your mind finally grasping the problem space after countless hours of wrestling with it.</p><p>* <em>The benzene molecule is an important hydrocarbon used to make everything from plastics and synthetic fibers to life-saving drugs and detergents</em></p><p></p><h3><strong>Myth 7:&nbsp; Creativity cannot be learned</strong></h3><p>Perhaps the greatest and most debilitating myth of all is the view that humans are given a fixed amount of creative capacity.&nbsp; Thankfully for us life-learners, this has been thoroughly debunked by neurologists and psychologists all over the world.&nbsp;&nbsp;</p><p>In the past, scientists believed the human brain reached its intellectual peak around 40 years old before slowly declining all the way into the 70s and 80s when new learning was thought to be almost impossible.&nbsp; Today we know that the brain remains incredibly elastic and pliable well into the late 60s, and even later for some.&nbsp;&nbsp;</p><p>So, since we know that the mental &#8220;hardware&#8221; remains capable for the majority of one&#8217;s lifetime, our next question becomes, is creativity learnable?&nbsp;&nbsp;</p><p>According to psychologists like Mitchel Resnick, head of the Lifelong Kindergarten group at MIT Media Labs, the answer is a resounding, &#8220;Yes.&#8221;&nbsp; To improve educational creativity, Resnick says, &#8220;all stages of education should allow more time for students to work collaboratively on interdisciplinary projects that pique their interests.&#8221;&nbsp; Which is to say, a creative learner&#8217;s curiosity should lead them to the subjects and people that most interest them.</p><p>As long as curiosity is maintained it can be used as a driver for cultivating creative capacity throughout one&#8217;s life.&nbsp; After all, we are all born with curiosity and some degree of creative capacity.&nbsp; Learning and problem-solving would be next to impossible if this were not the case. Matisse, Georgia O&#8217;Keefe and Buckminster Fuller are just a few examples of creative notables whose output increased (and changed) in the latter years of their lives as their craft improved over a lifetime. &nbsp; They allowed themselves to be led by their curiosity even when it meant changing direction or in some cases changing fields entirely.</p><p></p><h3><strong>Summary</strong></h3><p>There are many more myths about creativity worth debunking, but in my studies and everyday conversation, these seem to be the most pervasive.&nbsp; Psychology and Neuroscience, like many fields today, are constantly improving and developing at a rapid pace.&nbsp; Especially around the study of creativity, which is receiving increased attention as job automation advances, it's not uncommon for once heralded ideas to fall out of favor due to new evidence and better technology-aided experiments.</p><p>So to summarize, here are the ideas you can take away with you:</p><ul><li><p>All human beings are born with a capacity for creativity</p></li><li><p>Creativity is exhibited in all fields, not just the &#8220;artistic&#8221; ones</p></li><li><p>The left vs right brain model is incomplete. The brain uses both hemispheres in tandem for most tasks.</p></li><li><p>There is no correlation between mental illness and enhanced creativity (despite what Hollywood tells us).</p></li><li><p>Creativity is not a solo act&#8212;it works better in collaboration.</p></li><li><p>Creative flashes of insight are usually the result of prior, extensive hard work.</p></li><li><p>Creativity can be cultivated at any age, partly because the brain remains elastic and supple well into old age.</p></li></ul><div><hr></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://notebook.siggyworks.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://notebook.siggyworks.com/subscribe?"><span>Subscribe now</span></a></p><div><hr></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://notebook.siggyworks.com/p/7-myths-about-creativity?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://notebook.siggyworks.com/p/7-myths-about-creativity?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p>]]></content:encoded></item><item><title><![CDATA[An Artist's Guide to C# in Unity3D: Collections]]></title><description><![CDATA[This article is part of an ongoing series for code-leaning artists who want to learn Unity 3D. In this article I introduce you to three useful collections types.]]></description><link>https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-collections</link><guid isPermaLink="false">https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-collections</guid><dc:creator><![CDATA[Siggy]]></dc:creator><pubDate>Wed, 16 Dec 2020 06:28:06 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!qVo8!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1f21fbe6-3af8-48c5-9531-56edcb70a094_745x447.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>This article is part of an ongoing series for code-leaning artists who want to learn Unity 3D. In this article I introduce you to three useful collection types.</em></p><p><em>Read Previous: <a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-operators">Operators</a></em></p><div><hr></div><p>Collections.</p><p>No, these aren&#8217;t shady callers with anonymous phone numbers shaking you down for that $17.29 water bill you somehow forgot to pay in 2010.&nbsp;</p><p>Ahem.</p><p>Collections in C# are much friendlier.&nbsp; In every program you write you&#8217;ll need a way to store a basket (or group) of items that you can reference later.&nbsp; Things like a list of city names, a list of numbers like geographic coordinates or maybe even something like a list of available weapons in your player&#8217;s inventory.&nbsp;</p><p></p><h4><strong>Basics of a collection</strong></h4><p>Collections are variable types that let you store several items of data together. As you learned in previous lessons, variables allow you to store a single piece of data (of a particular data type).</p><blockquote><pre><code><code>string fullName = "Bruno Mars";</code></code></pre></blockquote><p>What if you wanted to store a list of 10 musicians?&nbsp; Or 1000?&nbsp; Would you create 1000 different string variables?&nbsp; You could, but good heavens, who wants to do that?&nbsp; This is where collections come into play.</p><p>One way to understand collections is to think of them as special variables with the following capabilities:</p><ol><li><p>Have an identifier or label just like regular variables</p></li><li><p>Work with one type of data (string, float, int, etc) or can work with a mix of data types</p></li><li><p>May declare a specific number of items they are able to store (this is fixed in most cases) or declare that they can store any number of items</p></li><li><p>Provide a way to assign/put items into the collection</p></li><li><p>Provide a way to uniquely access each item in the collection</p></li><li><p>Provide a way to uniquely change/update each item in the collection</p></li><li><p>May provide a way to delete one or all items in the collection</p></li></ol><p>In this lesson we will learn about three types of collections:</p><ul><li><p>Arrays</p></li><li><p>Lists</p></li><li><p>Dictionaries</p></li></ul><p></p><p></p><h4><strong>Arrays</strong></h4><p>Arrays are the simplest type of data collection (really a bargain basement collection compared to the other types).&nbsp; They allow you to store a fixed number of items of a particular data type.&nbsp; When you create an array, you must specify which data type this array will hold and how many slots to provide.&nbsp;&nbsp;</p><p>To create an array, we use the following format:</p><blockquote><h6><code>data_type_to_store[] name_of_the_array = new data_type_to_store[number_of_items_you_intend_to_store];</code></h6></blockquote><blockquote><pre><code><code>string[] musicians = new string[3];</code></code></pre></blockquote><p>We now have an array called musicians that can store three string data items.&nbsp; But, our array is empty.&nbsp; </p><p>Lets try adding just one string to the array.&nbsp; Since the array has three empty slots we need to specify which slot to add our new string into (No, it won&#8217;t just know to place it in the first slot--I told you arrays are the economy class of collections).</p><blockquote><pre><code><code>musicians[0] = "Bruno Mars";</code></code></pre></blockquote><p>Now we have one string item in the first slot of the array.&nbsp; But what&#8217;s with that <code>0</code>, you ask?&nbsp; Well, array positions don&#8217;t start counting from <code>1</code>, they start from <code>0</code>.&nbsp; That means our array position indices will be <code>0, 1</code> and <code>2</code>.&nbsp; <strong>Not </strong><code>1, 2</code> and <code>3</code>!&nbsp;&nbsp;</p><p>Let's add two more items to our array.</p><blockquote><pre><code><code>musicians[1] = "Miley Cyrus";</code></code></pre><pre><code><code>musicians[2] = "Alicia Keys";</code></code></pre></blockquote><p></p><p>If we try to add a fourth item, the compiler would yell at us because the array was declared with a fixed size of <code>3</code>.</p><blockquote><pre><code><code>musicians[3] = "Philo Debangs";&nbsp; //Error! Who is Philo Debangs???</code></code></pre></blockquote><p></p><p>What about accessing the array&#8217;s items?&nbsp; If you wanted to print the second item, you would use a similar indexing syntax to retrieve the item:</p><blockquote><pre><code>Debug.Log(musicians[1]); // Prints <em>Miley Cyrus</em> to the console</code></pre></blockquote><p></p><p>To change the second item in the array, assign the new value to the item position like this:</p><blockquote><pre><code>musicians[1] = "Beyonc&#233; Knowles";</code></pre></blockquote><p>Now the second item has been updated.</p><blockquote><pre><code>Debug.Log(musicians[1]); // Prints <em>Beyonc</em>&#233;<em> Knowles</em> to the console</code></pre></blockquote><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!qVo8!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1f21fbe6-3af8-48c5-9531-56edcb70a094_745x447.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!qVo8!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1f21fbe6-3af8-48c5-9531-56edcb70a094_745x447.jpeg 424w, https://substackcdn.com/image/fetch/$s_!qVo8!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1f21fbe6-3af8-48c5-9531-56edcb70a094_745x447.jpeg 848w, https://substackcdn.com/image/fetch/$s_!qVo8!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1f21fbe6-3af8-48c5-9531-56edcb70a094_745x447.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!qVo8!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1f21fbe6-3af8-48c5-9531-56edcb70a094_745x447.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!qVo8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1f21fbe6-3af8-48c5-9531-56edcb70a094_745x447.jpeg" width="745" height="447" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/1f21fbe6-3af8-48c5-9531-56edcb70a094_745x447.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:447,&quot;width&quot;:745,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:84714,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!qVo8!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1f21fbe6-3af8-48c5-9531-56edcb70a094_745x447.jpeg 424w, https://substackcdn.com/image/fetch/$s_!qVo8!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1f21fbe6-3af8-48c5-9531-56edcb70a094_745x447.jpeg 848w, https://substackcdn.com/image/fetch/$s_!qVo8!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1f21fbe6-3af8-48c5-9531-56edcb70a094_745x447.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!qVo8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1f21fbe6-3af8-48c5-9531-56edcb70a094_745x447.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>A illustration of Arrays in C#</em></figcaption></figure></div><div><hr></div><p>We can also check the size of the array using the Length property of the array like this:</p><blockquote><pre><code>Debug.Log("We have " + musicians.Length + " items in our array!");&nbsp; 

// Prints "<em>We have 3 items in our array</em>&#8221;</code></pre></blockquote><p>*&nbsp; We'll talk about object properties when we learn about classes.&nbsp; For now, think of <code>.Length</code> as an attribute of all array objects that returns the size of the array.&nbsp;&nbsp;</p><p>An easier way to print the above line is to use a feature called string interpolation.&nbsp; If we stick a <em><code>$</code></em> right before the string in the above line we can skip using those ugly plus signs and just wrap our variable in curly braces (<code>{ }</code>) like this:</p><blockquote><pre><code>Debug.Log($ "We have {musicians.Length} items in our array!"); 

// Prints "<em>We have 3 items in our array</em>"&nbsp;</code></pre></blockquote><p></p><p>So far, we&#8217;ve added string items to our list one at a time.&nbsp; We also could have initialized our array at declaration time like this:</p><blockquote><pre><code>string [] musicians = string[] {"Bruno Mars", "Miley Cyrus",     "Alicia Keys"}</code></pre></blockquote><p>This would produce our three-item array immediately.&nbsp; Obviously, you may not be able to do this in every situation. It's an alternative way to initialize an array if you know your items at declaration time and your list is short enough.</p><p>What if you want to delete an item from an array?&nbsp; </p><p>Well, here&#8217;s where I disappoint you.&nbsp; You can&#8217;t.&nbsp; </p><p>Arrays are immutable in size.&nbsp; Once you declare an array size, it can&#8217;t be altered.&nbsp; If you want an array with a different size, you&#8217;ll have to create a new one.  You can, however, update the individual array elements as much as you like.&nbsp;&nbsp;</p><p>The next collection type we will look at does not have this size restriction.</p><p></p><p></p><h4><strong>Lists</strong></h4><p>C-sharp provides us with another type of collection called a generic list type.&nbsp; As mentioned previously, this collection type is a lot more flexible than a basic array.</p><p>The basic syntax for creating lists is:</p><blockquote><h6><code>List&lt;</code><em><code>data_type_to_store</code></em><code>&gt; </code><em><code>name_of_list </code></em><code>= new List&lt;</code><em><code>data_type_to_store</code></em><code>&gt;();</code></h6></blockquote><p></p><p>To recreate our collection of musicians with a list we could do this:</p><blockquote><pre><code>List&lt;string&gt; musicians = new List&lt;string&gt;();</code></pre></blockquote><p>Now we have an empty list called musicians.&nbsp; Unlike arrays, lists are able to grow and shrink as we add and remove items so you don&#8217;t need to specify a size at declaration time.</p><p>Adding items to lists is pretty easy:</p><blockquote><pre><code>musicians.Add(&#8220;Bruno Mars&#8221;);
musicians.Add(&#8220;Miley Cyrus&#8221;);
musicians.Add(&#8220;Alicia Keys&#8221;);</code></pre></blockquote><p>To see how many items we now have in our array, use the list&#8217;s <code>.Count</code> property (which is similar to the array&#8217;s <code>.Length</code> property).</p><blockquote><pre><code>Debug.Log($"We have {musicians.Count} items in our array");</code></pre></blockquote><p></p><p>Accessing a particular item in the list is accomplished just like you would for an array.</p><blockquote><pre><code>Debug.Log(musicians[2]);&nbsp; //prints <em>Alicia Keys</em></code></pre></blockquote><p></p><p>As with arrays, providing an index that is larger than the list will throw an error.</p><blockquote><pre><code>Debug.log(musicians[3]); //Error!

//The list only has three items so the indices only go up to <em>2</em></code></pre></blockquote><p></p><p>Similar to arrays, changing or updating an existing item is just a matter of reassigning a new value to that particular index.</p><blockquote><pre><code>musicians[1] = "Beyonc&#233; Knowles";
Debug.Log(musicians[1]); // Prints <em>Beyonc</em>&#233;<em> Knowles</em> as expected</code></pre></blockquote><p></p><p>And if we wanted to initialize our list at declaration time we would do this:</p><blockquote><pre><code>List&lt;string&gt; musicians = List&lt;string&gt; {"Bruno Mars", "Miley Cyrus", "Alicia Keys"}</code></pre></blockquote><p></p><p>Lastly, our list collection gives us another ability we don&#8217;t have with arrays&#8212;deletion.&nbsp; The complement of the <em><code>.Add</code></em> feature we used for adding items to the collection is the <em><code>.Remove</code></em> feature for&#8212;you guessed it&#8212;removing items.</p><blockquote><pre><code>List&lt;string&gt; musicians = List&lt;string&gt; {"Bruno Mars", "Miley Cyrus", "Alicia Keys"};

musicians.Remove("Miley Cyrus");

Debug.Log(musicians.Count); // prints <em>2</em>
Debug.Log(musicians[0]);&nbsp; // prints <em>Bruno Mars</em>
Debug.Log(musicians[1]);&nbsp; // prints <em>Alicia Keys</em>
Debug.Log(musicians[2]);&nbsp; //Error!&nbsp; Only 2 items left</code></pre></blockquote><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!EwkW!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb097f414-1019-46f4-9108-de45249ca957_745x466.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!EwkW!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb097f414-1019-46f4-9108-de45249ca957_745x466.jpeg 424w, https://substackcdn.com/image/fetch/$s_!EwkW!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb097f414-1019-46f4-9108-de45249ca957_745x466.jpeg 848w, https://substackcdn.com/image/fetch/$s_!EwkW!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb097f414-1019-46f4-9108-de45249ca957_745x466.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!EwkW!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb097f414-1019-46f4-9108-de45249ca957_745x466.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!EwkW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb097f414-1019-46f4-9108-de45249ca957_745x466.jpeg" width="745" height="466" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/b097f414-1019-46f4-9108-de45249ca957_745x466.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:466,&quot;width&quot;:745,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:96893,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!EwkW!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb097f414-1019-46f4-9108-de45249ca957_745x466.jpeg 424w, https://substackcdn.com/image/fetch/$s_!EwkW!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb097f414-1019-46f4-9108-de45249ca957_745x466.jpeg 848w, https://substackcdn.com/image/fetch/$s_!EwkW!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb097f414-1019-46f4-9108-de45249ca957_745x466.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!EwkW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb097f414-1019-46f4-9108-de45249ca957_745x466.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>A illustration of Lists in C#</em></figcaption></figure></div><div><hr></div><p></p><h4><strong>Dictionaries</strong></h4><p>So far, with both arrays and lists, we&#8217;ve been referencing our collection items with index numbers (from 0 to whatever).&nbsp; These are called ordered collections (because the items contained are accessed by number in the same order in which they were added) and work well for many purposes.&nbsp; However, sometimes it's more appropriate to access our list items with something other than a numeric index.</p><p>A simple example is keeping track of player scores.&nbsp; Assume you have the following three players and their scores:</p><ul><li><p>Yakko - 61</p></li><li><p>Wakko - 47</p></li><li><p>Dot - 93</p></li></ul><p>Using an array or list would not be the best way to store this data.&nbsp; When order doesn&#8217;t really matter, C-sharp provides another type of collection called a <em>Dictionary </em>for storing <em>key-and-value </em>pairs.&nbsp; In our case the player&#8217;s name would be the lookup <em>key </em>while the player&#8217;s score would be the <em>value </em>we want to retrieve.&nbsp;&nbsp;&nbsp;&nbsp;</p><p>The syntax for creating a dictionary is:</p><blockquote><h6>Dictionary&lt;<em>data_type_of_the_key</em>, <em>data_type_of_the_value</em>&gt; <em>name_of_dictionary</em> =&nbsp;</h6><h6>                          new Dictionary&lt;<em>data_type_of_the_key</em>, <em>data_type_of_the_value</em>&gt;();</h6></blockquote><p>Lets go ahead and create our dictionary.</p><blockquote><pre><code>Dictionary&lt;string,int&gt; playerScores = new Dictionary&lt;string,int&gt;();</code></pre></blockquote><p>Now, just like we did for lists, we can add new items to our dictionary by passing in both the key and value we wish to store.</p><blockquote><pre><code>playerScores.Add("Yakko",&nbsp; 61);</code></pre></blockquote><p>This stores the integer value <em><code>61</code></em> against the string key <em><code>Yakko</code></em>.&nbsp; Let's add the other two scores.&nbsp;&nbsp;</p><blockquote><pre><code>playerScores.Add("Wakko", 47);
playerScores.Add("Dot", 93);</code></pre></blockquote><p></p><p>With our <em><code>playerScores </code></em>dictionary populated, we can lookup a score by using the player&#8217;s name (the key) to retrieve the score (the value).</p><blockquote><pre><code>Debug.Log(playerScores["Wakko"]);&nbsp; // prints 47
Debug.Log(playerScores["Dot"]);&nbsp; // prints 93
Debug.Log(playerScores["Yakko"]);&nbsp; // prints 61</code></pre></blockquote><p></p><p>If we wanted to update <em><code>Yakko</code></em>&#8217;s score to <em><code>65</code></em>, we would do this:</p><blockquote><pre><code>playerScores["Yakko"] = 65;
Debug.Log(playerScores["Yakko"]);&nbsp; // prints 65</code></pre></blockquote><p></p><p>Lastly, if we want to remove <em><code>Yakko</code></em> from the dictionary we can do this:</p><blockquote><pre><code>playerScores.Remove("Yakko");

Debug.Log(playerScores["Yakko"]);&nbsp; // Error!&nbsp; 

//<em>Yakko </em>no longer exists in the dictionary</code></pre></blockquote><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!p5-u!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc66a9b6f-fed8-495e-ab7f-82514c7c8416_745x466.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!p5-u!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc66a9b6f-fed8-495e-ab7f-82514c7c8416_745x466.jpeg 424w, https://substackcdn.com/image/fetch/$s_!p5-u!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc66a9b6f-fed8-495e-ab7f-82514c7c8416_745x466.jpeg 848w, https://substackcdn.com/image/fetch/$s_!p5-u!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc66a9b6f-fed8-495e-ab7f-82514c7c8416_745x466.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!p5-u!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc66a9b6f-fed8-495e-ab7f-82514c7c8416_745x466.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!p5-u!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc66a9b6f-fed8-495e-ab7f-82514c7c8416_745x466.jpeg" width="745" height="466" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/c66a9b6f-fed8-495e-ab7f-82514c7c8416_745x466.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:466,&quot;width&quot;:745,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:82734,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!p5-u!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc66a9b6f-fed8-495e-ab7f-82514c7c8416_745x466.jpeg 424w, https://substackcdn.com/image/fetch/$s_!p5-u!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc66a9b6f-fed8-495e-ab7f-82514c7c8416_745x466.jpeg 848w, https://substackcdn.com/image/fetch/$s_!p5-u!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc66a9b6f-fed8-495e-ab7f-82514c7c8416_745x466.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!p5-u!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc66a9b6f-fed8-495e-ab7f-82514c7c8416_745x466.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>A illustration of Dictionaries in C#</em></figcaption></figure></div><div><hr></div><p>As we can see, dictionaries behave very much like lists except we&#8217;re using strings for accessing item values instead of position integers.&nbsp; It's important to note that dictionaries allow you to use any data type as the lookup key&#8212;integers, floats and even other objects are valid keys.  We&#8217;ll learn more about this in upcoming lessons.</p><p></p><p></p><h4><strong>Try it out</strong></h4><p>Now that you&#8217;re comfortable with collections, try answering the following questions to improve your understanding.</p><ol><li><p>Assume, you&#8217;re running an experiment where you flip a coin ten times and record the result&#8212;whether the coin comes out heads or tails.&nbsp; What collection could be used to represent this information since you know how many items you need to store?&nbsp; Create the collection with the appropriate data types and initialize it.</p></li><li><p>You&#8217;re a dispatcher for a traveling sales guy.&nbsp; He calls you every morning and asks what the temperature is in five different cities.&nbsp; Today the cities and their temperatures are:<br>&#9;Atlanta - 74<br>&#9;Charlotte - 71<br>&#9;Louisville - 68<br>&#9;Nashville - 70<br>&#9;Indianapolis - 62<br><br>What kind of collection would you use to represent this?&nbsp; Create the collection and add the data.&nbsp; Remove the <em>Nashville </em>entry and add <em>Richmond</em> with a temperature of <em>63</em> degrees.</p></li><li><p>You&#8217;re conducting an online survey.&nbsp; Everyday, your survey website sends you a list of email addresses submitted to you that day.&nbsp; What collection would you use to store these email addresses?&nbsp; Create the collection and add these emails to it:<br>     <a href="mailto:larry@stoogehq.com">larry@stoogehq.com<br></a>     <a href="mailto:moe@stoogehq.com">moe@stoogehq.com<br></a>     <a href="mailto:curly@stoogehq.com">curly@stoogehq.com<br><br></a>Print the email addresses to the console.<br>Whoops, two more just came in.  Add these extra emails to the collection and print again.<br>     <a href="mailto:shemp@stoogehq.com">shemp@stoogehq.com<br></a>     <a href="mailto:joe@stoogehq.com">joe@stoogehq.com</a></p><p></p><p>Next we&#8217;ll learn about <a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-flow">flow control</a> in your programs.</p><div><hr></div><p><em><strong>An Artist's Guide to C# in Unity3D</strong></em></p><ol><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-setting">Setting up your environment</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity-creating">Creating your first script</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-common">Common data types and variables</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-operators">Operators</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-collections">Collections</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-flow">Flow Control</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-functions">Functions and Methods</a></em></p></li></ol><div><hr></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://notebook.siggyworks.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://notebook.siggyworks.com/subscribe?"><span>Subscribe now</span></a></p></li></ol>]]></content:encoded></item><item><title><![CDATA[An Artist's Guide to C# in Unity3D: Operators]]></title><description><![CDATA[This article is part of an ongoing series for code-leaning artists who want to learn Unity 3D. In this article I introduce you to operators and how to use them on different data types.]]></description><link>https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-operators</link><guid isPermaLink="false">https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-operators</guid><dc:creator><![CDATA[Siggy]]></dc:creator><pubDate>Sat, 12 Dec 2020 12:00:02 GMT</pubDate><enclosure url="https://cdn.substack.com/image/fetch/h_600,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3735f88-a627-4462-b0bb-e9f6c3e88c90_1024x768.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>This article is part of an ongoing series for code-leaning artists who want to learn Unity 3D. In this article I introduce you to operators and how to use them on different data types.</em></p><p><em>Read Previous:  <a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-common">Common data types and variables</a></em></p><div><hr></div><p>Operators provide actions such as value manipulation, logical comparisons or mathematical calculations that may be applied to data types.&nbsp; Each operation is usually represented by its approximate conventional mathematical symbol.  E.g., the plus (+) and minus (-) for addition and subtraction, respectively.&nbsp;&nbsp;</p><p>C-sharp comes with several built-in operators but we&#8217;ll cover just the operators in these four groups</p><ul><li><p>Arithmetic Operators</p></li><li><p>Logic Operators</p></li><li><p>Relational Operators</p></li><li><p>Assignment Operators</p></li></ul><p></p><p><strong>Arithmetic Operators</strong></p><p>As the name implies, these operators apply arithmetic calculations on numeric values.&nbsp; Arithmetic operators also work on char values because each character is represented by its numeric ASCII value under the hood.&nbsp; The only arithmetic operator which works on string values is the plus (+) operator which concatenates the string operands together.&nbsp;</p><p>Here are the arithmetic operators in order of precedence</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!to7V!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e464ae1-e2a2-4af4-a91b-5c38a039cb98_630x610.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!to7V!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e464ae1-e2a2-4af4-a91b-5c38a039cb98_630x610.png 424w, https://substackcdn.com/image/fetch/$s_!to7V!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e464ae1-e2a2-4af4-a91b-5c38a039cb98_630x610.png 848w, https://substackcdn.com/image/fetch/$s_!to7V!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e464ae1-e2a2-4af4-a91b-5c38a039cb98_630x610.png 1272w, https://substackcdn.com/image/fetch/$s_!to7V!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e464ae1-e2a2-4af4-a91b-5c38a039cb98_630x610.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!to7V!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e464ae1-e2a2-4af4-a91b-5c38a039cb98_630x610.png" width="630" height="610" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/7e464ae1-e2a2-4af4-a91b-5c38a039cb98_630x610.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:610,&quot;width&quot;:630,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:31944,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!to7V!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e464ae1-e2a2-4af4-a91b-5c38a039cb98_630x610.png 424w, https://substackcdn.com/image/fetch/$s_!to7V!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e464ae1-e2a2-4af4-a91b-5c38a039cb98_630x610.png 848w, https://substackcdn.com/image/fetch/$s_!to7V!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e464ae1-e2a2-4af4-a91b-5c38a039cb98_630x610.png 1272w, https://substackcdn.com/image/fetch/$s_!to7V!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e464ae1-e2a2-4af4-a91b-5c38a039cb98_630x610.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p></p><p><strong>Logic Operators</strong></p><p>These operators perform simple logic algebra on boolean values.&nbsp; Here they are in precedence order.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!F1xe!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6664fd1b-0f72-4461-afca-0c4443c4aae6_631x483.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!F1xe!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6664fd1b-0f72-4461-afca-0c4443c4aae6_631x483.png 424w, https://substackcdn.com/image/fetch/$s_!F1xe!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6664fd1b-0f72-4461-afca-0c4443c4aae6_631x483.png 848w, https://substackcdn.com/image/fetch/$s_!F1xe!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6664fd1b-0f72-4461-afca-0c4443c4aae6_631x483.png 1272w, https://substackcdn.com/image/fetch/$s_!F1xe!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6664fd1b-0f72-4461-afca-0c4443c4aae6_631x483.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!F1xe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6664fd1b-0f72-4461-afca-0c4443c4aae6_631x483.png" width="631" height="483" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/6664fd1b-0f72-4461-afca-0c4443c4aae6_631x483.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:483,&quot;width&quot;:631,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:25360,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!F1xe!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6664fd1b-0f72-4461-afca-0c4443c4aae6_631x483.png 424w, https://substackcdn.com/image/fetch/$s_!F1xe!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6664fd1b-0f72-4461-afca-0c4443c4aae6_631x483.png 848w, https://substackcdn.com/image/fetch/$s_!F1xe!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6664fd1b-0f72-4461-afca-0c4443c4aae6_631x483.png 1272w, https://substackcdn.com/image/fetch/$s_!F1xe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6664fd1b-0f72-4461-afca-0c4443c4aae6_631x483.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p></p><p><strong>Relational Operators</strong></p><p>These operators perform quantitative comparisons between values such as &#8220;greater than,&#8221; &#8220;less than,&#8221; or &#8220;equal to,&#8221; and return true or false.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!2o1W!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F143b3557-11c1-4fe8-94e8-c4f54e3b3a84_632x562.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!2o1W!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F143b3557-11c1-4fe8-94e8-c4f54e3b3a84_632x562.png 424w, https://substackcdn.com/image/fetch/$s_!2o1W!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F143b3557-11c1-4fe8-94e8-c4f54e3b3a84_632x562.png 848w, https://substackcdn.com/image/fetch/$s_!2o1W!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F143b3557-11c1-4fe8-94e8-c4f54e3b3a84_632x562.png 1272w, https://substackcdn.com/image/fetch/$s_!2o1W!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F143b3557-11c1-4fe8-94e8-c4f54e3b3a84_632x562.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!2o1W!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F143b3557-11c1-4fe8-94e8-c4f54e3b3a84_632x562.png" width="632" height="562" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/143b3557-11c1-4fe8-94e8-c4f54e3b3a84_632x562.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:562,&quot;width&quot;:632,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:28623,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!2o1W!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F143b3557-11c1-4fe8-94e8-c4f54e3b3a84_632x562.png 424w, https://substackcdn.com/image/fetch/$s_!2o1W!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F143b3557-11c1-4fe8-94e8-c4f54e3b3a84_632x562.png 848w, https://substackcdn.com/image/fetch/$s_!2o1W!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F143b3557-11c1-4fe8-94e8-c4f54e3b3a84_632x562.png 1272w, https://substackcdn.com/image/fetch/$s_!2o1W!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F143b3557-11c1-4fe8-94e8-c4f54e3b3a84_632x562.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p></p><p><strong>Assignment Operators</strong></p><p>We have seen the basic assignment operator (=) already.&nbsp; It's the basic way of assigning a value to a particular variable identifier (e.g., name = &#8220;John&#8221;).&nbsp; The other five assignment operators do the same thing except they perform some sort of arithmetic operation on the value before assigning the result to a variable.</p><p>Here are the assignment operators.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!QAm0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46fcf12e-e85a-4bfa-9e0e-ffb06fa9db65_633x850.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!QAm0!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46fcf12e-e85a-4bfa-9e0e-ffb06fa9db65_633x850.png 424w, https://substackcdn.com/image/fetch/$s_!QAm0!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46fcf12e-e85a-4bfa-9e0e-ffb06fa9db65_633x850.png 848w, https://substackcdn.com/image/fetch/$s_!QAm0!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46fcf12e-e85a-4bfa-9e0e-ffb06fa9db65_633x850.png 1272w, https://substackcdn.com/image/fetch/$s_!QAm0!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46fcf12e-e85a-4bfa-9e0e-ffb06fa9db65_633x850.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!QAm0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46fcf12e-e85a-4bfa-9e0e-ffb06fa9db65_633x850.png" width="633" height="850" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/46fcf12e-e85a-4bfa-9e0e-ffb06fa9db65_633x850.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:850,&quot;width&quot;:633,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:47932,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!QAm0!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46fcf12e-e85a-4bfa-9e0e-ffb06fa9db65_633x850.png 424w, https://substackcdn.com/image/fetch/$s_!QAm0!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46fcf12e-e85a-4bfa-9e0e-ffb06fa9db65_633x850.png 848w, https://substackcdn.com/image/fetch/$s_!QAm0!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46fcf12e-e85a-4bfa-9e0e-ffb06fa9db65_633x850.png 1272w, https://substackcdn.com/image/fetch/$s_!QAm0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46fcf12e-e85a-4bfa-9e0e-ffb06fa9db65_633x850.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p></p><p><strong>Try it out</strong></p><p>Now that we&#8217;ve learned about operators, we have enough knowledge to calculate some simple equations.&nbsp;</p><p>Let&#8217;s revisit some of our elementary school word problems.</p><p>Take a look at the following illustration and use it to complete the code exercise.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!SLEs!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3735f88-a627-4462-b0bb-e9f6c3e88c90_1024x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!SLEs!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3735f88-a627-4462-b0bb-e9f6c3e88c90_1024x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!SLEs!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3735f88-a627-4462-b0bb-e9f6c3e88c90_1024x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!SLEs!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3735f88-a627-4462-b0bb-e9f6c3e88c90_1024x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!SLEs!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3735f88-a627-4462-b0bb-e9f6c3e88c90_1024x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!SLEs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3735f88-a627-4462-b0bb-e9f6c3e88c90_1024x768.jpeg" width="587" height="440.25" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/d3735f88-a627-4462-b0bb-e9f6c3e88c90_1024x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1024,&quot;resizeWidth&quot;:587,&quot;bytes&quot;:98511,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!SLEs!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3735f88-a627-4462-b0bb-e9f6c3e88c90_1024x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!SLEs!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3735f88-a627-4462-b0bb-e9f6c3e88c90_1024x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!SLEs!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3735f88-a627-4462-b0bb-e9f6c3e88c90_1024x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!SLEs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3735f88-a627-4462-b0bb-e9f6c3e88c90_1024x768.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>We have a scene here with an intrepid rancher squaring off against four, um, let's call them wild boars.&nbsp; The following conditions apply:</p><ul><li><p>The rancher has six bullets in his gun</p></li><li><p>There are four charging wild boars</p></li><li><p>Each boar is charging at a speed of 2.5 feet per second (ok, not a very aggressive charge but still, wild boars!!)</p></li><li><p>It takes one bullet to kill one boar</p></li><li><p>The red line is the rancher&#8217;s property border line.&nbsp; He is exactly 10 feet behind it.&nbsp; If any boars reach the line, and he&#8217;s out of bullets he&#8217;ll have to run for his life.</p></li><li><p>The rancher&#8217;s running speed is only 2.0 feet per second.</p></li></ul><p>Answer the following questions.&nbsp; Use any variables and operators you need and print your answers to the console.</p><ol><li><p>If the rancher is able to kill each boar before it reaches the border line (with one shot each), how many bullets will he have left?</p></li><li><p>How would you use the modulo operator as an alternative way to find the answer to the previous question?</p></li><li><p>If the rancher goes all &#8220;<em>scarface&#8221; </em>on the boars and decides to charge the border line as he shoots, how many seconds will it take him to reach the border line (assuming the boars don&#8217;t get him before that)?</p></li><li><p>If a boar successfully crosses the border line, and the unlucky rancher runs out of bullets, how many seconds will it take the boar to reach the rancher&#8217;s current position?</p></li><li><p>If the rancher turns around and runs, how far could he get in the same amount of time it takes the boar to cover 10 feet?</p></li><li><p>In this chase scenario, how long would it take the boar to catch the rancher?</p></li><li><p>How far away from the border would both boar and rancher be when the boar finally catches him?&nbsp;</p></li></ol><p></p><p>We&#8217;ll cover C-sharp data <a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-collections">collections</a> next.</p><div><hr></div><p><em><strong>An Artist's Guide to C# in Unity3D</strong></em></p><ol><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-setting">Setting up your environment</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity-creating">Creating your first script</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-common">Common data types and variables</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-operators">Operators</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-collections">Collections</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-flow">Flow Control</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-functions">Functions and Methods</a></em></p></li></ol><div><hr></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://notebook.siggyworks.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://notebook.siggyworks.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[An Artist's Guide to C# in Unity3D: Common Data Types and Variables]]></title><description><![CDATA[This article is part of an ongoing series for code-leaning artists who want to learn Unity 3D. In this article I introduce you to some common data types in C# and how to use variables.]]></description><link>https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-common</link><guid isPermaLink="false">https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-common</guid><dc:creator><![CDATA[Siggy]]></dc:creator><pubDate>Thu, 10 Dec 2020 10:00:58 GMT</pubDate><enclosure url="https://cdn.substack.com/image/fetch/h_600,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0cd4323b-da45-4c76-ad81-c447d1a6a6a9_676x676.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>This article is part of an ongoing series for code-leaning artists who want to learn Unity 3D. In this article I introduce you to some common data types in C# and how to use variables.</em></p><p><em>Read previous:&nbsp;<a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity-creating">Creating your first script</a></em></p><div><hr></div><p><strong>Common Data Types and Variables in C#</strong></p><p>In any program you&#8217;re going to be dealing with data values of different types.&nbsp; You may want to store a player&#8217;s age, name or calculate a character's speed, health points, etc. These are all different types of data you may need to store, manipulate or calculate.&nbsp;&nbsp;</p><p>C-sharp comes with several built-in data types it can handle, but you don&#8217;t need to learn them all.&nbsp; For eighty-percent of your game development needs, you&#8217;ll use the following five built-in data types.</p><p></p><p><strong>Common Data Types</strong></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!kz12!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc31fc61-1f4e-48ed-84f0-c9926c9d4fcc_637x375.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!kz12!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc31fc61-1f4e-48ed-84f0-c9926c9d4fcc_637x375.png 424w, https://substackcdn.com/image/fetch/$s_!kz12!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc31fc61-1f4e-48ed-84f0-c9926c9d4fcc_637x375.png 848w, https://substackcdn.com/image/fetch/$s_!kz12!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc31fc61-1f4e-48ed-84f0-c9926c9d4fcc_637x375.png 1272w, https://substackcdn.com/image/fetch/$s_!kz12!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc31fc61-1f4e-48ed-84f0-c9926c9d4fcc_637x375.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!kz12!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc31fc61-1f4e-48ed-84f0-c9926c9d4fcc_637x375.png" width="691" height="406.7896389324961" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/bc31fc61-1f4e-48ed-84f0-c9926c9d4fcc_637x375.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:375,&quot;width&quot;:637,&quot;resizeWidth&quot;:691,&quot;bytes&quot;:23682,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!kz12!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc31fc61-1f4e-48ed-84f0-c9926c9d4fcc_637x375.png 424w, https://substackcdn.com/image/fetch/$s_!kz12!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc31fc61-1f4e-48ed-84f0-c9926c9d4fcc_637x375.png 848w, https://substackcdn.com/image/fetch/$s_!kz12!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc31fc61-1f4e-48ed-84f0-c9926c9d4fcc_637x375.png 1272w, https://substackcdn.com/image/fetch/$s_!kz12!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc31fc61-1f4e-48ed-84f0-c9926c9d4fcc_637x375.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"></figcaption></figure></div><p><strong>Variables</strong></p><p>If built-in data types are the values you use in your program, then variables can be thought of as named slots or containers for holding those data values.&nbsp;&nbsp;&nbsp;&nbsp;</p><p>Variable declarations take the form of:</p><blockquote><p><em><code>&lt;data type&gt; &lt;name of the variable&gt;;</code></em></p></blockquote><p>Or, if you want to assign a value to the variable in one go (called <em>initializing</em> the variable):</p><blockquote><p><em>&lt;data type&gt; &lt;name of the variable&gt; = &lt;the value to assign to the variable&gt;&nbsp;</em></p></blockquote><p>In lay terms, what you&#8217;re doing with this one-liner is:</p><ol><li><p>Declaring what type of data container you want</p></li><li><p>Specifying the label/name you&#8217;ll use to identify this container</p></li><li><p>Placing the value you want into the container</p></li></ol><p>For instance, let's say you need to print out a player&#8217;s full name in twenty different places, you could do something like this each time:</p><blockquote><p><code>Debug.Log(&#8220;Michelangelo di Lodovico Buonarroti Simoni&#8221;);</code></p></blockquote><p>However, you would have to type that long name twenty times in all the locations you need it. A better alternative would be to assign the player&#8217;s name to a variable called <code>fullName</code>.&nbsp; Now you can use <code>fullName </code>anywhere you need to print the name.&nbsp; So your code would look something like this:</p><blockquote><p><code>string fullName = &#8220;Michelangelo di Lodovico Buonarroti Simoni&#8221;;</code></p><p><code>Debug.Log(fullName);&nbsp; //prints the full name</code></p></blockquote><p>You created a container called <code>fullName</code> to hold the value <code>&#8220;Michelangelo di Lodovico Buonarroti Simoni.&#8221;</code>&nbsp; This container can be passed around your program as needed.&nbsp;&nbsp;</p><p>Later in your program, you can still change the value of <code>fullName</code> to anything you want as long as its a string:</p><blockquote><p><code>fullName = &#8220;Leonardo Da Vinci&#8221;;</code></p><p><code>Debug.Log(fullName);&nbsp; // will print out &#8220;Leonardo Da Vinci&#8221;</code></p></blockquote><p>If you tried to do this, you would get an error:</p><blockquote><p><code>fullName = 34; // Error!</code></p></blockquote><p>Since the variable, <code>fullName</code><em>,</em> was declared as a string type, attempting to assign non-string values to it will generate an error.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!JK8i!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0cd4323b-da45-4c76-ad81-c447d1a6a6a9_676x676.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!JK8i!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0cd4323b-da45-4c76-ad81-c447d1a6a6a9_676x676.png 424w, https://substackcdn.com/image/fetch/$s_!JK8i!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0cd4323b-da45-4c76-ad81-c447d1a6a6a9_676x676.png 848w, https://substackcdn.com/image/fetch/$s_!JK8i!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0cd4323b-da45-4c76-ad81-c447d1a6a6a9_676x676.png 1272w, https://substackcdn.com/image/fetch/$s_!JK8i!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0cd4323b-da45-4c76-ad81-c447d1a6a6a9_676x676.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!JK8i!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0cd4323b-da45-4c76-ad81-c447d1a6a6a9_676x676.png" width="420" height="420" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/0cd4323b-da45-4c76-ad81-c447d1a6a6a9_676x676.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:676,&quot;width&quot;:676,&quot;resizeWidth&quot;:420,&quot;bytes&quot;:51977,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!JK8i!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0cd4323b-da45-4c76-ad81-c447d1a6a6a9_676x676.png 424w, https://substackcdn.com/image/fetch/$s_!JK8i!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0cd4323b-da45-4c76-ad81-c447d1a6a6a9_676x676.png 848w, https://substackcdn.com/image/fetch/$s_!JK8i!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0cd4323b-da45-4c76-ad81-c447d1a6a6a9_676x676.png 1272w, https://substackcdn.com/image/fetch/$s_!JK8i!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0cd4323b-da45-4c76-ad81-c447d1a6a6a9_676x676.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>For now, here is how to declare variables of the five data types mentioned above.</p><p><strong>Integers</strong></p><p>In C#, integer variables are declared like this:</p><blockquote><p><code>int coins = 10;</code></p></blockquote><p>They are good for representing any number values that don&#8217;t require a fractional amount.</p><p><strong>Floats</strong></p><p>In C#, float variables are declared like this:</p><blockquote><p><code>float gravity = 9.81f;</code></p></blockquote><p>C# requires that the <code>&#8216;f&#8217;</code> be added at the and of any float value literals so the value may be correctly recognized as a float.&nbsp;&nbsp;</p><p><strong>Booleans</strong></p><p>Booleans are simple true or false values and cannot be anything else.&nbsp; They are declared like this:</p><blockquote><p><code>bool isAlive = true;</code></p></blockquote><p><strong>Characters</strong></p><p>Characters and single character values stored between single quotes.&nbsp; They are declared like this:</p><blockquote><p><code>char group = &#8216;D&#8217;;</code></p></blockquote><p><strong>Strings</strong></p><p>Any length of characters strung together between double quotation marks are stored as strings. They are declare like this:</p><blockquote><p><code>string motto = &#8220;Give me freedom or give me death!&#8221;;</code></p></blockquote><p></p><p><strong>Try It Out</strong></p><p>The best way to learn these is to try them out for yourself.&nbsp; So here&#8217;s your assignment.</p><p>Open up your <code>Fundamentals.cs</code> script and try creating the following variables in file.&nbsp; If you&#8217;re wondering where to place the variables, my recommendation is to put them above the <code>Start()</code> method (inside the <code>Fundamentals</code> class block). Do not forget to save your work.</p><ol><li><p>Add a variable to store the nickname of a player.&nbsp; Call the variable <code>nickName</code> and initialize it to anything of your choosing.</p></li><li><p>Add a variable called <code>health</code> to store the player&#8217;s health.&nbsp; Let&#8217;s assume a player's health is measured as a whole number between 0 and 5.</p></li><li><p>Add a variable to store the player&#8217;s speed.&nbsp; Speed values will have decimal parts.</p></li><li><p>Add a variable to store whether a player is invincible or not.&nbsp;&nbsp;</p></li><li><p>For each new variable you add, print it out in the <code>Start()</code> method</p></li></ol><p></p><p>When you&#8217;re finished, your script should look similar to this</p><blockquote><p><code>using System.Collections;<br>using System.Collections.Generic;<br>using UnityEngine;</code></p><p><code>public class Fundamentals : MonoBehaviour<br>{<br>    string nickName = &#8220;Picassolo&#8221;;<br>    int health = 5;<br>    float speed = 3.6;<br>    bool isInvincible = false;</code></p><p><code>&nbsp;&nbsp;&nbsp;&nbsp;// Start is called before the first frame update<br>    void Start()<br>&nbsp;   {<br>        Debug.Log("Unity Rocks!");<br>        Debug.Log(nickName);<br>        Debug.Log(health);<br>        Debug.Log(speed);<br>        Debug.Log(isInvincible);<br>    }</code></p><p><code>&nbsp;&nbsp;&nbsp;&nbsp;// Update is called once per frame<br>    void Update()<br>    {<br>    }<br>}</code></p></blockquote><p>Next, we&#8217;ll learn about what sort of operations can be performed on these data types.</p><div><hr></div><p><em><strong>An Artist's Guide to C# in Unity3D</strong></em></p><ol><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-setting">Setting up your environment</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity-creating">Creating your first script</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-common">Common data types and variables</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-operators">Operators</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-collections">Collections</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-flow">Flow Control</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-functions">Functions and Methods</a></em></p></li></ol><div><hr></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://notebook.siggyworks.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://notebook.siggyworks.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[An Artist's Guide to C# in Unity3D: Creating your first script]]></title><description><![CDATA[This article is part of an ongoing series for code-leaning artists who want to learn Unity 3D. In this article I show you how to create your first script in Unity.]]></description><link>https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity-creating</link><guid isPermaLink="false">https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity-creating</guid><dc:creator><![CDATA[Siggy]]></dc:creator><pubDate>Wed, 09 Dec 2020 08:39:37 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!V4-l!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6036b25a-1057-4776-ad74-8b1f3a44fa5b_1680x1050.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>This article is part of an ongoing series for code-leaning artists who want to learn Unity 3D.  In this article I show you how to create your first script in Unity.</em></p><p><em>Read previous: <a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-setting">Setting up your learning environment</a></em></p><div><hr></div><p><strong>Unity Editor Overview</strong></p><p>If this is your first time using Unity or any integrated development environment (IDE), the Unity Editor interface can appear quite daunting.&nbsp; </p><p>So, I&#8217;ll just start by saying, &#8220;fear not!&#8221;&nbsp;&nbsp;</p><p>You&#8217;ll grow comfortable with the unity interface very quickly.&nbsp; Additionally, since we&#8217;ll be focusing more on learning C#, we will limit our concerns to just a handful of Unity&#8217;s features to begin with.&nbsp; This will give you ample time to learn how Unity works before exploring on your own.</p><p>For now, go ahead and launch the project you created in the <a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-setting">previous lesson</a>.&nbsp;&nbsp;</p><p>Lets identify the different panels we&#8217;ll be interacting with.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!V4-l!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6036b25a-1057-4776-ad74-8b1f3a44fa5b_1680x1050.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!V4-l!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6036b25a-1057-4776-ad74-8b1f3a44fa5b_1680x1050.jpeg 424w, https://substackcdn.com/image/fetch/$s_!V4-l!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6036b25a-1057-4776-ad74-8b1f3a44fa5b_1680x1050.jpeg 848w, https://substackcdn.com/image/fetch/$s_!V4-l!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6036b25a-1057-4776-ad74-8b1f3a44fa5b_1680x1050.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!V4-l!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6036b25a-1057-4776-ad74-8b1f3a44fa5b_1680x1050.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!V4-l!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6036b25a-1057-4776-ad74-8b1f3a44fa5b_1680x1050.jpeg" width="1456" height="910" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/6036b25a-1057-4776-ad74-8b1f3a44fa5b_1680x1050.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:910,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:107022,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!V4-l!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6036b25a-1057-4776-ad74-8b1f3a44fa5b_1680x1050.jpeg 424w, https://substackcdn.com/image/fetch/$s_!V4-l!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6036b25a-1057-4776-ad74-8b1f3a44fa5b_1680x1050.jpeg 848w, https://substackcdn.com/image/fetch/$s_!V4-l!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6036b25a-1057-4776-ad74-8b1f3a44fa5b_1680x1050.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!V4-l!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6036b25a-1057-4776-ad74-8b1f3a44fa5b_1680x1050.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The Unity Editor&#8217;s default layout has four main panel group regions.</p><ol><li><p><em><strong>Hierarchy (A)</strong></em> panel -- lists every item in your game scene, in hierarchical order.&nbsp; It is useful for organizing your scene items, grouping items, nesting items and providing for easy selection of items especially within large scenes.</p></li><li><p><em><strong>Scene</strong></em> and <em><strong>Game</strong></em> panels <em><strong>(B)</strong></em> -- these two panels are grouped together.&nbsp; The scene panel allows you to visually add and arrange your game objects like a director placing props and actors on a stage.&nbsp; The game view panel only becomes active when you hit the <em><strong>play </strong></em>button to enter play mode.&nbsp; In this mode, the Unity Editor compiles all your game objects along with accompanying logic found in your C-sharp scripts and runs your game the way it would execute on a target device.</p></li><li><p><em><strong>Project</strong></em> and <em><strong>Console</strong></em> panels <em><strong>(C)</strong></em> -- these are the two panels grouped underneath the hierarchy and scene/game panel group. The project panel holds all your project&#8217;s folders and file assets.&nbsp; Things like your game graphics, sprites and script files would be contained here.&nbsp; It's really just Unity&#8217;s representation of the actual <em>Assets</em> folder that exists on your hard disk.&nbsp; The console panel is where we will spend a lot of our time as we learn C-sharp.&nbsp; When we instruct our code to print a line of text, that output is displayed in the console panel.&nbsp; Unity also displays all notifications and error messages that occur while running our game in this panel.&nbsp;&nbsp;</p></li><li><p><em><strong>Inspector</strong></em> panel <em><strong>(D)</strong></em> -- this panel is context-sensitive.&nbsp; Anytime you select an item from the scene panel, the hierarchy panel or the project panel, the item&#8217;s attributes and properties are displayed in this panel.&nbsp; The values of these properties can be modified through the inspector.</p></li></ol><p></p><p><strong>Create Your First Script</strong></p><p>Lets jump right in and start learning what we came here to do.&nbsp; Right now your unity editor is displaying a sample game scene.&nbsp; This works just fine for our C-sharp learning goals.&nbsp; So lets start exploring a bit.</p><p>In the <em><strong>Hierarchy </strong></em>panel, you&#8217;ll see our <em>SampleScene</em> and two default objects underneath it--<em>Main Camera</em> and <em>Directional Light</em>.&nbsp; These are default game objects that Unity automatically creates for you when you start a new project.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!UgYN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F159248af-592d-467d-a4b5-8957e70924a0_1024x496.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!UgYN!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F159248af-592d-467d-a4b5-8957e70924a0_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!UgYN!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F159248af-592d-467d-a4b5-8957e70924a0_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!UgYN!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F159248af-592d-467d-a4b5-8957e70924a0_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!UgYN!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F159248af-592d-467d-a4b5-8957e70924a0_1024x496.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!UgYN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F159248af-592d-467d-a4b5-8957e70924a0_1024x496.jpeg" width="1024" height="496" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/159248af-592d-467d-a4b5-8957e70924a0_1024x496.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:496,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:88492,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!UgYN!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F159248af-592d-467d-a4b5-8957e70924a0_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!UgYN!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F159248af-592d-467d-a4b5-8957e70924a0_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!UgYN!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F159248af-592d-467d-a4b5-8957e70924a0_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!UgYN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F159248af-592d-467d-a4b5-8957e70924a0_1024x496.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Try clicking on the <em>Main Camera</em>.&nbsp; You&#8217;ll notice that the camera graphic gets selected in the scene panel and the inspector panel also displays lots of information about the Main Camera.&nbsp; Just take a look at the attributes for now.&nbsp; No need to change them if you don&#8217;t want to.&nbsp; Click on the Directional Light to see its attributes.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!o3M9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6219c1ca-c141-4fd5-9e60-4b119550c944_1024x496.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!o3M9!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6219c1ca-c141-4fd5-9e60-4b119550c944_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!o3M9!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6219c1ca-c141-4fd5-9e60-4b119550c944_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!o3M9!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6219c1ca-c141-4fd5-9e60-4b119550c944_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!o3M9!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6219c1ca-c141-4fd5-9e60-4b119550c944_1024x496.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!o3M9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6219c1ca-c141-4fd5-9e60-4b119550c944_1024x496.jpeg" width="1024" height="496" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/6219c1ca-c141-4fd5-9e60-4b119550c944_1024x496.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:496,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:80894,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!o3M9!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6219c1ca-c141-4fd5-9e60-4b119550c944_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!o3M9!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6219c1ca-c141-4fd5-9e60-4b119550c944_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!o3M9!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6219c1ca-c141-4fd5-9e60-4b119550c944_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!o3M9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6219c1ca-c141-4fd5-9e60-4b119550c944_1024x496.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>Let's move our attention down to the <em><strong>Project &amp; Console</strong></em> panel group.&nbsp; You&#8217;ll notice that the project panel is divided into two sections.&nbsp; There&#8217;s a folder view display on the left side and a larger content window on the right.&nbsp; This works just like the file finder or file explorer you use on your computer to locate files.&nbsp; The content view on the right will always display the contents of whatever is selected from the folder view on the left.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!GR3R!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F12c05f5e-be9b-4915-a0e0-547182047d1c_1024x496.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!GR3R!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F12c05f5e-be9b-4915-a0e0-547182047d1c_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!GR3R!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F12c05f5e-be9b-4915-a0e0-547182047d1c_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!GR3R!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F12c05f5e-be9b-4915-a0e0-547182047d1c_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!GR3R!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F12c05f5e-be9b-4915-a0e0-547182047d1c_1024x496.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!GR3R!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F12c05f5e-be9b-4915-a0e0-547182047d1c_1024x496.jpeg" width="1024" height="496" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/12c05f5e-be9b-4915-a0e0-547182047d1c_1024x496.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:496,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:31897,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!GR3R!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F12c05f5e-be9b-4915-a0e0-547182047d1c_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!GR3R!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F12c05f5e-be9b-4915-a0e0-547182047d1c_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!GR3R!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F12c05f5e-be9b-4915-a0e0-547182047d1c_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!GR3R!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F12c05f5e-be9b-4915-a0e0-547182047d1c_1024x496.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Click on the <em>Assets</em> folder in the folder list on the left side.&nbsp; There is currently one nested folder inside this folder called <em>Scenes</em>.&nbsp; If you click on the Scenes folder (either from the left folder list or by double-clicking on the scenes folder icon on the right) you&#8217;ll see that it contains one item called &#8220;SampleScene.&#8221;&nbsp; This is the game scene currently displayed in the Scene and Hierarchy panels--also known as the active scene.&nbsp;</p><p>Click back on the Assets folder to select it and view its contents.&nbsp; The scenes folder looks pretty lonely, so let's give it some company by creating a second folder inside our assets folder.&nbsp;&nbsp;</p><p>In the content window, right-click on the blank space next to the scenes folder to bring up an action menu. Select:&nbsp;</p><blockquote><p><code>Create &gt; Folder</code></p></blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!cMpV!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe21f5d03-b555-49bc-825a-0e391e28eea1_800x800.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!cMpV!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe21f5d03-b555-49bc-825a-0e391e28eea1_800x800.jpeg 424w, https://substackcdn.com/image/fetch/$s_!cMpV!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe21f5d03-b555-49bc-825a-0e391e28eea1_800x800.jpeg 848w, https://substackcdn.com/image/fetch/$s_!cMpV!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe21f5d03-b555-49bc-825a-0e391e28eea1_800x800.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!cMpV!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe21f5d03-b555-49bc-825a-0e391e28eea1_800x800.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!cMpV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe21f5d03-b555-49bc-825a-0e391e28eea1_800x800.jpeg" width="681" height="681" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/e21f5d03-b555-49bc-825a-0e391e28eea1_800x800.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:800,&quot;width&quot;:800,&quot;resizeWidth&quot;:681,&quot;bytes&quot;:114598,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!cMpV!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe21f5d03-b555-49bc-825a-0e391e28eea1_800x800.jpeg 424w, https://substackcdn.com/image/fetch/$s_!cMpV!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe21f5d03-b555-49bc-825a-0e391e28eea1_800x800.jpeg 848w, https://substackcdn.com/image/fetch/$s_!cMpV!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe21f5d03-b555-49bc-825a-0e391e28eea1_800x800.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!cMpV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe21f5d03-b555-49bc-825a-0e391e28eea1_800x800.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>A new folder will appear.&nbsp; Rename this folder to Scripts.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!UZUU!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F19c377a9-0d5a-4a8f-8e7d-1a0ee57101ac_1024x496.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!UZUU!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F19c377a9-0d5a-4a8f-8e7d-1a0ee57101ac_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!UZUU!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F19c377a9-0d5a-4a8f-8e7d-1a0ee57101ac_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!UZUU!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F19c377a9-0d5a-4a8f-8e7d-1a0ee57101ac_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!UZUU!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F19c377a9-0d5a-4a8f-8e7d-1a0ee57101ac_1024x496.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!UZUU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F19c377a9-0d5a-4a8f-8e7d-1a0ee57101ac_1024x496.jpeg" width="1024" height="496" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/19c377a9-0d5a-4a8f-8e7d-1a0ee57101ac_1024x496.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:496,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:37164,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!UZUU!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F19c377a9-0d5a-4a8f-8e7d-1a0ee57101ac_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!UZUU!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F19c377a9-0d5a-4a8f-8e7d-1a0ee57101ac_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!UZUU!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F19c377a9-0d5a-4a8f-8e7d-1a0ee57101ac_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!UZUU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F19c377a9-0d5a-4a8f-8e7d-1a0ee57101ac_1024x496.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The scripts folder is currently empty.&nbsp; Let's create our first script inside it.&nbsp; Select the scripts folder.&nbsp; The content view says &#8220;This folder is empty.&#8221;</p><p>Right-click on the empty space again to pull up the action menu and select:</p><blockquote><p><code>Create &gt; C# Script</code></p></blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!n8em!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa84f9d66-e01a-46df-829a-6fe94bf7ae08_800x800.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!n8em!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa84f9d66-e01a-46df-829a-6fe94bf7ae08_800x800.jpeg 424w, https://substackcdn.com/image/fetch/$s_!n8em!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa84f9d66-e01a-46df-829a-6fe94bf7ae08_800x800.jpeg 848w, https://substackcdn.com/image/fetch/$s_!n8em!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa84f9d66-e01a-46df-829a-6fe94bf7ae08_800x800.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!n8em!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa84f9d66-e01a-46df-829a-6fe94bf7ae08_800x800.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!n8em!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa84f9d66-e01a-46df-829a-6fe94bf7ae08_800x800.jpeg" width="800" height="800" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/a84f9d66-e01a-46df-829a-6fe94bf7ae08_800x800.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:800,&quot;width&quot;:800,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:116061,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!n8em!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa84f9d66-e01a-46df-829a-6fe94bf7ae08_800x800.jpeg 424w, https://substackcdn.com/image/fetch/$s_!n8em!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa84f9d66-e01a-46df-829a-6fe94bf7ae08_800x800.jpeg 848w, https://substackcdn.com/image/fetch/$s_!n8em!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa84f9d66-e01a-46df-829a-6fe94bf7ae08_800x800.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!n8em!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa84f9d66-e01a-46df-829a-6fe94bf7ae08_800x800.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Rename the new script to <em><code>Fundamentals</code></em>.&nbsp; It's important to match the letter casing exactly otherwise we may run into errors in the future.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_WEH!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F64f7c627-3676-49d0-b6c4-007fbfb1b45d_1024x496.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_WEH!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F64f7c627-3676-49d0-b6c4-007fbfb1b45d_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!_WEH!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F64f7c627-3676-49d0-b6c4-007fbfb1b45d_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!_WEH!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F64f7c627-3676-49d0-b6c4-007fbfb1b45d_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!_WEH!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F64f7c627-3676-49d0-b6c4-007fbfb1b45d_1024x496.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_WEH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F64f7c627-3676-49d0-b6c4-007fbfb1b45d_1024x496.jpeg" width="1024" height="496" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/64f7c627-3676-49d0-b6c4-007fbfb1b45d_1024x496.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:496,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:38183,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_WEH!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F64f7c627-3676-49d0-b6c4-007fbfb1b45d_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!_WEH!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F64f7c627-3676-49d0-b6c4-007fbfb1b45d_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!_WEH!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F64f7c627-3676-49d0-b6c4-007fbfb1b45d_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!_WEH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F64f7c627-3676-49d0-b6c4-007fbfb1b45d_1024x496.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Now, guess what?&nbsp; Technically, you&#8217;ve just created your first C# script in Unity!</p><p>It's still not doing anything yet so lets fix that next.</p><p></p><p><strong>Make Your Script Do Something</strong></p><p>We have created our first script in our project but it doesn&#8217;t &#8220;do&#8221; anything yet.&nbsp; In order to change that we need to edit our script.&nbsp; This is simple enough to accomplish.</p><p>From the content view of your project panel, double click the script you just created.&nbsp; This will launch another program, <em>Visual Studio</em>, which comes bundled with your Unity installation.&nbsp; Visual Studio is Unity&#8217;s default program for editing C-sharp code.&nbsp;</p><p>Once it launches it will display the current contents of your script <em><code>Fundamentals.cs</code></em>.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ynA2!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feecc05c5-dfb4-4a5e-b74d-22ed2a58f48b_1024x496.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ynA2!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feecc05c5-dfb4-4a5e-b74d-22ed2a58f48b_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!ynA2!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feecc05c5-dfb4-4a5e-b74d-22ed2a58f48b_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!ynA2!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feecc05c5-dfb4-4a5e-b74d-22ed2a58f48b_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!ynA2!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feecc05c5-dfb4-4a5e-b74d-22ed2a58f48b_1024x496.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ynA2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feecc05c5-dfb4-4a5e-b74d-22ed2a58f48b_1024x496.jpeg" width="1024" height="496" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/eecc05c5-dfb4-4a5e-b74d-22ed2a58f48b_1024x496.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:496,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:70849,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ynA2!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feecc05c5-dfb4-4a5e-b74d-22ed2a58f48b_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!ynA2!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feecc05c5-dfb4-4a5e-b74d-22ed2a58f48b_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!ynA2!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feecc05c5-dfb4-4a5e-b74d-22ed2a58f48b_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!ynA2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feecc05c5-dfb4-4a5e-b74d-22ed2a58f48b_1024x496.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>We&#8217;ll discuss what all that code means in a minute.&nbsp; Right now we&#8217;ll just add a line to print a simple message to the console panel.&nbsp;</p><p>Find the section where it says,</p><blockquote><p><code>void Start()&nbsp;<br>{</code></p><p><code>}</code></p></blockquote><p>And change it to the following:</p><blockquote><p><code>void Start()<br>{<br>    Debug.Log(&#8220;Unity Rocks!&#8221;);<br>}&nbsp;</code></p></blockquote><p>All we&#8217;ve done is add a single line between some curly braces: </p><blockquote><p><code>Debug.Log(&#8220;Unity Rocks!&#8221;);&nbsp;</code></p></blockquote><p>This is how we instruct Unity to &#8220;print&#8221; or &#8220;log&#8221; some text to the console screen.&nbsp;</p><p>Save the script file and go back to the Unity Editor.</p><p>Click on the console panel tab so we can see its contents.&nbsp; It's currently empty but if all goes according to plan, once we run our program, we should see the words &#8220;Unity Rocks!&#8221; printed in the console.&nbsp;&nbsp;</p><p>Located at the top middle portion of the Unity Editor, you&#8217;ll see the play and pause buttons.&nbsp; This is how we run our programs in Unity.&nbsp;&nbsp;</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!gNPC!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F31c9ab54-fc2e-4c36-b49d-beff4f52b862_800x800.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!gNPC!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F31c9ab54-fc2e-4c36-b49d-beff4f52b862_800x800.jpeg 424w, https://substackcdn.com/image/fetch/$s_!gNPC!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F31c9ab54-fc2e-4c36-b49d-beff4f52b862_800x800.jpeg 848w, https://substackcdn.com/image/fetch/$s_!gNPC!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F31c9ab54-fc2e-4c36-b49d-beff4f52b862_800x800.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!gNPC!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F31c9ab54-fc2e-4c36-b49d-beff4f52b862_800x800.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!gNPC!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F31c9ab54-fc2e-4c36-b49d-beff4f52b862_800x800.jpeg" width="569" height="569" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/31c9ab54-fc2e-4c36-b49d-beff4f52b862_800x800.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:800,&quot;width&quot;:800,&quot;resizeWidth&quot;:569,&quot;bytes&quot;:46812,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!gNPC!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F31c9ab54-fc2e-4c36-b49d-beff4f52b862_800x800.jpeg 424w, https://substackcdn.com/image/fetch/$s_!gNPC!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F31c9ab54-fc2e-4c36-b49d-beff4f52b862_800x800.jpeg 848w, https://substackcdn.com/image/fetch/$s_!gNPC!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F31c9ab54-fc2e-4c36-b49d-beff4f52b862_800x800.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!gNPC!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F31c9ab54-fc2e-4c36-b49d-beff4f52b862_800x800.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Click the <em><strong>play</strong></em> button.</p><p>Unity runs our program and&#8230; nothing happens!&nbsp;&nbsp;</p><p>Click the play button again to stop it.</p><p>So what happened?</p><p>Well, I forgot to tell you that all C-sharp scripts in Unity need to be attached to game objects in the scene.&nbsp; This is done by adding our scripts as &#8220;components&#8221; to any number of desired game objects.&nbsp; When the game runs, all attached component scripts are executed on that object.&nbsp; This is how we add behaviors, actions and custom functionality to objects in our game.&nbsp;&nbsp;</p><p>Our scene contains two objects at the moment--the main camera and a directional light.&nbsp; Although we could add our script to these objects, it&#8217;s just as easy to add it to our own special object.&nbsp; Let's do that now.</p><p>In the hierarchy panel, click the plus button found in the top left corner of the view to display an actions menu.&nbsp; Select:</p><blockquote><p><code>3D Object &gt; Cube</code></p></blockquote><p>This creates a cube in the center of our scene view and adds it to the hierarchy view.&nbsp; We&#8217;re going to attach our <em>Fundamentals.cs</em> script to this cube.&nbsp;&nbsp;</p><p>Attaching a script to an object is as simple as dragging the script from the project panel and dropping it unto the desired object in the scene view.&nbsp; Go ahead and try that.&nbsp; Make sure your project panel view is visible and you can see the <em>Fundamentals.cs</em> script in the context window.&nbsp; Click and drag the script file and drop it unto the cube object in the scene view.</p><p>Now, if you select the cube in the scene, you should now see the<br><code>Fundamentals (Script)</code> listed as one of the cube&#8217;s components in the inspector panel.&nbsp; You may need to scroll the inspector window down to see it.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!aXOf!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa148a808-27bf-42a8-9508-f322f71d9b14_800x800.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!aXOf!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa148a808-27bf-42a8-9508-f322f71d9b14_800x800.jpeg 424w, https://substackcdn.com/image/fetch/$s_!aXOf!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa148a808-27bf-42a8-9508-f322f71d9b14_800x800.jpeg 848w, https://substackcdn.com/image/fetch/$s_!aXOf!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa148a808-27bf-42a8-9508-f322f71d9b14_800x800.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!aXOf!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa148a808-27bf-42a8-9508-f322f71d9b14_800x800.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!aXOf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa148a808-27bf-42a8-9508-f322f71d9b14_800x800.jpeg" width="435" height="435" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/a148a808-27bf-42a8-9508-f322f71d9b14_800x800.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:800,&quot;width&quot;:800,&quot;resizeWidth&quot;:435,&quot;bytes&quot;:61874,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!aXOf!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa148a808-27bf-42a8-9508-f322f71d9b14_800x800.jpeg 424w, https://substackcdn.com/image/fetch/$s_!aXOf!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa148a808-27bf-42a8-9508-f322f71d9b14_800x800.jpeg 848w, https://substackcdn.com/image/fetch/$s_!aXOf!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa148a808-27bf-42a8-9508-f322f71d9b14_800x800.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!aXOf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa148a808-27bf-42a8-9508-f322f71d9b14_800x800.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Now we&#8217;re ready to test.&nbsp; </p><p>Click on the console panel again so it's visible.&nbsp; Then click the play button like you did before.</p><p>Viola!&nbsp; The expected output is printed in the console window preceded by a timestamp.</p><p>Something like this:</p><blockquote><p><code>Unity Rocks!<br>UnityEngine.Debug:Log(Object)</code></p></blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!wDJ_!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff35ae9f4-9a1c-451a-820f-8d649a094967_1024x496.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!wDJ_!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff35ae9f4-9a1c-451a-820f-8d649a094967_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!wDJ_!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff35ae9f4-9a1c-451a-820f-8d649a094967_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!wDJ_!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff35ae9f4-9a1c-451a-820f-8d649a094967_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!wDJ_!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff35ae9f4-9a1c-451a-820f-8d649a094967_1024x496.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!wDJ_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff35ae9f4-9a1c-451a-820f-8d649a094967_1024x496.jpeg" width="1024" height="496" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/f35ae9f4-9a1c-451a-820f-8d649a094967_1024x496.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:496,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:24059,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!wDJ_!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff35ae9f4-9a1c-451a-820f-8d649a094967_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!wDJ_!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff35ae9f4-9a1c-451a-820f-8d649a094967_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!wDJ_!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff35ae9f4-9a1c-451a-820f-8d649a094967_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!wDJ_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff35ae9f4-9a1c-451a-820f-8d649a094967_1024x496.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Congratulations, for real this time!&nbsp; </p><p>You have created your first functioning C# script in Unity.</p><p>We now have a good base script that we can keep adding to throughout the rest of this series.  </p><p>Before we end this lesson, let's go back to Visual Studio and take a look at what we have.</p><p></p><p><strong>Basic Parts of a Unity Script</strong></p><p>Here is what our <em>Fundamentals.cs</em> script looks like so far.&nbsp;&nbsp;</p><blockquote><p><code>using System.Collections;<br>using System.Collections.Generic;<br>using UnityEngine;</code></p><p><code>public class Fundamentals : MonoBehaviour<br>{<br>    // Start is called before the first frame update<br>    void Start()<br>    {<br>        Debug.Log("Unity Rocks!");<br>    }</code></p><p><code>    // Update is called once per frame<br>    void Update()<br>    {</code></p><p><code>&nbsp;&nbsp;&nbsp;&nbsp;}</code></p><p><code>}</code></p></blockquote><p>For our purposes, I&#8217;ll quickly identify the basic parts of the script and draw your attention to the portions you&#8217;ll need to know as we practice and build on your C# scripting skills.&nbsp; At this point you&#8217;re only required to know where to add your code in the script file.&nbsp; More advanced aspects of the file will be explained as your C# knowledge grows.</p><p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!D0VT!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F79636712-454b-46ef-aced-8b068bf5bc76_1024x496.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!D0VT!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F79636712-454b-46ef-aced-8b068bf5bc76_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!D0VT!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F79636712-454b-46ef-aced-8b068bf5bc76_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!D0VT!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F79636712-454b-46ef-aced-8b068bf5bc76_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!D0VT!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F79636712-454b-46ef-aced-8b068bf5bc76_1024x496.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!D0VT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F79636712-454b-46ef-aced-8b068bf5bc76_1024x496.jpeg" width="1024" height="496" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/79636712-454b-46ef-aced-8b068bf5bc76_1024x496.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:496,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:71314,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!D0VT!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F79636712-454b-46ef-aced-8b068bf5bc76_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!D0VT!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F79636712-454b-46ef-aced-8b068bf5bc76_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!D0VT!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F79636712-454b-46ef-aced-8b068bf5bc76_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!D0VT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F79636712-454b-46ef-aced-8b068bf5bc76_1024x496.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><ol><li><p>Library import statements</p></li><li><p>Class declaration and body</p></li><li><p>The Class&#8217; methods</p></li><li><p>The Start method</p></li></ol><p>I&#8217;m identifying these parts just to make you aware of them.&nbsp; However, we only need to pay special attention to section 2 and 4 for now.</p><p>Regarding section #2, think of the Class declaration and its body (all the code between first and last curly braces) as the encapsulation body (or shell) of this particular C# script.&nbsp; The restriction to remember here is that the name &#8220;<em>Fundamentals</em>,&#8221; must match the name of the script file--<em>Fundamentals.cs</em>.</p><p>The class can contain any number of named coding blocks, called methods in this context.&nbsp; These code blocks are also demarcated with their own set of curly braces.&nbsp; We have two methods in the Fundamentals class:</p><blockquote><p><code>void Start()<br>{<br>    &#8230;<br>}</code></p></blockquote><p>And&nbsp;&#8230;</p><blockquote><p><code>void Update() <br>{<br>    &#8230;<br>}</code></p></blockquote><p>We&#8217;ll ignore the <code>Update</code> method for now and focus on the Start method.&nbsp;&nbsp;</p><p>The <code>Start</code> method is a special method that gets executed when our game scene is loaded exactly once.&nbsp; When you hit the play button in Unity, the engine loaded the scene and all its containing game objects.&nbsp; For each game object, Unity located the object&#8217;s <code>Start</code> function and executed it once.&nbsp; That&#8217;s why we added our code to this code block.</p><p>We will be adding most of our code to this block as we learn the basic features of C-sharp throughout this course.&nbsp;&nbsp;</p><p>Lastly, I&#8217;d like to mention the lines that begin with <code>//</code>.&nbsp; These are <em>comment</em> lines for the benefit of the programmer and are always ignored by the game engine.</p><p>Next, we&#8217;ll cover <a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-common">variables and common data types</a> in C-sharp.</p><div><hr></div><p><em><strong>An Artist's Guide to C# in Unity3D</strong></em></p><ol><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-setting">Setting up your environment</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity-creating">Creating your first script</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-common">Common data types and variables</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-operators">Operators</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-collections">Collections</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-flow">Flow Control</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-functions">Functions and Methods</a></em></p></li></ol><div><hr></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://notebook.siggyworks.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://notebook.siggyworks.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[An Artist's Guide to C# in Unity3D: Setting up your learning environment]]></title><description><![CDATA[This article is part of an ongoing series for code-leaning artists who want to learn Unity 3D. In this article I walk you through the steps required to set up Unity on your development computer.]]></description><link>https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-setting</link><guid isPermaLink="false">https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-setting</guid><dc:creator><![CDATA[Siggy]]></dc:creator><pubDate>Wed, 09 Dec 2020 03:27:14 GMT</pubDate><enclosure url="https://cdn.substack.com/image/fetch/h_600,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F21d4cefe-1a67-4326-b4aa-1f87dab2b63f_1366x768.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>This article is part of an ongoing series for code-leaning artists who want to learn Unity 3D.&nbsp;&nbsp;In this article I walk you through the steps required to set up Unity on your development computer.&nbsp;</em></p><p><em>Completing this step is required if you want to follow along in the upcoming lessons.</em></p><p></p><p><em><strong>An Artist's Guide to C# in Unity3D</strong></em></p><ol><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-setting">Setting up your environment</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity-creating">Creating your first script</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-common">Common data types and variables</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-operators">Operators</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-collections">Collections</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-flow">Flow Control</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-functions">Functions and Methods</a></em></p></li></ol><div><hr></div><p>Since we will be learning C# within the context of Unity, it makes sense that the first thing you need to do is to install Unity on your computer.&nbsp; The creators of Unity have made this process very simple to accomplish across all three major operating systems.&nbsp; So whether you&#8217;re working on macOS, Windows or Linux, the process is almost identical.</p><p>Let's start by downloading a copy of the <em>Unity Hub</em>.&nbsp; This is a central tool that Unity provides to make it easier to install and manage different versions of the Unity Game Engine and other learning assets.&nbsp; It is very similar to Adobe&#8217;s <em>Creative Cloud</em> desktop application hub which allows you to manage the installations of all your favorite Adobe programs.</p><p><strong>Download and Install Unity Hub</strong></p><ol><li><p>Visit Unity&#8217;s store page here:&nbsp; <a href="https://store.unity.com">https://store.unity.com</a></p></li><li><p>You&#8217;ll be on the <em>Plans and Pricing</em> page.&nbsp; Click on the <em>Individual</em> tab and select the <em>Personal</em> option.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!47_P!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F921a8142-7bc1-4f43-a4b5-3466fe8d3c7f_1366x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!47_P!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F921a8142-7bc1-4f43-a4b5-3466fe8d3c7f_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!47_P!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F921a8142-7bc1-4f43-a4b5-3466fe8d3c7f_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!47_P!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F921a8142-7bc1-4f43-a4b5-3466fe8d3c7f_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!47_P!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F921a8142-7bc1-4f43-a4b5-3466fe8d3c7f_1366x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!47_P!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F921a8142-7bc1-4f43-a4b5-3466fe8d3c7f_1366x768.jpeg" width="1366" height="768" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/921a8142-7bc1-4f43-a4b5-3466fe8d3c7f_1366x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1366,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!47_P!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F921a8142-7bc1-4f43-a4b5-3466fe8d3c7f_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!47_P!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F921a8142-7bc1-4f43-a4b5-3466fe8d3c7f_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!47_P!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F921a8142-7bc1-4f43-a4b5-3466fe8d3c7f_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!47_P!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F921a8142-7bc1-4f43-a4b5-3466fe8d3c7f_1366x768.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li><li><p>You&#8217;ll be prompted to select whether you&#8217;re a first-time user or a returning user.&nbsp; Choose the <em>First-time Users</em> option.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Uzu0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F21d4cefe-1a67-4326-b4aa-1f87dab2b63f_1366x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Uzu0!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F21d4cefe-1a67-4326-b4aa-1f87dab2b63f_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!Uzu0!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F21d4cefe-1a67-4326-b4aa-1f87dab2b63f_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!Uzu0!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F21d4cefe-1a67-4326-b4aa-1f87dab2b63f_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!Uzu0!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F21d4cefe-1a67-4326-b4aa-1f87dab2b63f_1366x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Uzu0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F21d4cefe-1a67-4326-b4aa-1f87dab2b63f_1366x768.jpeg" width="1366" height="768" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/21d4cefe-1a67-4326-b4aa-1f87dab2b63f_1366x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1366,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Uzu0!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F21d4cefe-1a67-4326-b4aa-1f87dab2b63f_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!Uzu0!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F21d4cefe-1a67-4326-b4aa-1f87dab2b63f_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!Uzu0!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F21d4cefe-1a67-4326-b4aa-1f87dab2b63f_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!Uzu0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F21d4cefe-1a67-4326-b4aa-1f87dab2b63f_1366x768.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li><li><p>Read the Terms of service pop-up (because you&#8217;re just a good citizen) and, if you agree, click <em>Agree and Download</em>.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!e2Ci!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3c1a47c-207a-4dfd-8a5b-06e601107379_1366x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!e2Ci!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3c1a47c-207a-4dfd-8a5b-06e601107379_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!e2Ci!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3c1a47c-207a-4dfd-8a5b-06e601107379_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!e2Ci!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3c1a47c-207a-4dfd-8a5b-06e601107379_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!e2Ci!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3c1a47c-207a-4dfd-8a5b-06e601107379_1366x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!e2Ci!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3c1a47c-207a-4dfd-8a5b-06e601107379_1366x768.jpeg" width="1366" height="768" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/f3c1a47c-207a-4dfd-8a5b-06e601107379_1366x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1366,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:116937,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!e2Ci!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3c1a47c-207a-4dfd-8a5b-06e601107379_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!e2Ci!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3c1a47c-207a-4dfd-8a5b-06e601107379_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!e2Ci!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3c1a47c-207a-4dfd-8a5b-06e601107379_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!e2Ci!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3c1a47c-207a-4dfd-8a5b-06e601107379_1366x768.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li><li><p>After the Unity Hub installer has downloaded to your computer, follow your operating system&#8217;s standard process for installing it on your machine.&nbsp;</p></li></ol><p></p><p>After the Unity Hub installed, go ahead and launch it for the first time.</p><p>You should see a screen that looks very much like this:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!pVC_!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39f27e04-962c-42a3-b22c-2a7fbc68268e_1366x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!pVC_!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39f27e04-962c-42a3-b22c-2a7fbc68268e_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!pVC_!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39f27e04-962c-42a3-b22c-2a7fbc68268e_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!pVC_!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39f27e04-962c-42a3-b22c-2a7fbc68268e_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!pVC_!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39f27e04-962c-42a3-b22c-2a7fbc68268e_1366x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!pVC_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39f27e04-962c-42a3-b22c-2a7fbc68268e_1366x768.jpeg" width="1366" height="768" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/39f27e04-962c-42a3-b22c-2a7fbc68268e_1366x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1366,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!pVC_!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39f27e04-962c-42a3-b22c-2a7fbc68268e_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!pVC_!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39f27e04-962c-42a3-b22c-2a7fbc68268e_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!pVC_!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39f27e04-962c-42a3-b22c-2a7fbc68268e_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!pVC_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39f27e04-962c-42a3-b22c-2a7fbc68268e_1366x768.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Next, lets install a version of the Unity Game Engine through the hub.</p><p></p><p><strong>Install Unity Game Engine</strong></p><ol><li><p>Click on the <em><strong>Installs</strong></em> menu option to take you to the software <em>installs</em> section</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!btRO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feb86cfd2-d438-4786-bbdd-a4d4462cf19d_1366x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!btRO!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feb86cfd2-d438-4786-bbdd-a4d4462cf19d_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!btRO!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feb86cfd2-d438-4786-bbdd-a4d4462cf19d_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!btRO!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feb86cfd2-d438-4786-bbdd-a4d4462cf19d_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!btRO!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feb86cfd2-d438-4786-bbdd-a4d4462cf19d_1366x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!btRO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feb86cfd2-d438-4786-bbdd-a4d4462cf19d_1366x768.jpeg" width="1366" height="768" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/eb86cfd2-d438-4786-bbdd-a4d4462cf19d_1366x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1366,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:39978,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!btRO!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feb86cfd2-d438-4786-bbdd-a4d4462cf19d_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!btRO!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feb86cfd2-d438-4786-bbdd-a4d4462cf19d_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!btRO!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feb86cfd2-d438-4786-bbdd-a4d4462cf19d_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!btRO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Feb86cfd2-d438-4786-bbdd-a4d4462cf19d_1366x768.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li><li><p>Click the <em><strong>Add</strong></em> button in the top right corner</p></li><li><p>You&#8217;ll be prompted to select the version of Unity you want to install.&nbsp; Go ahead and select one of the <em>Unity 2020.1.xx</em> versions.&nbsp; In my case I selected <em>Unity 2020.1.16f1</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_Nf2!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a2489e-eeaa-499c-bf84-a5425d046300_1366x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_Nf2!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a2489e-eeaa-499c-bf84-a5425d046300_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!_Nf2!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a2489e-eeaa-499c-bf84-a5425d046300_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!_Nf2!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a2489e-eeaa-499c-bf84-a5425d046300_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!_Nf2!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a2489e-eeaa-499c-bf84-a5425d046300_1366x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_Nf2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a2489e-eeaa-499c-bf84-a5425d046300_1366x768.jpeg" width="1366" height="768" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/c2a2489e-eeaa-499c-bf84-a5425d046300_1366x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1366,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:71707,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_Nf2!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a2489e-eeaa-499c-bf84-a5425d046300_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!_Nf2!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a2489e-eeaa-499c-bf84-a5425d046300_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!_Nf2!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a2489e-eeaa-499c-bf84-a5425d046300_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!_Nf2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2a2489e-eeaa-499c-bf84-a5425d046300_1366x768.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li><li><p>Click the <em><strong>Next</strong></em> button and select at least one of the build target modules you want.&nbsp; These modules will require more space on your computer&#8217;s hard disk and will take longer to install.&nbsp; Since they are optional for completing our lessons, feel free to skip them if you want. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!05SX!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F411b0791-97d0-4fdc-8e18-30803a992ce8_1366x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!05SX!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F411b0791-97d0-4fdc-8e18-30803a992ce8_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!05SX!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F411b0791-97d0-4fdc-8e18-30803a992ce8_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!05SX!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F411b0791-97d0-4fdc-8e18-30803a992ce8_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!05SX!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F411b0791-97d0-4fdc-8e18-30803a992ce8_1366x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!05SX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F411b0791-97d0-4fdc-8e18-30803a992ce8_1366x768.jpeg" width="1366" height="768" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/411b0791-97d0-4fdc-8e18-30803a992ce8_1366x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1366,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:75255,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!05SX!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F411b0791-97d0-4fdc-8e18-30803a992ce8_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!05SX!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F411b0791-97d0-4fdc-8e18-30803a992ce8_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!05SX!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F411b0791-97d0-4fdc-8e18-30803a992ce8_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!05SX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F411b0791-97d0-4fdc-8e18-30803a992ce8_1366x768.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li><li><p>Click <em><strong>Next</strong></em>. Accept any end user agreements if prompted and finally click <em><strong>Done</strong></em>.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!j3rE!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4e718ee-44f3-49e2-b37f-6914d17a80d9_1366x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!j3rE!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4e718ee-44f3-49e2-b37f-6914d17a80d9_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!j3rE!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4e718ee-44f3-49e2-b37f-6914d17a80d9_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!j3rE!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4e718ee-44f3-49e2-b37f-6914d17a80d9_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!j3rE!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4e718ee-44f3-49e2-b37f-6914d17a80d9_1366x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!j3rE!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4e718ee-44f3-49e2-b37f-6914d17a80d9_1366x768.jpeg" width="1366" height="768" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/b4e718ee-44f3-49e2-b37f-6914d17a80d9_1366x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1366,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:128430,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!j3rE!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4e718ee-44f3-49e2-b37f-6914d17a80d9_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!j3rE!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4e718ee-44f3-49e2-b37f-6914d17a80d9_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!j3rE!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4e718ee-44f3-49e2-b37f-6914d17a80d9_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!j3rE!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4e718ee-44f3-49e2-b37f-6914d17a80d9_1366x768.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li></ol><p>Finally, let's create a project we will use for all the upcoming lessons.&nbsp;&nbsp;</p><p></p><p><strong>Create a project</strong></p><ol><li><p>If you&#8217;re not already there, click on the <em>Projects</em> option from the menu on the left.&nbsp; You should see a message, similar to the image below, saying you don&#8217;t have any current projects yet.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!DEnu!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7981ee11-2f06-4c86-b906-b8ac6e7e8ecc_1366x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!DEnu!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7981ee11-2f06-4c86-b906-b8ac6e7e8ecc_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!DEnu!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7981ee11-2f06-4c86-b906-b8ac6e7e8ecc_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!DEnu!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7981ee11-2f06-4c86-b906-b8ac6e7e8ecc_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!DEnu!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7981ee11-2f06-4c86-b906-b8ac6e7e8ecc_1366x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!DEnu!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7981ee11-2f06-4c86-b906-b8ac6e7e8ecc_1366x768.jpeg" width="1366" height="768" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/7981ee11-2f06-4c86-b906-b8ac6e7e8ecc_1366x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1366,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:45659,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!DEnu!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7981ee11-2f06-4c86-b906-b8ac6e7e8ecc_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!DEnu!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7981ee11-2f06-4c86-b906-b8ac6e7e8ecc_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!DEnu!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7981ee11-2f06-4c86-b906-b8ac6e7e8ecc_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!DEnu!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7981ee11-2f06-4c86-b906-b8ac6e7e8ecc_1366x768.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li><li><p>Let's create one by clicking the <em><strong>New</strong></em> button in the top right corner</p></li><li><p>You&#8217;ll be prompted for some project basics like the starting <em>template</em>, the <em>project name</em> and the <em>folder location</em>.&nbsp; Select the <em><strong>3D</strong></em> option template</p></li><li><p>Name your project <em><strong>LearnCsharp</strong></em></p></li><li><p>Select a folder on your computer where you would like to save the project files, then click on <em><strong>Create</strong></em>.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!kDDH!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdced7add-71f2-45b6-bfcf-97662dbbcdf9_1366x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!kDDH!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdced7add-71f2-45b6-bfcf-97662dbbcdf9_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!kDDH!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdced7add-71f2-45b6-bfcf-97662dbbcdf9_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!kDDH!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdced7add-71f2-45b6-bfcf-97662dbbcdf9_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!kDDH!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdced7add-71f2-45b6-bfcf-97662dbbcdf9_1366x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!kDDH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdced7add-71f2-45b6-bfcf-97662dbbcdf9_1366x768.jpeg" width="1366" height="768" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/dced7add-71f2-45b6-bfcf-97662dbbcdf9_1366x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1366,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:72660,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!kDDH!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdced7add-71f2-45b6-bfcf-97662dbbcdf9_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!kDDH!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdced7add-71f2-45b6-bfcf-97662dbbcdf9_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!kDDH!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdced7add-71f2-45b6-bfcf-97662dbbcdf9_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!kDDH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdced7add-71f2-45b6-bfcf-97662dbbcdf9_1366x768.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li></ol><p>Unity Hub will now spend a few minutes creating and configuring your project.&nbsp; When it's complete, it will launch your new project in the Unity Editor and display a screen that looks something like this:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!2gz_!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa88c3b72-5b39-4afa-bff1-5b4861f7e32b_1366x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!2gz_!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa88c3b72-5b39-4afa-bff1-5b4861f7e32b_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!2gz_!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa88c3b72-5b39-4afa-bff1-5b4861f7e32b_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!2gz_!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa88c3b72-5b39-4afa-bff1-5b4861f7e32b_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!2gz_!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa88c3b72-5b39-4afa-bff1-5b4861f7e32b_1366x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!2gz_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa88c3b72-5b39-4afa-bff1-5b4861f7e32b_1366x768.jpeg" width="1366" height="768" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/a88c3b72-5b39-4afa-bff1-5b4861f7e32b_1366x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1366,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!2gz_!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa88c3b72-5b39-4afa-bff1-5b4861f7e32b_1366x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!2gz_!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa88c3b72-5b39-4afa-bff1-5b4861f7e32b_1366x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!2gz_!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa88c3b72-5b39-4afa-bff1-5b4861f7e32b_1366x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!2gz_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa88c3b72-5b39-4afa-bff1-5b4861f7e32b_1366x768.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>If you&#8217;ve made it this far, congratulations!&nbsp;&nbsp;</p><p>You&#8217;re all set to learn C# in Unity with the lessons that follow.</p><p>For each lesson, open up the Unity Hub and navigate to the <em>Projects</em> section. Launch this project by clicking on the project name in the projects list.&nbsp; </p><p>Next: <a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity-creating">Create your first C# script in Unity</a></p><div><hr></div><p><em><strong>An Artist's Guide to C# in Unity3D</strong></em></p><ol><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-setting">Setting up your environment</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity-creating">Creating your first script</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-common">Common data types and variables</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-operators">Operators</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-collections">Collections</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-flow">Flow Control</a></em></p></li><li><p><em><a href="https://notebook.siggyworks.com/p/artists-guide-to-c-in-unity3d-functions">Functions and Methods</a></em></p></li></ol><div><hr></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://notebook.siggyworks.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://notebook.siggyworks.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[Imaginative Play and How to Improve Yours]]></title><description><![CDATA[&#8220;We don&#8217;t stop playing because we grow old, we grow old because we stop playing&#8221; --George Bernard Shaw]]></description><link>https://notebook.siggyworks.com/p/imaginative-play-and-how-to-improve</link><guid isPermaLink="false">https://notebook.siggyworks.com/p/imaginative-play-and-how-to-improve</guid><dc:creator><![CDATA[Siggy]]></dc:creator><pubDate>Wed, 02 Dec 2020 13:01:02 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!3l1-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F565cf5de-9c8e-4aa7-9b13-29780c0714b7_1024x496.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!3l1-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F565cf5de-9c8e-4aa7-9b13-29780c0714b7_1024x496.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!3l1-!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F565cf5de-9c8e-4aa7-9b13-29780c0714b7_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!3l1-!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F565cf5de-9c8e-4aa7-9b13-29780c0714b7_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!3l1-!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F565cf5de-9c8e-4aa7-9b13-29780c0714b7_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!3l1-!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F565cf5de-9c8e-4aa7-9b13-29780c0714b7_1024x496.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!3l1-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F565cf5de-9c8e-4aa7-9b13-29780c0714b7_1024x496.jpeg" width="1024" height="496" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/565cf5de-9c8e-4aa7-9b13-29780c0714b7_1024x496.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:496,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:313232,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!3l1-!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F565cf5de-9c8e-4aa7-9b13-29780c0714b7_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!3l1-!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F565cf5de-9c8e-4aa7-9b13-29780c0714b7_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!3l1-!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F565cf5de-9c8e-4aa7-9b13-29780c0714b7_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!3l1-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F565cf5de-9c8e-4aa7-9b13-29780c0714b7_1024x496.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>A few weeks ago I knocked on the front door of my brother&#8217;s home and walked in without waiting for a response, as I always do.&nbsp; (Don&#8217;t ask why I knock first, it&#8217;s a useless habit of mine).</p><p>It was my regular Thursday evening visit and the only day of the week when I leave the office early so I can hang out with my two nephews before their bedtime.&nbsp; </p><p>On this day, as soon I walked through the door, my seven-year old nephew screeched, &#8220;Uncle Siggy!&nbsp; Uncle Siggy! Hurry, jump unto the island, they&#8217;re going to eat you!&#8221;&nbsp;</p><p>&#8220;Me? Who&#8217;s going to eat me?&#8221; I asked.</p><p>&#8220;The sharks!&#8221; He yelled back.</p><p>&#8220;And the alligators,&#8221; the five-year old added.</p><p>Both boys were standing on the couch with toy hockey sticks in their hands, frantically motioning for me to join them on the couch.&nbsp; </p><p>&#8220;Quickly, Uncle Siggy! Hop on the islands to get to the big island.&#8221;&nbsp; </p><p>I looked around the disheveled living room.&nbsp; There was an explosion of toys everywhere and couch pillows strategically placed around the living room floor.&nbsp;&nbsp;</p><p>Without missing a beat, I hopped from pillow to pillow and launched myself unto the couch with the two boys.&nbsp;&nbsp;</p><p>&#8220;Oh my god, thanks guys.&#8221;&nbsp; I gasped.</p><p>&#8220;They almost got you,&#8221; the seven year old said,&nbsp; &#8220;Our only problem now is keeping our supplies up.&#8221;</p><p>&#8220;Our supplies?&#8221; I wondered aloud.</p><p>&#8220;Yeah, for our injured comrades.&#8221;&nbsp; They gestured to a group of bandaged stuffed animals on the couch with us.&nbsp; I looked down at my knee which was currently crushing <em>Toothless</em> the dragon, who was swaddled in a hand towel.</p><p>&#8220;Oh, excuse me,&#8221; I said, gently patting the injured toy.</p><p>&#8220;They need supplies from the giga-factory.&#8221;&nbsp;&nbsp;</p><p>The giga-factory was their toy box located in the far corner of the living room. Their father is an engineer, so of course, they would go with a name like &#8220;<em>giga-factory</em>.&#8221;&nbsp;&nbsp;</p><p>The couches and cushions were the only safe spots.&nbsp; Everything else was shark and alligator-infested water.</p><p>&#8220;Got it,&#8221; I said.&nbsp; &#8220;So what&#8217;s my mission, Captain?&#8221;</p><p>For the next half-hour, I was thrown into a fantastically fluid world of survival, danger, heroic rescue, tragic loss and brave triumph (aided by hyper-futuristic technology or sorcery, not sure which).</p><p>Afterwards, on my drive home that night, I started wondering when I stopped having that sort of imaginary fun.&nbsp; I&#8217;m not about to start hopping from couch to couch in my living room, all by myself, pretending my floor is molten lava or something.&nbsp; My neighbors would think I was bonkers (or more likely, ask to share whatever &#8216;shrooms I had taken).</p><p>Why don&#8217;t I play like that anymore?&nbsp; Why don&#8217;t most adults?&nbsp;&nbsp;</p><p></p><h4><strong>Adults are Kids Too</strong></h4><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!b1BM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e31fcf-5bea-4b1b-8c9e-a19ba71c9abc_1024x496.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!b1BM!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e31fcf-5bea-4b1b-8c9e-a19ba71c9abc_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!b1BM!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e31fcf-5bea-4b1b-8c9e-a19ba71c9abc_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!b1BM!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e31fcf-5bea-4b1b-8c9e-a19ba71c9abc_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!b1BM!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e31fcf-5bea-4b1b-8c9e-a19ba71c9abc_1024x496.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!b1BM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e31fcf-5bea-4b1b-8c9e-a19ba71c9abc_1024x496.jpeg" width="1024" height="496" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/a9e31fcf-5bea-4b1b-8c9e-a19ba71c9abc_1024x496.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:496,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:83290,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!b1BM!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e31fcf-5bea-4b1b-8c9e-a19ba71c9abc_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!b1BM!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e31fcf-5bea-4b1b-8c9e-a19ba71c9abc_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!b1BM!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e31fcf-5bea-4b1b-8c9e-a19ba71c9abc_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!b1BM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e31fcf-5bea-4b1b-8c9e-a19ba71c9abc_1024x496.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>It's generally accepted that adults are less playful than children, but why is this the case and is it necessarily a good thing?&nbsp; My curiosity on the matter led me to several books about <em>play</em> and it turns out adults never really stop playing--at least not the most creative ones.&nbsp; The nature and subjects of adult play are different from that of children but the effects on the brain are the same.&nbsp; Playfulness is an indispensable component for cultivating and maintaining creativity throughout one&#8217;s life.</p><p>As I&#8217;ve explained in previous chapters, <em>immersing</em> oneself in a particular domain and exerting the discipline required to master a craft is an obvious prerequisite for producing innovative and impactful work.&nbsp; However, mastery of craft is only a fraction of the creative calculus.&nbsp; In the book, <em><a href="https://amzn.to/2JBArWm">Wired to Create</a></em>, positive psychologist, Scott Kaufman explains that &#8220;cultivating a childlike sense of play can revolutionize the way we work.&#8221;</p><p>Injecting a sense of play into otherwise grueling work keeps us creatively nimble and more adroit at recognizing potential problem-solving breakthroughs.&nbsp; We are fortified against the stress induced from long hours of creative work when there&#8217;s a playful lightheartedness about the work itself.&nbsp; Kaufman&#8217;s research also shows that <em>playful work</em> provides the optimal learning conditions for both children and adults.&nbsp;&nbsp;</p><p>Think about the kid in your sixth grade class who could recall reams of vital playing statistics for every Chicago Bulls player since 1996 but still couldn&#8217;t tell you the names of the first four presidents of the United States.&nbsp; You can guess which set of data the kid likely played with more often.</p><p></p><h4><strong>Adult Barbie Dolls and Fire Trucks</strong></h4><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!LmTw!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F553ac2cd-523f-4c92-86bd-a34fb854ab9c_1024x496.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!LmTw!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F553ac2cd-523f-4c92-86bd-a34fb854ab9c_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!LmTw!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F553ac2cd-523f-4c92-86bd-a34fb854ab9c_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!LmTw!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F553ac2cd-523f-4c92-86bd-a34fb854ab9c_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!LmTw!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F553ac2cd-523f-4c92-86bd-a34fb854ab9c_1024x496.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!LmTw!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F553ac2cd-523f-4c92-86bd-a34fb854ab9c_1024x496.jpeg" width="1024" height="496" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/553ac2cd-523f-4c92-86bd-a34fb854ab9c_1024x496.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:496,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:159078,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!LmTw!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F553ac2cd-523f-4c92-86bd-a34fb854ab9c_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!LmTw!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F553ac2cd-523f-4c92-86bd-a34fb854ab9c_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!LmTw!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F553ac2cd-523f-4c92-86bd-a34fb854ab9c_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!LmTw!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F553ac2cd-523f-4c92-86bd-a34fb854ab9c_1024x496.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>When it comes to playfulness in adulthood, the definition of a toy expands beyond just Barbie dolls and shoe-sized fire trucks.&nbsp; For creatively inclined adults, almost everything can be a <em>toy</em> worth engaging in imaginative play.&nbsp;&nbsp;</p><p>All manner of objects, personal experiences, memories, emotions, ideas and fantasies are suitable toys for adult play.&nbsp; When you hear an interviewer ask a famous musician or author, &#8220;where do you get your inspiration from?&#8221;&nbsp; You can bet the artist is about to share what his or her imaginative play toys are.</p><p>Grant Wood, the artist behind the iconic piece <em>American Gothic</em>, was engaging in this type of mental play when he came up with the concept of his most recognized painting.&nbsp; While on a drive through rural Iowa, he made a sketch of a farmhouse that caught his attention.&nbsp; When he got back to his studio Grant started playing with different views of the property and imagining what sort of people might live in a house like that.&nbsp; Eventually, he settled on using his sister and his dentist as models for the couple in the now famous painting.</p><p>Emotions like love and loss are popular sources of play and inspiration for musicians and poets.&nbsp; However, the great thing about the limitless nature of imaginative play is that the source could be anything.&nbsp; Even, let's say... deodorant.&nbsp;&nbsp;</p><p>According to record-industry lore, the line, &#8220;Kurt smells like teen spirit,&#8221; was scrawled on Kurt Cobain&#8217;s wall by a fellow bandmate.&nbsp; The message was intended as a mild condescension towards Kurt and the brand of deodorant worn by his girlfriend at the time. However, when the Nirvana front-man read the line he thought it sounded deep and rebellious and was thus inspired to write the 1991 hit song, <em>Smells Like Teen Spirit</em>.&nbsp; You&#8217;ve got to love the power of imaginative play.</p><p>Another product of imaginative play familiar to writers, filmmakers and game designers is <em>world building</em>.&nbsp; The sort of elaborate world building produced by J.R.R. Tolkein, C.S Lewis, George R. R. Martin and George Lucas maintain their roots in childhood <em>paracosms</em>.&nbsp;&nbsp;</p><p>Creativity Psychologist Michelle Root-Bernstein defines paracosms as detailed imaginary worlds created by children usually between the ages of 8 and 12.&nbsp; Children engage deeply with these worlds filled with complex rules and imaginary characters in what she calls <em>worldplay</em>.&nbsp;&nbsp;</p><p>This type of play differs from simple pretend play which is more ephemeral and usually only lasts as long as the child is engaged in the moment.&nbsp; Worldplay is more persistent and continuous in the sense that the child returns to the world over and over, adding rules, extending character narratives and generally expanding the world&#8217;s systems.&nbsp;&nbsp;</p><p>Even after world building and worldplay ends around puberty, Root-Bernstein has found that this richly creative exercise can be an indicator of creative giftedness in adulthood.&nbsp; Several creative luminaries like C.S Lewis and famous Nintendo game designer Shigeru Miyamoto, report engaging in extensive worldplay as children and indeed drew upon those worlds in their later work.</p><p>For some adults like J.R.R. Tolkein worldplay never really stops.&nbsp; Tolkein was a philologist with a profound interest in linguistics and literary history.&nbsp; It has been reported that he invented the vastly detailed worlds of Middle-Earth and all its lore as an &#8220;excuse&#8221; to explore the imaginary languages he created.&nbsp; In fact, the volume of instructional manuals and guides he produced describing the incredible world and history of Middle-Earth exceeds the total volume of purely fictional stories he completed about those worlds.&nbsp; These stories include the famous classics <em>The Hobbit</em> and <em>The Lord of the Rings</em> trilogy.</p><p></p><h4><strong>Imagination Games</strong></h4><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!fM2u!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe807e80d-0ccb-41bd-a7c8-d5e86a54ed8b_1024x496.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!fM2u!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe807e80d-0ccb-41bd-a7c8-d5e86a54ed8b_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!fM2u!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe807e80d-0ccb-41bd-a7c8-d5e86a54ed8b_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!fM2u!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe807e80d-0ccb-41bd-a7c8-d5e86a54ed8b_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!fM2u!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe807e80d-0ccb-41bd-a7c8-d5e86a54ed8b_1024x496.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!fM2u!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe807e80d-0ccb-41bd-a7c8-d5e86a54ed8b_1024x496.jpeg" width="1024" height="496" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/e807e80d-0ccb-41bd-a7c8-d5e86a54ed8b_1024x496.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:496,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:62996,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!fM2u!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe807e80d-0ccb-41bd-a7c8-d5e86a54ed8b_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!fM2u!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe807e80d-0ccb-41bd-a7c8-d5e86a54ed8b_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!fM2u!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe807e80d-0ccb-41bd-a7c8-d5e86a54ed8b_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!fM2u!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fe807e80d-0ccb-41bd-a7c8-d5e86a54ed8b_1024x496.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>A great benefit of our brain&#8217;s neuroplasticity is that we can benefit from imaginative play throughout our lives.&nbsp; For adults, imaginative play can be incredibly rewarding on a mental and physiological level.&nbsp; This sort of internal respite from the shackles of professional adult life fosters curiosity, ageless vitality and of course, increased creative thinking.&nbsp;</p><p>So here are a few exercises you can try for yourself to reap the benefits of your imagination at play.</p><p></p><p><strong>Analogy Portrait ID</strong></p><p>The goal of this exercise is to analogize the descriptive attributes that may appear on a standard government issue ID of a famous person with a noun (an object place or thing). The substitution criteria are as follows:</p><blockquote><p><strong>Photograph</strong>&nbsp; &#9;&#9;<em>an animal</em></p><p><strong>Height</strong>&#9; &#9;&#9;<em>a cartoon character</em></p><p><strong>Hair</strong> &#9;&#9;&#9;<em>a geographic location</em></p><p><strong>Eyes</strong> &#9;&#9;&#9;<em>a movie or TV show (unaffiliated with the subject)</em></p><p><strong>Voice</strong> &#9;&#9;&#9;<em>a song</em></p><p><strong>Sex</strong> &#9;&#9;&#9;        <em>a restaurant</em></p><p><strong>Place of Birth</strong> &#9;<em>an element from the periodic table</em></p><p><strong>Date of Birth</strong> &#9;<em>a number between 1 and 365</em></p><p><strong>Profession</strong> &#9;&#9;<em>a gemstone</em></p><p><strong>Address</strong> &#9;&#9;<em>a famous quotation (not made by the subject)</em></p><p><strong>Signature</strong>&#9; &#9;<em>one playing card from a standard 52-card deck</em></p></blockquote><p></p><p>So for example, let's say I pick Tiger Woods, then my answers could look like this:</p><blockquote><p><strong>Photograph</strong>&nbsp; &#9;&#9;<em>Chipmunk</em></p><p><strong>Height</strong>&#9; &#9;&#9;<em>Ned Flanders</em></p><p><strong>Hair</strong> &#9;&#9;&#9;<em>Joshua Tree Park</em></p><p><strong>Eyes</strong> &#9;&#9;&#9;<em>The Shawshank Redemption</em></p><p><strong>Voice                      </strong><em>Let Her Cry</em> by Hootie &amp; The Blowfish</p><p><strong>Sex</strong> &#9;&#9;&#9;        <em>Bahama Breeze</em></p><p><strong>Place of Birth</strong> &#9;<em>Fluoride</em></p><p><strong>Date of Birth</strong>&nbsp; &#9;<em>29</em></p><p><strong>Profession</strong> &#9;&#9;<em>Emerald</em></p><p><strong>Address</strong> &#9;&#9;<em>&#8220;You never really learn much from hearing yourself speak.&#8221;<br>                                &#8212;George Clooney</em></p><p><strong>Signature</strong> &#9;&#9;<em>The king-of-clubs</em></p></blockquote><p>Here are a few names to get you started: Bill Clinton, The Dalai Lama, Elon Musk</p><p></p><p><strong>Music Muse Stream</strong></p><p>This is a fun exercise I often use to loosen up my imagination &#8220;muscles.&#8221;&nbsp;&nbsp;</p><p>The instructions are simple.&nbsp; First, you&#8217;ll need a pen and some paper or a device you can type quickly on, such as a laptop with Google Docs.&nbsp; Next, visit your favorite music streaming service and pick an instrumental song with no lyrics or vocals and hit play.&nbsp; As you listen to the song, ask yourself, &#8220;if this was the soundtrack to a movie in your head, what scene would be taking place right now?&#8221;&nbsp; What images, sequences and narrative would be unfolding on-screen to accompany this music?</p><p>Write down the story as you see it unfolding in your mind&#8217;s eye.&nbsp; Do this while the music plays and allow the music to drive your imagination, no matter how absurd.&nbsp; Try not to censor yourself during this process and you&#8217;ll be pleasantly surprised by the end result.</p><p></p><p><strong>Titled Picture Completion</strong></p><p>For this exercise you&#8217;ll need three sheets of blank white paper and a pencil.</p><p>Here we go.&nbsp; Pick any three popular song titles from the following list:&nbsp;&nbsp;</p><blockquote><p><em>&#8220;Cry Me A <strong>R</strong>iver&#8221;</em></p><p><em>&#8220;I Want To <strong>K</strong>now What Love Is&#8221;</em></p><p><em>&#8220;Welcome to the <strong>J</strong>ungle&#8221;</em></p><p><em>&#8220;Respect <strong>Y</strong>ourself&#8221;</em></p><p><em>&#8220;Get Ur <strong>F</strong>reak On&#8221;</em></p><p><em>&#8220;All <strong>A</strong>pologies&#8221;</em></p><p><em><strong>&#8220;C</strong>ome As You Are&#8221;</em></p><p><em>&#8220;I <strong>S</strong>hot the Sheriff&#8221;</em></p><p><em>&#8220;Smoke on the <strong>W</strong>ater&#8221;</em></p><p><em>&#8220;<strong>B</strong>itter Sweet Symphony&#8221;</em></p></blockquote><p>Now, write each song title you selected at the top of each blank piece of paper.&nbsp; When you&#8217;re done, each piece of paper should have a song title written across the top of the page.&nbsp;</p><p>At this point you&#8217;re probably wondering why a single letter from each song title has been highlighted.&nbsp; Well, here&#8217;s where you find out:&nbsp; Write that letter right in the middle of your sheet of paper. You should write the letter large enough to take up the middle third of the page--roughly the same size as a toddler&#8217;s hand.&nbsp;&nbsp;</p><p>Your imaginative task is to transform the letter in the middle of your page, into a picture/drawing that expresses or complements the title you&#8217;ve written on the page.&nbsp; This doesn&#8217;t have to be a masterpiece. In fact, it works better if you don't agonize over the quality of the drawing and just create the most appropriate line sketch you feel matches the song title.&nbsp;&nbsp;</p><p>You may find the mild tension of creating an image (constrained by the initial strokes) that matches the song&#8217;s theme quite gratifying.&nbsp;</p><p>Feel free to attempt these exercises as often as desired.&nbsp; After doing this regularly, the rewards of a strengthened imagination will be yours to reap.</p><div><hr></div><p><em>All images by <a href="https://www.freepik.com/vectors">Freepik</a></em></p>]]></content:encoded></item><item><title><![CDATA[Human Beings:  Those Novelty Addicts!]]></title><description><![CDATA[Why our brains always crave the new, new, new thing and how that is related to creativity]]></description><link>https://notebook.siggyworks.com/p/human-beings-those-novelty-addicts</link><guid isPermaLink="false">https://notebook.siggyworks.com/p/human-beings-those-novelty-addicts</guid><dc:creator><![CDATA[Siggy]]></dc:creator><pubDate>Wed, 18 Nov 2020 13:00:51 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!5-6l!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F3b6e605c-3d63-40f4-a29b-0bbd68ba4daf_1024x496.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!5-6l!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F3b6e605c-3d63-40f4-a29b-0bbd68ba4daf_1024x496.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!5-6l!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F3b6e605c-3d63-40f4-a29b-0bbd68ba4daf_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!5-6l!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F3b6e605c-3d63-40f4-a29b-0bbd68ba4daf_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!5-6l!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F3b6e605c-3d63-40f4-a29b-0bbd68ba4daf_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!5-6l!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F3b6e605c-3d63-40f4-a29b-0bbd68ba4daf_1024x496.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!5-6l!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F3b6e605c-3d63-40f4-a29b-0bbd68ba4daf_1024x496.jpeg" width="1024" height="496" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/3b6e605c-3d63-40f4-a29b-0bbd68ba4daf_1024x496.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:496,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!5-6l!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F3b6e605c-3d63-40f4-a29b-0bbd68ba4daf_1024x496.jpeg 424w, https://substackcdn.com/image/fetch/$s_!5-6l!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F3b6e605c-3d63-40f4-a29b-0bbd68ba4daf_1024x496.jpeg 848w, https://substackcdn.com/image/fetch/$s_!5-6l!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F3b6e605c-3d63-40f4-a29b-0bbd68ba4daf_1024x496.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!5-6l!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F3b6e605c-3d63-40f4-a29b-0bbd68ba4daf_1024x496.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Photo by <a href="https://www.freepik.com/photos/woman">freepik</a></em></figcaption></figure></div><p>How many different kinds of socks exist in the world?&nbsp;</p><p>What about shoes?&nbsp; Or just sneakers?&nbsp; How many new sneaker styles were created just this year?&nbsp; What about movies or TV shows?&nbsp; Or iPhones?&nbsp; Why do we keep buying new ones every single year?</p><p>This question could be posed of any consumer product, but the real target of inquiry should be the consumers.&nbsp; Why do we buy billions of dollars worth of sneakers every year?&nbsp; Or line up around the block for the latest iPhone?&nbsp; Or clamor to see new movies when they get released?</p><p>Humans love the new, new thing. You could even say we live for the novelty. Last year&#8217;s perfect pair of near pristine <em>Nike Air Max</em>&#8217;s, get discarded for this year&#8217;s <em>Nike Yeezy&#8217;</em>s.&nbsp; The new <em>Call of Duty</em> video game turns into a must-have because everyone stopped playing the last epic release over a year ago.&nbsp; Or, we all scramble to see the latest James Bond movie even though we know exactly how it will end--just like the previous twenty releases did before it.</p><p>In their book, <em><a href="https://amzn.to/2INlFM8">The Runaway Species</a></em>, Anthony Brandt and David Eagleman offer several good explanations on why human brains are addicted to the new.&nbsp; And, as you might expect, it has everything to do with our evolution.&nbsp;</p><p></p><h4><strong>Pattern Interruptions: Brains evolved to pay attention to differences and novelties</strong></h4><p>Our brains are constantly bombarded with information from our sensory channels.&nbsp; Let's consider how human beings listen for instance.&nbsp; Our ears don&#8217;t have an off-switch, so every sound around us is constantly streaming into our ear canals and hitting our sound receptors.&nbsp; For example, imagine you&#8217;re sitting on your balcony reading a novel.&nbsp; The sound of vehicle traffic rumbles from the street below, complete with car honking, doors slamming and the roar of car engines starting up.&nbsp; There is also the chatter of passers-by, dogs barking and the clanking of dumpster lids but none of those sounds register in your brain.&nbsp; They are all part of the normal sound pattern you&#8217;ve grown to expect in your neighborhood.&nbsp; So you barely notice and get deeper engrossed in your book.&nbsp;</p><p>Now let's say at this exact moment, still lost in your book, you hear the roar of a Tiger!&nbsp; No matter how engrossed you may be in your book, you&#8217;re likely to stand at attention--immediately! The Tiger&#8217;s roar in your neighborhood is a definite pattern interruption.&nbsp; The sheer novelty of it forces your brain to say something like, &#8220;hey dude, I know this book is really starting to get interesting but you better check out that sound I just sent to your inbox.&nbsp; It sounds like a Tiger and I don&#8217;t think we&#8217;re anywhere near a zoo, so you should check it out. Now!&#8221;</p><p>A mental bias towards novelty kept our ancestors alive by enabling them to determine what new changes may have occurred in their environment.&nbsp; Such changes could indicate an immediate need for self-preservation (running to safety from a wild animal) or survival-enhancement (running towards freshly flowering plants that could indicate the availability of fruits).&nbsp;&nbsp;&nbsp;</p><p>Another simple example is noticing a quick movement in the periphery of your field of vision.&nbsp; You&#8217;re bound to divert your straight ahead gaze in the direction of the movement.&nbsp; It's a change to which your brain demands you pay some attention.&nbsp; It could be a quickly darting and potentially delicious rabbit, or a rapidly approaching bear.</p><p>Today, pattern interruptions are exploited by advertisers and creators of all the consumer goods we purchase.&nbsp; Undulating, inflatable dolls at car dealership strip malls, singing beer-drinking frogs on TV and giant pink mustaches on tiny Hondas are all designed to exploit your mind&#8217;s tendency to fixate on novelty and difference.</p><p></p><h4><strong>Repetition Suppression:&nbsp; That joke you&#8217;ve heard 1000 times is no longer funny</strong></h4><p>A corollary to the pattern interruption is repetition suppression.&nbsp; Repetition suppression is the result of our brains learning from pattern interruptions.&nbsp;&nbsp;</p><p>Let's say you&#8217;re returning home from work one day and as you pull into your driveway, you notice a large pink unicorn with a huge rainbow tail prancing around in your neighbor&#8217;s front yard.&nbsp; As we learned earlier, an event like that would qualify as the mother of all pattern interrupts.&nbsp; You would probably spend the rest of your week talking about it, maybe even calling a joint-press conference with your neighbor to show it off.</p><p>Then let's say the unicorn visits every weekend.&nbsp; It would probably still be the talk of the neighborhood for the next six, seven maybe eight weeks?&nbsp; By the fifth or sixth month of Mr. Rainbow-tailed Unicorn showing up every weekend, even senile neighborhood porch dwellers would barely acknowledge his presence.&nbsp; The once shiny unicorn might start feeling like a low-rent <em>Bojack Horseman</em> to you and, certainly, your neighbor.&nbsp;&nbsp;</p><p>According to Brandt and Eagleman, &#8220;once our brains become familiar with something, the less neural energy it spends on it.&#8221;&nbsp; Our brains are highly efficient pattern-recognition machines.&nbsp; Patterns are helpful for making predictions in the future once they are learned.&nbsp; And this is exactly what the brain does.&nbsp;&nbsp;</p><p>When we encounter something novel, whether it's a new person, skill or event like a unicorn in your neighbor&#8217;s yard.&nbsp; Our brains spend a lot of energy collecting information about this new &#8220;pattern.&#8221;&nbsp; With increased exposure to the novel entity, the amount of energy spent by the brain on that entity diminishes as it learns what to expect.&nbsp; So the first time you heard your uncle tell that one randy joke, your brain probably lit up significantly, as you doubled over with laughter.&nbsp; On the 99th or 100th time, however, that same joke has become quite a yawn and left you wondering how you ever found it funny in the first place.</p><p>This rapid pattern-recognition and chunking down of patterns is how our brains keep learning and conserve energy at the same time.&nbsp; The brain wants to spend energy on new things to notice, learn and assimilate about the environment not on old patterns it has already mastered.</p><p>Mastering patterns is how our minds try to predict the future in order to keep us safe and one-step ahead of our environment and the challenges it may bear on us.&nbsp; Once our brains recognize a pattern, it jumps to the final outcome as quickly as possible and redirects resources towards processing for the next thing.&nbsp; If familiarity with a pattern leads to mastery, it also inadvertently produces indifference and boredom as a by-product of that mastery.</p><p></p><h4><strong>Imagination: An infinite simulation holodeck</strong></h4><p>One of the most magical things about our human brains, as David Eagleman and Yuval Hariri would both agree, is our ability to simulate elaborate alternatives to reality.&nbsp; It&#8217;s the simple act of asking ourselves, &#8220;What if,&#8221; and observing what comes out of that consideration.</p><p>Again, our brains are trying to teach us about the future and preserve us when we encounter unknown circumstances.&nbsp; When we explore what-if scenarios, our minds are playing an adventure video game and testing out several options, routes and strategies.&nbsp; This allows us to learn vital lessons in imagination-space without risking life and limb in reality.&nbsp;</p><p>This is easily observable in young children at play.&nbsp; Their imaginative adventures can transition fluidly from fantastic space explorations to saving lives on an operation table in the same scene.&nbsp; Almost every parent has a story about watching their kids engage with an empty card box with as much enthusiasm as the toy that came in the box.&nbsp; These children are practicing for a future beyond the safety of their parent&#8217;s living rooms.</p><p>Additionally, these imaginative simulations do not diminish with age.&nbsp; Instead, our mental simulations become less fantastic and more rooted in reality.&nbsp; We may no longer day dream about shooting aliens on Mars with double finger-guns, but we will mentally simulate taking our vacation time in July so we can go to the beach, versus waiting until December so we can go on a longer ski trip with the family.&nbsp; The imagination is still exercised but on a more limited holodeck.&nbsp;</p><p>The chief aim of all this mental simulation is to determine which decisions to make in reality.&nbsp; Eagleman and Brandt say the mental simulation is the process of mediating numerous inputs into a viable course of action.&nbsp; The mind deploys a trove of assimilated information in the service of exploring real world options.&nbsp; It is constantly dissecting and recombining ideas, experiences, skills, facts, everything in order to produce new thoughts that could be of use to us.&nbsp; Unlike computers, which return garbage information when fed garbage inputs, human minds can take garbage inputs and return real life gems!</p><p></p><h4><strong>Conclusion</strong></h4><p>Human minds cannot help but be drawn to the new, new thing.&nbsp; The shiny object that deviates from expected norms will always command our attention, but only for so long.&nbsp; Once the brain masters its pattern, it will lose interest in continuing to explore that pattern and move on to the next novel item.&nbsp; This gives the brain ample material for creating elaborate simulations about life and our environment in order to produce viable options for real-life execution and continued survival.&nbsp; It&#8217;s a never ending march that has transformed us from flint wielding huntsmen to space-bound astronauts.</p>]]></content:encoded></item><item><title><![CDATA[Do You Know Who Invented the Super Soaker?]]></title><description><![CDATA[A Creator's Story]]></description><link>https://notebook.siggyworks.com/p/super-soaking-warfare</link><guid isPermaLink="false">https://notebook.siggyworks.com/p/super-soaking-warfare</guid><dc:creator><![CDATA[Siggy]]></dc:creator><pubDate>Tue, 17 Nov 2020 13:00:17 GMT</pubDate><enclosure url="https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/eba4df30-65b9-4947-9a78-fbe4a1c4d022_417x331.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!9_ge!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F98950d35-4462-4362-938d-8d57331695e5_1024x333.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!9_ge!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F98950d35-4462-4362-938d-8d57331695e5_1024x333.jpeg 424w, https://substackcdn.com/image/fetch/$s_!9_ge!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F98950d35-4462-4362-938d-8d57331695e5_1024x333.jpeg 848w, https://substackcdn.com/image/fetch/$s_!9_ge!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F98950d35-4462-4362-938d-8d57331695e5_1024x333.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!9_ge!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F98950d35-4462-4362-938d-8d57331695e5_1024x333.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!9_ge!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F98950d35-4462-4362-938d-8d57331695e5_1024x333.jpeg" width="1024" height="333" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/98950d35-4462-4362-938d-8d57331695e5_1024x333.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:333,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!9_ge!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F98950d35-4462-4362-938d-8d57331695e5_1024x333.jpeg 424w, https://substackcdn.com/image/fetch/$s_!9_ge!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F98950d35-4462-4362-938d-8d57331695e5_1024x333.jpeg 848w, https://substackcdn.com/image/fetch/$s_!9_ge!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F98950d35-4462-4362-938d-8d57331695e5_1024x333.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!9_ge!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F98950d35-4462-4362-938d-8d57331695e5_1024x333.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Image by <a href="https://www.freepik.com/vectors/water">Freepik</a></em></figcaption></figure></div><p>I crouched as low as I could and crawled along the side of the brick stone building.&nbsp; My gun in my sweaty palms and senses on hyper alert.&nbsp; All I could hear were my own heavy breathing and the faint yelling of children somewhere in the distant background.&nbsp; I was inching my way toward the corner of the building so I could get a sense of where my assailants were.&nbsp; I had lost track of my team a while ago.&nbsp; I could only assume they had all been eliminated and I was the last survivor.&nbsp; I took a few more deep breaths and kept crawling towards the corner.</p><p>My gun felt much lighter now--fifteen straight minutes of firing will do that.&nbsp; If I could duck into the building, I could regroup and think of a new strategy for survival.&nbsp; I reached the corner of the building and peered around it very carefully.&nbsp; There was nobody in sight and just one old Honda parked in front of the building.&nbsp; I could get a better look around from behind the car.&nbsp; I got to my feet and made a mad dash for the car.</p><p><em>Whomp! Phoosh! Splash!</em></p><p>I felt like I got hit from a hundred different angles.&nbsp; I crashed to the ground and rolled over on my back in defeat.&nbsp;&nbsp;</p><p>They got me.&nbsp;&nbsp;</p><p>I could already hear the cackling of Jeff Larson and his stupid 5th grade gang, taunting me with &#8220;You&#8217;re all wet, sucker!&#8221;&nbsp;</p><p>It wasn&#8217;t a fair fight at all.&nbsp; My little pee shooter was no match for his Super Soaker 50.&nbsp; The arms race was on.&nbsp; I had to convince my parents to buy me one--somehow.&nbsp; Jeff&#8217;s lunchtime tyranny had to end.</p><p>So began my fascination with the Super Soaker and all its models.&nbsp; Beyond the SS50, there were models like the colossal SS300 with its three nozzles and 6-liter tank and the crazy Artic Blast which chills the water stream as it shoots out.&nbsp; Who thought up all this stuff, I wonder?</p><p>Enter, Dr. Lonnie Johnson.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!riRZ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39b53afa-18e2-42a6-91b2-4a8fa6e7c2dd_1360x620.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!riRZ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39b53afa-18e2-42a6-91b2-4a8fa6e7c2dd_1360x620.jpeg 424w, https://substackcdn.com/image/fetch/$s_!riRZ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39b53afa-18e2-42a6-91b2-4a8fa6e7c2dd_1360x620.jpeg 848w, https://substackcdn.com/image/fetch/$s_!riRZ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39b53afa-18e2-42a6-91b2-4a8fa6e7c2dd_1360x620.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!riRZ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39b53afa-18e2-42a6-91b2-4a8fa6e7c2dd_1360x620.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!riRZ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39b53afa-18e2-42a6-91b2-4a8fa6e7c2dd_1360x620.jpeg" width="1360" height="620" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/39b53afa-18e2-42a6-91b2-4a8fa6e7c2dd_1360x620.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:620,&quot;width&quot;:1360,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!riRZ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39b53afa-18e2-42a6-91b2-4a8fa6e7c2dd_1360x620.jpeg 424w, https://substackcdn.com/image/fetch/$s_!riRZ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39b53afa-18e2-42a6-91b2-4a8fa6e7c2dd_1360x620.jpeg 848w, https://substackcdn.com/image/fetch/$s_!riRZ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39b53afa-18e2-42a6-91b2-4a8fa6e7c2dd_1360x620.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!riRZ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F39b53afa-18e2-42a6-91b2-4a8fa6e7c2dd_1360x620.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Image by <a href="https://www.johnsonrd.com/2017/05/03/the-inventor-of-the-super-soaker-talks-about-turning-inventions-into-products-and-his-next-big-idea/">Johnson Research &amp; Development Co., Inc</a>.</em></figcaption></figure></div><p>To describe Dr. Johnson as an engineering heavyweight would be the understatement of all understatements.&nbsp; The man is a nuclear engineer who spent over a decade working at NASA&#8217;s Jet Propulsion Laboratory in Pasadena, California.&nbsp; As a life-long tinkerer and maker, the Super Soaker was more like a side hustle for him until it blew up, becoming the most successful toy in America almost immediately.</p><p></p><h4><strong>Finding his Passion and Immersion in the domain</strong></h4><p>Lonnie Johnson was born in Mobile, Alabama during the last few decades of state-enforced segregation in the southern United States.&nbsp; Although the cultural climate could be hostile to a young black boy like Lonnie, he grew up in a nurturing home where his father, a World War II veteran, taught Lonnie how to tinker with electrical gadgets.&nbsp;</p><p>Once his passion for gadgetry was ignited, Lonnie didn&#8217;t hold back.&nbsp; In 1968 he built a pneumatic robot and represented his all-black high school at the Alabama state fair.&nbsp; Unsurprisingly, to those who knew him, Lonnie won first prize for his creation.&nbsp; He went on to attend Tuskegee University where he earned mechanical engineering and nuclear engineering degrees before landing a job with the US Air Force and subsequently, NASA&#8217;s Jet Propulsion Labs in 1979.&nbsp;&nbsp;</p><p>He completely immersed himself in his domain, learning and soaking up as much knowledge as he could.&nbsp; Such dedication rarely exists without a driving passion to fuel it.&nbsp; Passion seems to fortify and enable a certain resilience against hostile environments, obstacles and the inescapable moments of drudgery that often accompanies deep work.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p><p></p><h4><strong>Playfulness</strong></h4><p>Johnson is a natural tinkerer and was always working on personal projects in his spare time.&nbsp; As Johnson tells it, he was working on a new type of heat pump that used water as a coolant rather than Freon.&nbsp; As he was testing out different nozzle designs, he hooked on up to a faucet and it shot water clear across his bathroom.&nbsp; To a non-playful mind, that probably would have been the end of it.&nbsp; Johnson, however, thought, &#8220;Hmm, that would probably make a really cool water gun?&#8221;&nbsp; And the idea was planted.</p><p>In their book, <em><a href="https://amzn.to/2INDYQY">The Runaway Species</a></em>, neuroscientists Anthony Brandt and David Eagleman propose a basic cognitive framework for understanding the way the brain synthesizes new information.&nbsp; Their framework identifies three basic strategies the brain uses:&nbsp; bending, breaking, and blending.&nbsp; These strategies are not mutually exclusive and often overlap, but I think Johnson&#8217;s thought pattern here was a good example of blending.&nbsp; Blending is when the brain combines two or more ideas or inputs in fresh and original ways.&nbsp; It is a powerful tool for creativity and innovation.</p><p>Johnson blended the unexpected event of his device shooting a stream of water across the bathroom, with his own playful memories of using a water gun, evidently unsatisfyingly.&nbsp; This new blended idea was compelling enough for him to actually create a prototype rather than simply discarding it as a nice thought.&nbsp;</p><p></p><h4><strong>Evaluation, Feedback and Collaboration</strong></h4><p>After Johnson created his prototype he tried selling the idea to several companies but was summarily dismissed by all of them, including Hasbro.&nbsp; Undaunted, or perhaps as a last resort, Johnson took his invention to the Toy Fair in 1989.&nbsp; There he was introduced to a small toy manufacturing company called <em>Larami</em>.&nbsp; After a brief demonstration, Larami agreed to license Johnson&#8217;s creation and the first Super Soakers hit toy stores in 1990.</p><p>Johnson said he thought about manufacturing it himself, however, the price tag for even a limited run manufacturing was too high for him at the time.&nbsp; That&#8217;s when he started looking for a manufacturing partner to license his idea.</p><p>Larami turned out to be a great collaborator for Johnson. Johnson admits that at the time he didn&#8217;t fully understand branding and marketing.&nbsp; And why should he, he&#8217;s a nuclear engineer.&nbsp; Early discussions with Larami&#8217;s owner resulted in the name we now know--the Super Soaker.&nbsp; Initially it was called the &#8220;Power Drencher&#8221; but licensing and marketing considerations caused them to change the name.&nbsp; Thankfully.&nbsp;&nbsp;</p><p>Following the success of the Super Soaker, Hasbro ended up buying Larami.&nbsp; Johnson kept on inventing and added to Hasbro&#8217;s product list with his creation of high-powered dart nerf guns.</p><p>Today, Johnson lives in Atlanta, Georgia and is still actively inventing and creating.&nbsp; He is founder and owner of two technology companies, <em><a href="http://www.excellatron.com/">Excellatron Solid State, LLC</a></em> and <em><a href="http://www.johnsonems.com/">Johnson Electro-Mechanical Systems</a></em>.&nbsp; The former creates solid state battery technology and the latter is on the cutting edge of thermal-electrical energy production and transfer.</p><p>I told you he was an engineering heavyweight!</p><p>Even though I never quite got my comeuppance against Jeff Larson and his band of 11-year old malcontents, I have enjoyed countless hours of super-soaking fun since that day.</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://notebook.siggyworks.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://notebook.siggyworks.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[The Future Belongs to Creators!]]></title><description><![CDATA[Take a look at the graph below. This is a McKinsey report showing how much each job category can be automated away with today&#8217;s technology. Which is to ask, how much of the current tasks performed in these positions will eventually be performed by robots (or more likely, software)?]]></description><link>https://notebook.siggyworks.com/p/the-future-belongs-to-creators</link><guid isPermaLink="false">https://notebook.siggyworks.com/p/the-future-belongs-to-creators</guid><dc:creator><![CDATA[Siggy]]></dc:creator><pubDate>Mon, 16 Nov 2020 13:00:36 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!lNxX!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F50e0dc97-53d7-458d-b11d-5c20fee521d4_6000x4000.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!lNxX!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F50e0dc97-53d7-458d-b11d-5c20fee521d4_6000x4000.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!lNxX!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F50e0dc97-53d7-458d-b11d-5c20fee521d4_6000x4000.jpeg 424w, https://substackcdn.com/image/fetch/$s_!lNxX!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F50e0dc97-53d7-458d-b11d-5c20fee521d4_6000x4000.jpeg 848w, https://substackcdn.com/image/fetch/$s_!lNxX!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F50e0dc97-53d7-458d-b11d-5c20fee521d4_6000x4000.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!lNxX!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F50e0dc97-53d7-458d-b11d-5c20fee521d4_6000x4000.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!lNxX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F50e0dc97-53d7-458d-b11d-5c20fee521d4_6000x4000.jpeg" width="647" height="431.48145604395603" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/50e0dc97-53d7-458d-b11d-5c20fee521d4_6000x4000.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:971,&quot;width&quot;:1456,&quot;resizeWidth&quot;:647,&quot;bytes&quot;:1671306,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!lNxX!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F50e0dc97-53d7-458d-b11d-5c20fee521d4_6000x4000.jpeg 424w, https://substackcdn.com/image/fetch/$s_!lNxX!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F50e0dc97-53d7-458d-b11d-5c20fee521d4_6000x4000.jpeg 848w, https://substackcdn.com/image/fetch/$s_!lNxX!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F50e0dc97-53d7-458d-b11d-5c20fee521d4_6000x4000.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!lNxX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F50e0dc97-53d7-458d-b11d-5c20fee521d4_6000x4000.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Image by <a href="https://www.freepik.com/vectors/business">freepik</a></em></figcaption></figure></div><p>Take a look at the graph below.&nbsp; This is a <a href="https://www.visualcapitalist.com/charting-automation-potential-of-u-s-jobs/">McKinsey report</a> showing how much each job category can be automated away with today&#8217;s technology.&nbsp; Which is to ask, how much of the current tasks performed in these positions will eventually be performed by robots (or more likely, software)?</p><p>The percentages run the gamut from 0% to 100%.&nbsp; And the results aren&#8217;t always what you&#8217;d expect.&nbsp; Can you guess what two jobs these arrows are pointing to?</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!HpNW!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F8d331e03-946c-49d2-919f-38738c24b11f_760x541.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!HpNW!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F8d331e03-946c-49d2-919f-38738c24b11f_760x541.png 424w, https://substackcdn.com/image/fetch/$s_!HpNW!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F8d331e03-946c-49d2-919f-38738c24b11f_760x541.png 848w, https://substackcdn.com/image/fetch/$s_!HpNW!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F8d331e03-946c-49d2-919f-38738c24b11f_760x541.png 1272w, https://substackcdn.com/image/fetch/$s_!HpNW!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F8d331e03-946c-49d2-919f-38738c24b11f_760x541.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!HpNW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F8d331e03-946c-49d2-919f-38738c24b11f_760x541.png" width="760" height="541" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/8d331e03-946c-49d2-919f-38738c24b11f_760x541.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:541,&quot;width&quot;:760,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!HpNW!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F8d331e03-946c-49d2-919f-38738c24b11f_760x541.png 424w, https://substackcdn.com/image/fetch/$s_!HpNW!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F8d331e03-946c-49d2-919f-38738c24b11f_760x541.png 848w, https://substackcdn.com/image/fetch/$s_!HpNW!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F8d331e03-946c-49d2-919f-38738c24b11f_760x541.png 1272w, https://substackcdn.com/image/fetch/$s_!HpNW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F8d331e03-946c-49d2-919f-38738c24b11f_760x541.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The first arrow points to <strong>registered nurses </strong>with 2 million of them in the U.S economy and the second to <strong>pharmacists</strong>, representing 260,000.&nbsp; For pharmacists, 47% of their current job tasks can be performed by machines and for registered nurses that number is 29%.&nbsp; This means almost half of what pharmacists currently do and one-third of what nurses currently do can be accomplished by a machine--a machine that can work 24 hours a day with no vacation or sick days.</p><p>What about this next example?&nbsp; Can you guess what occupation this is?</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!x_6a!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F45e97d8d-f4c9-45c3-8352-758956c9dc6e_759x516.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!x_6a!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F45e97d8d-f4c9-45c3-8352-758956c9dc6e_759x516.png 424w, https://substackcdn.com/image/fetch/$s_!x_6a!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F45e97d8d-f4c9-45c3-8352-758956c9dc6e_759x516.png 848w, https://substackcdn.com/image/fetch/$s_!x_6a!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F45e97d8d-f4c9-45c3-8352-758956c9dc6e_759x516.png 1272w, https://substackcdn.com/image/fetch/$s_!x_6a!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F45e97d8d-f4c9-45c3-8352-758956c9dc6e_759x516.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!x_6a!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F45e97d8d-f4c9-45c3-8352-758956c9dc6e_759x516.png" width="759" height="516" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/45e97d8d-f4c9-45c3-8352-758956c9dc6e_759x516.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:516,&quot;width&quot;:759,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!x_6a!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F45e97d8d-f4c9-45c3-8352-758956c9dc6e_759x516.png 424w, https://substackcdn.com/image/fetch/$s_!x_6a!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F45e97d8d-f4c9-45c3-8352-758956c9dc6e_759x516.png 848w, https://substackcdn.com/image/fetch/$s_!x_6a!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F45e97d8d-f4c9-45c3-8352-758956c9dc6e_759x516.png 1272w, https://substackcdn.com/image/fetch/$s_!x_6a!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F45e97d8d-f4c9-45c3-8352-758956c9dc6e_759x516.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>That bubble represents the 2.4 million American workers who are <strong>waiters and waitresses</strong>.&nbsp; A usually reliable source of occupation for young workers, students and middle class families, waitering is incredibly vulnerable to automation.&nbsp; 77% of waitering tasks can be automated away with today&#8217;s technology.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!9AKF!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447fab1e-a38c-4841-97f5-1a1c1dd218d1_759x516.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!9AKF!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447fab1e-a38c-4841-97f5-1a1c1dd218d1_759x516.png 424w, https://substackcdn.com/image/fetch/$s_!9AKF!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447fab1e-a38c-4841-97f5-1a1c1dd218d1_759x516.png 848w, https://substackcdn.com/image/fetch/$s_!9AKF!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447fab1e-a38c-4841-97f5-1a1c1dd218d1_759x516.png 1272w, https://substackcdn.com/image/fetch/$s_!9AKF!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447fab1e-a38c-4841-97f5-1a1c1dd218d1_759x516.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!9AKF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447fab1e-a38c-4841-97f5-1a1c1dd218d1_759x516.png" width="759" height="516" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/447fab1e-a38c-4841-97f5-1a1c1dd218d1_759x516.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:516,&quot;width&quot;:759,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!9AKF!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447fab1e-a38c-4841-97f5-1a1c1dd218d1_759x516.png 424w, https://substackcdn.com/image/fetch/$s_!9AKF!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447fab1e-a38c-4841-97f5-1a1c1dd218d1_759x516.png 848w, https://substackcdn.com/image/fetch/$s_!9AKF!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447fab1e-a38c-4841-97f5-1a1c1dd218d1_759x516.png 1272w, https://substackcdn.com/image/fetch/$s_!9AKF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447fab1e-a38c-4841-97f5-1a1c1dd218d1_759x516.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Lest you underestimate the relentless march and wide reach of automation, here is where <strong>web developers</strong> stand:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!S5Ev!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa933707d-1dff-4415-9b3d-0eeae1d16a3e_759x516.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!S5Ev!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa933707d-1dff-4415-9b3d-0eeae1d16a3e_759x516.png 424w, https://substackcdn.com/image/fetch/$s_!S5Ev!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa933707d-1dff-4415-9b3d-0eeae1d16a3e_759x516.png 848w, https://substackcdn.com/image/fetch/$s_!S5Ev!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa933707d-1dff-4415-9b3d-0eeae1d16a3e_759x516.png 1272w, https://substackcdn.com/image/fetch/$s_!S5Ev!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa933707d-1dff-4415-9b3d-0eeae1d16a3e_759x516.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!S5Ev!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa933707d-1dff-4415-9b3d-0eeae1d16a3e_759x516.png" width="759" height="516" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/a933707d-1dff-4415-9b3d-0eeae1d16a3e_759x516.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:516,&quot;width&quot;:759,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!S5Ev!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa933707d-1dff-4415-9b3d-0eeae1d16a3e_759x516.png 424w, https://substackcdn.com/image/fetch/$s_!S5Ev!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa933707d-1dff-4415-9b3d-0eeae1d16a3e_759x516.png 848w, https://substackcdn.com/image/fetch/$s_!S5Ev!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa933707d-1dff-4415-9b3d-0eeae1d16a3e_759x516.png 1272w, https://substackcdn.com/image/fetch/$s_!S5Ev!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fa933707d-1dff-4415-9b3d-0eeae1d16a3e_759x516.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Web Developers</em></figcaption></figure></div><p>And what about <strong>computer programmers</strong> in general?</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!NPTf!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc62095de-5b4c-44d4-8abf-4c523fb6b7a7_759x516.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!NPTf!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc62095de-5b4c-44d4-8abf-4c523fb6b7a7_759x516.png 424w, https://substackcdn.com/image/fetch/$s_!NPTf!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc62095de-5b4c-44d4-8abf-4c523fb6b7a7_759x516.png 848w, https://substackcdn.com/image/fetch/$s_!NPTf!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc62095de-5b4c-44d4-8abf-4c523fb6b7a7_759x516.png 1272w, https://substackcdn.com/image/fetch/$s_!NPTf!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc62095de-5b4c-44d4-8abf-4c523fb6b7a7_759x516.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!NPTf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc62095de-5b4c-44d4-8abf-4c523fb6b7a7_759x516.png" width="759" height="516" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/c62095de-5b4c-44d4-8abf-4c523fb6b7a7_759x516.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:516,&quot;width&quot;:759,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!NPTf!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc62095de-5b4c-44d4-8abf-4c523fb6b7a7_759x516.png 424w, https://substackcdn.com/image/fetch/$s_!NPTf!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc62095de-5b4c-44d4-8abf-4c523fb6b7a7_759x516.png 848w, https://substackcdn.com/image/fetch/$s_!NPTf!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc62095de-5b4c-44d4-8abf-4c523fb6b7a7_759x516.png 1272w, https://substackcdn.com/image/fetch/$s_!NPTf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc62095de-5b4c-44d4-8abf-4c523fb6b7a7_759x516.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Computer Programmers</em></figcaption></figure></div><p>Even these previously immune techie positions are falling to the beast of automation and technical obsolescence.&nbsp; After all, how many telegraph operators or linotype setters have you come across recently?&nbsp; These highly technical jobs were once competitively pursued and financially rewarding for their time. However, telegraphs gave way to the telephone and linotype to photosetting and computer-aided printing.&nbsp;&nbsp;&nbsp;</p><p>This sort of technical obsolescence is happening at an exponential rate today because new innovations often have a multiplicative effect on previous technology rather than a simple additive one.&nbsp; It took about 3600 years to progress from the invention of writing in Mesopotamia to the first wooden printing blocks in China around 200 CE.&nbsp; From there, it only took 1200 years to progress from wooden printing blocks to Gutenberg's printing press.&nbsp; And a mere 500 years to advance from the printing revolution to the desktop publishing explosion.</p><p>Exponential technological growth also means rapidly evolving skills demand across all industries.&nbsp; As new technology eliminates older jobs, it also creates a fresh demand for brand new jobs, often related to the operation and management of the same technology that eliminated the old jobs. When telephone technology gradually phased out the telegraph, a whole new career for switchboard operators was created just as the old telegraph operators were slowly being obsoleted.&nbsp;&nbsp;</p><p>This cycle of creation, obsolescence and re-creation is narrowing over time and resulting in shorter job tenure.&nbsp; Where in the past, it was fairly common and expected for a worker at General Motors to remain with the company his entire career, such life-long occupational marriages are far less common today.&nbsp; Modern workers are forced to constantly train themselves for new technological developments coming just around the corner.</p><p>However, training and skills acquisition are only part of the solution for workers of the 21st century.&nbsp; We have seen that even the most advanced technology jobs can and will be automated to some degree.&nbsp; So, how should 21st century workers future-proof themselves once the robots come for their jobs?</p><p>Ultimately, despite appearances, this is an article about encouragement not fear.</p><p>In that vein, here are four recommendations for future-proofing yourself and thriving even after the robots come for your job.</p><p></p><h3><strong>Face your fears</strong></h3><p>The first step is to accept the fact that change is coming.&nbsp; And it is coming for us all.&nbsp; There aren&#8217;t any occupations that are completely immune from automation of some degree.&nbsp; Sticking your head in the sand may work in Bugs Bunny cartoons but in real-life we all need a more effective strategy than simply wishing the problem away.&nbsp; Short of a global-level nuclear holocaust, technology only advances, it does not retreat.&nbsp; We cannot shove the AI toothpaste back into its tube.</p><p>Likewise, raging against the literal machine will get you nowhere and Zack De La Rocha himself will probably agree.&nbsp; As noble and well-meaning as the Uber and Lyft boycotts may be, their long-term effectiveness is doubtful.&nbsp; How successful were 19th-century Luddites at preventing the automation of the textile industry?&nbsp; It didn&#8217;t matter how many factories and mills they burned, their handlooms were just never going to compete effectively.&nbsp; Greater productivity drives profits and profits drive markets.&nbsp; As long as we continue to exist in a market-driven economy, novelties like self-driving cars and trucks will eventually replace human commercial drivers.</p><p>The sooner you accept this fact, the sooner you can identify alternative career paths for yourself.&nbsp;</p><p></p><h3><strong>Trust yourself to find solutions</strong></h3><p>Once the fear of obsolescence is handled, you&#8217;re free to start looking around and observing your surroundings with greater attention.&nbsp; For some habitual corporate types, you may be doing this for the first time in your life.&nbsp; The key is to understand that you are a conscious, thinking, self-directed entity with some agency over your environment.&nbsp; If you probe this environment with enough patience and curiosity it will yield insights (and opportunities) that would not have been apparent to you before.</p><p>Engage with your environment, no matter how immediate, and it can&#8217;t help but engage back.&nbsp;</p><p>In a lighthearted example, consider how abysmal our world would be today without the invention of chocolate chip cookies.&nbsp; Up until 1930, there was no such thing as a chocolate chip cookie.&nbsp; A horrible thought, I know.&nbsp;&nbsp;</p><p>We owe this great debt of gratitude to the resourcefulness of Ruth Wakefield.&nbsp; She ran a roadside tourist lodge called the Tollhouse Inn in the 1930s.&nbsp; Every morning, the Tollhouse Inn guests were treated to freshly baked chocolate cookies from Ruth&#8217;s kitchen.&nbsp; One morning, she discovered she had run out of the baker&#8217;s chocolate necessary to make her chocolate cookies.&nbsp; Rather than deprive her guests of her delicious treats, she decided to use whatever she had at her disposal.&nbsp; She broke bits of Nestle chocolates into her cookie dough, fully expecting the chunks to melt in the oven to produce regular chocolate cookies.&nbsp;&nbsp;&nbsp;</p><p>To my eternal gratitude, that isn&#8217;t what the laws of cooking physics granted.&nbsp; The chocolate bits clumped together and Ruth pulled out the world's first batch of chocolate chip cookies instead.&nbsp; Her little culinary improvisation became an instant success for herself and Nestle--and, of course, every kid&#8217;s birthday party since.</p><p></p><h3><strong>Embrace the practice of creativity</strong></h3><p>Creativity is the rocket that will power you through the detritus of the robot takeover.&nbsp; Let&#8217;s revisit McKinsey&#8217;s data for a minute.&nbsp;&nbsp;</p><p>Take a look at the chart below.&nbsp; Jobs that require a high degree of creativity and emotional intelligence have the lowest automation vulnerabilities--at least for now.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!AV4m!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447c2de1-5864-4c6d-9528-d5bf329b6228_759x516.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!AV4m!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447c2de1-5864-4c6d-9528-d5bf329b6228_759x516.png 424w, https://substackcdn.com/image/fetch/$s_!AV4m!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447c2de1-5864-4c6d-9528-d5bf329b6228_759x516.png 848w, https://substackcdn.com/image/fetch/$s_!AV4m!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447c2de1-5864-4c6d-9528-d5bf329b6228_759x516.png 1272w, https://substackcdn.com/image/fetch/$s_!AV4m!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447c2de1-5864-4c6d-9528-d5bf329b6228_759x516.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!AV4m!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447c2de1-5864-4c6d-9528-d5bf329b6228_759x516.png" width="693" height="471.1304347826087" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/447c2de1-5864-4c6d-9528-d5bf329b6228_759x516.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:516,&quot;width&quot;:759,&quot;resizeWidth&quot;:693,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!AV4m!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447c2de1-5864-4c6d-9528-d5bf329b6228_759x516.png 424w, https://substackcdn.com/image/fetch/$s_!AV4m!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447c2de1-5864-4c6d-9528-d5bf329b6228_759x516.png 848w, https://substackcdn.com/image/fetch/$s_!AV4m!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447c2de1-5864-4c6d-9528-d5bf329b6228_759x516.png 1272w, https://substackcdn.com/image/fetch/$s_!AV4m!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F447c2de1-5864-4c6d-9528-d5bf329b6228_759x516.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Producers and Directors</em></figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!9G0q!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46869906-3d80-4124-b347-89488e27c5ed_759x516.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!9G0q!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46869906-3d80-4124-b347-89488e27c5ed_759x516.png 424w, https://substackcdn.com/image/fetch/$s_!9G0q!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46869906-3d80-4124-b347-89488e27c5ed_759x516.png 848w, https://substackcdn.com/image/fetch/$s_!9G0q!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46869906-3d80-4124-b347-89488e27c5ed_759x516.png 1272w, https://substackcdn.com/image/fetch/$s_!9G0q!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46869906-3d80-4124-b347-89488e27c5ed_759x516.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!9G0q!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46869906-3d80-4124-b347-89488e27c5ed_759x516.png" width="759" height="516" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/46869906-3d80-4124-b347-89488e27c5ed_759x516.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:516,&quot;width&quot;:759,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!9G0q!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46869906-3d80-4124-b347-89488e27c5ed_759x516.png 424w, https://substackcdn.com/image/fetch/$s_!9G0q!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46869906-3d80-4124-b347-89488e27c5ed_759x516.png 848w, https://substackcdn.com/image/fetch/$s_!9G0q!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46869906-3d80-4124-b347-89488e27c5ed_759x516.png 1272w, https://substackcdn.com/image/fetch/$s_!9G0q!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F46869906-3d80-4124-b347-89488e27c5ed_759x516.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Healthcare Social Workers</em></figcaption></figure></div><p>This isn&#8217;t to suggest that we all need to become painters and poets to avoid being replaced by machines.&nbsp; It just means occupations that require a reasonably high degree of human ingenuity and creativity to produce their final outputs will fare well against automation in the near term.&nbsp;&nbsp;</p><p>Architects and Industrial Engineers all work in jobs where human creativity and insight is used to harness the laws of nature towards the production of a useful product or service.&nbsp; As a result these two occupations are similarly resistant to automation.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!FyVe!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6a42815c-8773-4018-bab1-f13036899510_759x516.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!FyVe!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6a42815c-8773-4018-bab1-f13036899510_759x516.png 424w, https://substackcdn.com/image/fetch/$s_!FyVe!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6a42815c-8773-4018-bab1-f13036899510_759x516.png 848w, https://substackcdn.com/image/fetch/$s_!FyVe!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6a42815c-8773-4018-bab1-f13036899510_759x516.png 1272w, https://substackcdn.com/image/fetch/$s_!FyVe!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6a42815c-8773-4018-bab1-f13036899510_759x516.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!FyVe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6a42815c-8773-4018-bab1-f13036899510_759x516.png" width="759" height="516" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/6a42815c-8773-4018-bab1-f13036899510_759x516.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:516,&quot;width&quot;:759,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:128825,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!FyVe!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6a42815c-8773-4018-bab1-f13036899510_759x516.png 424w, https://substackcdn.com/image/fetch/$s_!FyVe!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6a42815c-8773-4018-bab1-f13036899510_759x516.png 848w, https://substackcdn.com/image/fetch/$s_!FyVe!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6a42815c-8773-4018-bab1-f13036899510_759x516.png 1272w, https://substackcdn.com/image/fetch/$s_!FyVe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6a42815c-8773-4018-bab1-f13036899510_759x516.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Architects</em></figcaption></figure></div><p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!CplR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F190a6b6c-8242-4505-b4fd-fb1870ee4b6f_759x516.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!CplR!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F190a6b6c-8242-4505-b4fd-fb1870ee4b6f_759x516.png 424w, https://substackcdn.com/image/fetch/$s_!CplR!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F190a6b6c-8242-4505-b4fd-fb1870ee4b6f_759x516.png 848w, https://substackcdn.com/image/fetch/$s_!CplR!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F190a6b6c-8242-4505-b4fd-fb1870ee4b6f_759x516.png 1272w, https://substackcdn.com/image/fetch/$s_!CplR!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F190a6b6c-8242-4505-b4fd-fb1870ee4b6f_759x516.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!CplR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F190a6b6c-8242-4505-b4fd-fb1870ee4b6f_759x516.png" width="759" height="516" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/190a6b6c-8242-4505-b4fd-fb1870ee4b6f_759x516.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:516,&quot;width&quot;:759,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!CplR!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F190a6b6c-8242-4505-b4fd-fb1870ee4b6f_759x516.png 424w, https://substackcdn.com/image/fetch/$s_!CplR!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F190a6b6c-8242-4505-b4fd-fb1870ee4b6f_759x516.png 848w, https://substackcdn.com/image/fetch/$s_!CplR!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F190a6b6c-8242-4505-b4fd-fb1870ee4b6f_759x516.png 1272w, https://substackcdn.com/image/fetch/$s_!CplR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F190a6b6c-8242-4505-b4fd-fb1870ee4b6f_759x516.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Industrial Engineers</em></figcaption></figure></div><p>Fortunately for us, creativity is a skill that can be improved with practice.&nbsp; Psychologists and neuroscientists like David Eagleman and Scott Kaufman, among others, have demonstrated through their research, just how neuroplastic the human brain can be.&nbsp; We are capable of learning and rewiring brains throughout our lifespan.&nbsp;&nbsp;</p><p>Recent creativity research also sheds light on the brain&#8217;s internal states when engaged in various classically creative activities.&nbsp; Seeking novelty, identifying patterns, synthesizing and modifying inputs to produce new outputs are all innate human brain behaviors which can be enhanced in almost anyone.</p><p>These skills also happen to be the most difficult for computers to mimic.&nbsp; The small consistent practice of creativity will inform every aspect of your life and significantly impact your personal and occupational output.</p><p></p><h3><strong>Give more than you expect to get</strong></h3><p>There is an old, overused adage that goes:&nbsp; &#8220;Life is a journey, not a destination.&#8221;</p><p>Or something to that effect.</p><p>I prefer the slight modification, &#8220;<em>creativity</em> is a journey, not a destination.&#8221;&nbsp; Where creativity is concerned, it helps to view the destination as a side effect of the journey.&nbsp; This doesn&#8217;t mean the destination is irrelevant, after all the destination is the whole reason you got on the road in the first place.&nbsp; It just means, after you&#8217;ve decided on a destination point, your journey to get there should command all your resources, effort and attention.</p><p>Focusing too much on the outcome (your destination) counterintuitively makes the creative journey more difficult and less effective.&nbsp; The personal growth we desire only happens as we exert effort during the creative process with little expectation for the outcome. The work that results is akin to a road marker or a way of keeping score.&nbsp; The real personal benefit is within the process and how you improved along the way.</p><p>This method of giving yourself completely to a process without a guarantee of the outcome is, paradoxically, the most likely way to achieve that outcome.&nbsp; If this sounds scary, congratulations, you&#8217;re paying attention.&nbsp; It's the reason the first step is to face your fears.&nbsp; Without doing so, none of the subsequent steps are possible.&nbsp; Recognizing a threat, trusting yourself to find a solution to that threat, embracing the intangible concept of creativity and then leaning into it by committing precious time and resources without a guaranteed outcome is downright terrifying!&nbsp;</p><p>&nbsp;A reckless gamble?</p><p>Perhaps it is, perhaps it&#8217;s not, but I&#8217;m willing to bet this is the sort of gamble every remarkable individual you&#8217;ve ever admired in life made.</p><p>People like Van Phillips who, after losing a leg in a horrific water-skiing accident, devoted his life towards the invention of a new type of prosthetic that would enable him to run and play sports again.&nbsp; It took twelve years of toiling before Phillips released his Flex Foot Cheetah line of performance prosthetics.&nbsp; These were the same prosthetics Oscar Pistorius wore to compete in the 2012 Summer Olympics.&nbsp;&nbsp;</p><p>Another famous example is J. K. Rowling&#8217;s life leading up to the publication of the first <em>Harry Potter</em> novel in 1997. As Rowling describes it, in 1990 she was working for Amnesty International in London while living in Manchester, England.&nbsp; On a long train ride from Manchester to London, she got the inspiration for a story about a young, bespectacled boy wizard.&nbsp; Rowling was so gripped by the idea that she started writing it immediately. However, the next seven years were anything but smooth for the then 25-year-old Rowling.</p><p>She endured the passing of her mother in 1990, an abusive relationship in Portugal with her first husband and one miscarriage before the birth of her daughter.&nbsp; By 1994 she had moved to Edinburgh and was living on state benefits while rearing an infant.&nbsp; She admits to feeling like a failure during that period of her life, but she kept writing her novel--with no guarantee of the outcome.&nbsp;&nbsp;</p><p>She finished her manuscript for <em>Harry Potter and the Philosopher&#8217;s Stone</em> in 1995 and was rejected by twelve publishers before finally being accepted by Bloomsbury Publishing House. Even after her book was accepted by the publisher, they advised her to get a day job because they had low expectations about her profitability as a children&#8217;s book author.&nbsp;&nbsp;</p><p>Bloomsbury published her book in June of 1997 and eight months later it won the <em>British Book Award</em> for <em>Children&#8217;s Book of the Year</em>.&nbsp; The rest, as they say, is well known history.&nbsp; Nobody could ever have predicted how well her books would do, but that&#8217;s the point.&nbsp; Even without a guaranteed &#8220;pay-off&#8221; at the end, she kept toiling away at her book for five years and endured rejection for almost two more.&nbsp; It took seven years of steadily giving to her vision before the world was graced with her tale of the orphaned boy wizard we know and love today.</p><p></p><h3><strong>Conclusion</strong></h3><p>Automation will eventually eliminate a considerable fraction of all jobs.&nbsp; Unfortunately, some jobs like low-level manufacturing positions and commercial transportation have a higher exposure to automation than others.&nbsp; These industries will experience the greatest amount of upheaval in the form of industry shrinkage and worker displacement.</p><p>Industries with the lowest-exposure to automation, for now, involve work that is highly creative and requires substantial emotional facility.&nbsp; We see this in creative industries like architecture, entertainment, legal and social services to name a few.&nbsp; Novelty, creativity and human emotions are all incredibly difficult for machines to produce with any consistency.&nbsp;</p><p>When automation and redundancy finally come for you it&#8217;s good advice to:</p><ul><li><p><strong>Face your fears.</strong>&nbsp; Automation and the accompanying change is an irreversible tide</p></li><li><p><strong>Trust yourself to find solutions.</strong>&nbsp; Engage with the world and try new approaches because what you seek is out there</p></li><li><p><strong>Embrace the practice of creativity.</strong>&nbsp; Lean into the greatest strength you possess as a creative human being</p></li><li><p><strong>Give more than you expect to get.</strong>&nbsp; Even though the creative journey will be long and arduous with no guarantee of a destination prize, you should still commit yourself completely to taking the journey</p><p></p></li></ul><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://notebook.siggyworks.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://notebook.siggyworks.com/subscribe?"><span>Subscribe now</span></a></p><div><hr></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://notebook.siggyworks.com/p/the-future-belongs-to-creators?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://notebook.siggyworks.com/p/the-future-belongs-to-creators?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p>]]></content:encoded></item><item><title><![CDATA[Art + Code = Delightful Creativity]]></title><description><![CDATA[Welcome to Siggy Works by me, Siggy.]]></description><link>https://notebook.siggyworks.com/p/coming-soon</link><guid isPermaLink="false">https://notebook.siggyworks.com/p/coming-soon</guid><dc:creator><![CDATA[Siggy]]></dc:creator><pubDate>Mon, 16 Nov 2020 05:55:24 GMT</pubDate><enclosure url="https://cdn.substack.com/image/fetch/h_600,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F383865da-5d1d-4952-aa2e-e7a214044593_466x443.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Welcome to <em>Siggy Works</em> by me, Siggy. </p><p>I write mostly about creativity and software development.  I'm still not sure if I'm an artist who writes code or a coder who makes art.  </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!oR9n!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F383865da-5d1d-4952-aa2e-e7a214044593_466x443.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!oR9n!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F383865da-5d1d-4952-aa2e-e7a214044593_466x443.png 424w, https://substackcdn.com/image/fetch/$s_!oR9n!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F383865da-5d1d-4952-aa2e-e7a214044593_466x443.png 848w, https://substackcdn.com/image/fetch/$s_!oR9n!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F383865da-5d1d-4952-aa2e-e7a214044593_466x443.png 1272w, https://substackcdn.com/image/fetch/$s_!oR9n!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F383865da-5d1d-4952-aa2e-e7a214044593_466x443.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!oR9n!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F383865da-5d1d-4952-aa2e-e7a214044593_466x443.png" width="278" height="264.27896995708153" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/383865da-5d1d-4952-aa2e-e7a214044593_466x443.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:443,&quot;width&quot;:466,&quot;resizeWidth&quot;:278,&quot;bytes&quot;:9781,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!oR9n!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F383865da-5d1d-4952-aa2e-e7a214044593_466x443.png 424w, https://substackcdn.com/image/fetch/$s_!oR9n!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F383865da-5d1d-4952-aa2e-e7a214044593_466x443.png 848w, https://substackcdn.com/image/fetch/$s_!oR9n!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F383865da-5d1d-4952-aa2e-e7a214044593_466x443.png 1272w, https://substackcdn.com/image/fetch/$s_!oR9n!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F383865da-5d1d-4952-aa2e-e7a214044593_466x443.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>Sign up now to receive tips on creative coding, regular updates on my projects and access to source code releases.</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://notebook.siggyworks.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://notebook.siggyworks.com/subscribe?"><span>Subscribe now</span></a></p><p>In the meantime, <a href="https://notebook.siggyworks.com/p/coming-soon?utm_source=substack&utm_medium=email&utm_content=share&action=share">tell your friends</a>!</p>]]></content:encoded></item></channel></rss>