# How do I reference an enum from an autoloaded script?

**URL:** <https://forum.godotengine.org/t/how-do-i-reference-an-enum-from-an-autoloaded-script/2412>\
**Category:** Archive\
**Created:** [February 5, 2023, 12:04am UTC](https://forum.godotengine.org/t/how-do-i-reference-an-enum-from-an-autoloaded-script/2412 "2023-02-05T00:04:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![system](https://forum.godotengine.org/uploads/default/original/2X/4/4b0a7fa8a6334634b94a13d421f0d99e6f04e21f.svg) [@system](https://forum.godotengine.org/u/system)\
**Post date:** [February 5, 2023, 6:04pm UTC](https://forum.godotengine.org/t/how-do-i-reference-an-enum-from-an-autoloaded-script/2412/2 "2023-02-05T18:04:50Z")

</div>

| | | |
| --- | --- | --- |
| 👤 | **Reply From:** | Inces |

It is pointless to use autoload for this. You can use any form of static typing.  
Option nr 1:  
Keep all individual enums inside corresponding classes  
Option nr 2:  
Create enums class, that will only contain all constant data for other nodes to use or for autocomplecion purposes.

Either way, all You have to do is :

```auto
extends Node
class_name skillmove
enum Skill {}

```

Static node doesn’t even need to be loaded as singleton, it simply has to exist anywhere in your filesystem. You refer to it by its class, like `var test = skillmove.Skill.Jump`

---

_[View the full topic](https://forum.godotengine.org/t/how-do-i-reference-an-enum-from-an-autoloaded-script/2412)._
