Enum outside class in Unity C#
<p>I'm creating a script to manage the fading of UI elements in Unity3D, and at some point I'm stuck with enums</p>

<p>The other day I saw a very cool asset to fade elements, and decided to reverse engeneer it</p>

<p>After some time researching with tutorials and reading questions in this page, I got stuck using the enums, I don't know how to access my enum from another class so I want to ask for help</p>

<p>I'm using Unity version 5.3.5f1</p>

<p><strong>Goal</strong></p>

<ul>
<li>Fade UI elements in Unity (Images, buttons, etc)</li>
<li>Fade via script</li>
<li>Use of enums to do it</li>
<li>Acces enums outside a class</li>
</ul>

<p><strong>How to reproduce it</strong></p>

<ul>
<li><p>New Unity project (doesn't matter 2D or 3D)</p></li>
<li><p>Empty gameobject</p></li>
<li><p>UI element (image)</p></li>
<li><p>Image fill screen and chance its color (any color)</p></li>
<li><p>New C# script, I called it Test</p></li>
</ul>

<p><strong>Done</strong></p>

<ul>
<li>Read about enums</li>
<li>Basic class with enum</li>
</ul>

<p><strong>Code C#</strong></p>

<p>Here's my code (so far)</p>

<pre><code>using UnityEngine;
using UnityEngine.UI;

[System.Serializable]
public class FadeOperations
{
   public enum FadeManager
{
    fadeIn,
    fadeOut
};

  [Tooltip("Type of fading")]
  public FadeManager fadeType;

  [Tooltip("Duration time of the fading")]
  public float duration;

  [Tooltip("Select the image to fade")]
  public Image fadeImage;
}

public class Test : MonoBehaviour
{
  //Where do I acces the enum inside this class??

  //This is the variable for the inspector to see the elements inside the other class
  public FadeOperations[] fadeOperations;

  private void Start()
  {
  }
}
</code></pre>

<p>I'll be glad to read good explanations and noobfriendly answers</p>

<p>Thanks</p>