OS¶
Inherits: Object
Provides access to common operating system functionalities.
Description¶
This class wraps the most common functionalities for communicating with the host operating system, such as the video driver, delays, environment variables, execution of binaries, command line, etc.
Note: In Godot 4, OS functions related to window management were moved to the DisplayServer singleton.
Tutorials¶
Properties¶
|
||
|
||
|
Methods¶
void |
|
void |
|
void |
|
create_instance ( PackedStringArray arguments ) |
|
create_process ( String path, PackedStringArray arguments, bool open_console=false ) |
|
void |
delay_msec ( int msec ) const |
void |
delay_usec ( int usec ) const |
execute ( String path, PackedStringArray arguments, Array output=[], bool read_stderr=false, bool open_console=false ) |
|
find_keycode_from_string ( String string ) const |
|
get_cache_dir ( ) const |
|
get_cmdline_args ( ) |
|
get_config_dir ( ) const |
|
get_data_dir ( ) const |
|
get_distribution_name ( ) const |
|
get_environment ( String variable ) const |
|
get_executable_path ( ) const |
|
get_granted_permissions ( ) const |
|
get_keycode_string ( Key code ) const |
|
get_locale ( ) const |
|
get_locale_language ( ) const |
|
get_main_thread_id ( ) const |
|
get_memory_info ( ) const |
|
get_model_name ( ) const |
|
get_name ( ) const |
|
get_process_id ( ) const |
|
get_processor_count ( ) const |
|
get_processor_name ( ) const |
|