title: Referencing Enum C++ Unreal
body: <p>I have created an Enum Class in Unreal C++</p>
  
  <pre><code>#include "GroundDirection.generated.h"
  
  UENUM(BlueprintType)
  enum UGroundDirection
  {
       BOTTOM = 0,
       LEFT = 1,
       TOP = 2,
       RIGHT = 3
  };
  </code></pre>
  
  <p>In C# or Java I could instantiate a copy of this Enum doing something like this:</p>
  
  <pre><code>GroundDirection groundDirection = GroundDirection.BOTTOM;
  </code></pre>
  
  <p>I thought I could do something similar with Unreal C++</p>
  
  <pre><code>UGroundDirection groundDirection = UGroundDirection.BOTTOM;
  </code></pre>
  
  <p>However when I do this I get the following error:</p>
  
  <blockquote>
    <p>error C2228: left of '.BOTTOM' must have class/struct/union</p>
  </blockquote>
  
  <p>How to I instantiate Enums in light of this error?</p>