Up to date

This page is up to date for Godot 4.1. If you still find outdated information, please open an issue.

Feature tags

Introduction

Godot has a special system to tag availability of features. Each feature is represented as a string, which can refer to many of the following:

  • Platform name.

  • Platform architecture (64-bit or 32-bit, x86 or ARM).

  • Platform type (desktop, mobile, Web).

  • Supported texture compression algorithms on the platform.

  • Whether a build is debug or release (debug includes the editor).

  • Whether the project is running from the editor or a "standalone" binary.

  • Many more things.

Features can be queried at run-time from the singleton API by calling:

OS.has_feature(name)

OS feature tags are used by GDExtension to determine which libraries to load. For example, a library for linux.debug.editor.x86_64 will be loaded only on a debug editor build for Linux x86_64.

Default features

Here is a list of most feature tags in Godot. Keep in mind they are case-sensitive:

Feature tag

Description

android

Running on Android (but not within a Web browser)

bsd

Running on *BSD (but not within a Web browser)

linux

Running on Linux (but not within a Web browser)

macos

Running on macOS (but not within a Web browser)

ios

Running on iOS (but not within a Web browser)

uwp

Running on UWP (but not within a Web browser)

windows

Running on Windows

linuxbsd

Running on Linux or *BSD

debug

Running on a debug build (including the editor)

release

Running on a release build

editor

Running on an editor build

template

Running on a non-editor (export template) build

double

Running on a double-precision build

single

Running on a single-precision build

64

Running on a 64-bit build (any architecture)

32

Running on a 32-bit build (any architecture)

x86_64

Running on a 64-bit x86 build

x86_32

Running on a 32-bit x86 build

x86

Running on an x86 build (any bitness)

arm64

Running on a 64-bit ARM build

arm32

Running on a 32-bit ARM build

arm

Running on an ARM build (any bitness)

rv64

Running on a 64-bit RISC-V build

riscv

Running on a RISC-V build (any bitness)

ppc64

Running on a 64-bit PowerPC build

ppc32

Running on a 32-bit PowerPC build

ppc

Running on a PowerPC build (any bitness)

wasm64

Running on a 64-bit WebAssembly build (not yet possible)

wasm32

Running on a 32-bit WebAssembly build

wasm

Running on a WebAssembly build (any bitness)

mobile

Host OS is a mobile platform

pc

Host OS is a PC platform (desktop/laptop)

web

Host OS is a Web browser

web_android

Host OS is a Web browser running on Android

web_ios

Host OS is a Web browser running on iOS

web_linuxbsd

Host OS is a Web browser running on Linux or *BSD