Table of Contents

Class GDFeature

Namespace
Cobilas.GodotEngine.Utility
Assembly
com.cobilas.godot.utility.dll
public static class GDFeature
Inheritance
GDFeature
Inherited Members

Properties

HasARM32

Running on a 32-bit ARM build.

public static bool HasARM32 { get; }

Property Value

bool

HasARM64

Running on a 64-bit ARM build.

public static bool HasARM64 { get; }

Property Value

bool

HasAndroid

Running on Android.

public static bool HasAndroid { get; }

Property Value

bool

HasDebug

Running on a debug build (including the editor).

public static bool HasDebug { get; }

Property Value

bool

HasETC1

Textures using ETC1 compression are supported.

public static bool HasETC1 { get; }

Property Value

bool

HasETC2

Textures using ETC2 compression are supported.

public static bool HasETC2 { get; }

Property Value

bool

HasEditor

Running on an editor build.

public static bool HasEditor { get; }

Property Value

bool

HasHTML5

Running on HTML5.

public static bool HasHTML5 { get; }

Property Value

bool

HasIOS

Running on iOS.

public static bool HasIOS { get; }

Property Value

bool

HasJavaScript

JavaScript singleton is available.

public static bool HasJavaScript { get; }

Property Value

bool

HasMobile

Host OS is a mobile platform.

public static bool HasMobile { get; }

Property Value

bool

HasOSX

Running on macOS.

public static bool HasOSX { get; }

Property Value

bool

HasPC

Host OS is a PC platform (desktop/laptop).

public static bool HasPC { get; }

Property Value

bool

HasPVRTC

Textures using PVRTC compression are supported.

public static bool HasPVRTC { get; }

Property Value

bool

HasRelease

Running on a release build.

public static bool HasRelease { get; }

Property Value

bool

HasS3TC

Textures using S3TC (DXT/BC) compression are supported.

public static bool HasS3TC { get; }

Property Value

bool

HasServer

Running on the headless server platform.

public static bool HasServer { get; }

Property Value

bool

HasStandalone

Running on a non-editor build.

public static bool HasStandalone { get; }

Property Value

bool

HasUWP

Running on UWP.

public static bool HasUWP { get; }

Property Value

bool

HasWeb

Host OS is a Web browser.

public static bool HasWeb { get; }

Property Value

bool

HasWindows

Running on Windows.

public static bool HasWindows { get; }

Property Value

bool

HasX11

Running on X11 (Linux/BSD desktop).

public static bool HasX11 { get; }

Property Value

bool

HasX32

Running on a 32-bit build (any architecture).

public static bool HasX32 { get; }

Property Value

bool

HasX64

Running on a 64-bit build (any architecture).

public static bool HasX64 { get; }

Property Value

bool

HasX86_32

Running on a 32-bit x86 build.

public static bool HasX86_32 { get; }

Property Value

bool

HasX86_64

Running on a 64-bit x86 build.

public static bool HasX86_64 { get; }

Property Value

bool

Methods

HasFeature(string?)

Returns true if the feature for the given feature tag is supported in the currently running instance, depending on the platform, build etc. Can be used to check whether you're currently running a debug build, on a certain platform or arch, etc. Refer to the Feature Tags documentation for more details.

Note: Tag names are case-sensitive.

public static bool HasFeature(string? tagName)

Parameters

tagName string

Returns

bool