Class GDFeature
- Namespace
- Cobilas.GodotEngine.Utility
- Assembly
- com.cobilas.godot.utility.dll
This class contains some Features pre-defined by the engine.
public static class GDFeature
- Inheritance
-
GDFeature
- Inherited Members
Remarks
Features are an alternative to the .Net preprocessing definitions as Godot 3.5's GDScript does not support preprocessing definitions.
Properties
HasARM32
Running on a 32-bit ARM build.
public static bool HasARM32 { get; }
Property Value
HasARM64
Running on a 64-bit ARM build.
public static bool HasARM64 { get; }
Property Value
HasAndroid
Running on Android.
public static bool HasAndroid { get; }
Property Value
HasDebug
Running on a debug build (including the editor).
public static bool HasDebug { get; }
Property Value
HasETC1
Textures using ETC1 compression are supported.
public static bool HasETC1 { get; }
Property Value
HasETC2
Textures using ETC2 compression are supported.
public static bool HasETC2 { get; }
Property Value
HasEditor
Running on an editor build.
public static bool HasEditor { get; }
Property Value
HasHTML5
Running on HTML5.
public static bool HasHTML5 { get; }
Property Value
HasIOS
Running on iOS.
public static bool HasIOS { get; }
Property Value
HasJavaScript
JavaScript singleton is available.
public static bool HasJavaScript { get; }
Property Value
HasMobile
Host OS is a mobile platform.
public static bool HasMobile { get; }
Property Value
HasOSX
Running on macOS.
public static bool HasOSX { get; }
Property Value
HasPC
Host OS is a PC platform (desktop/laptop).
public static bool HasPC { get; }
Property Value
HasPVRTC
Textures using PVRTC compression are supported.
public static bool HasPVRTC { get; }
Property Value
HasRelease
Running on a release build.
public static bool HasRelease { get; }
Property Value
HasS3TC
Textures using S3TC (DXT/BC) compression are supported.
public static bool HasS3TC { get; }
Property Value
HasServer
Running on the headless server platform.
public static bool HasServer { get; }
Property Value
HasStandalone
Running on a non-editor build.
public static bool HasStandalone { get; }
Property Value
HasUWP
Running on UWP.
public static bool HasUWP { get; }
Property Value
HasWeb
Host OS is a Web browser.
public static bool HasWeb { get; }
Property Value
HasWindows
Running on Windows.
public static bool HasWindows { get; }
Property Value
HasX11
Running on X11 (Linux/BSD desktop).
public static bool HasX11 { get; }
Property Value
HasX32
Running on a 32-bit build (any architecture).
public static bool HasX32 { get; }
Property Value
HasX64
Running on a 64-bit build (any architecture).
public static bool HasX64 { get; }
Property Value
HasX86_32
Running on a 32-bit x86 build.
public static bool HasX86_32 { get; }
Property Value
HasX86_64
Running on a 64-bit x86 build.
public static bool HasX86_64 { get; }
Property Value
Methods
HasFeature(string?)
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.
public static bool HasFeature(string? tagName)
Parameters
tagName
stringTag names are case-sensitive.
Returns
- bool
]Returns
true
if the feature for the given feature tag is supported in the currently running instance, depending on the platform, build etc.