Skip to content

Windastella/GodotEnv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Godot DotEnv Class

A simple implementation of DotEnv. Allow usage of .env file in godot. Also retrieve OS Environment Variable if available.

Usage

Add /godotenv/scripts/env.gd to Autoloader.

Retrieve Environment Variable by

var env_var = get_node("/root/env").get("ENV_VAR")