Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

EditorSettings

继承: Resource < RefCounted < Object

保存编辑器设置的对象,这些设置与项目无关。

描述

保存编辑器设置的对象,这些设置与项目无关,通常在编辑器 > 编辑器设置菜单中可见。

属性名称中使用斜线分隔符来区分不同的部分。设置的值可以是任何 Variant 类型。编辑器设置的名称建议使用 snake_case 形式,与 Godot 编辑器本身保持一致。

可以使用以下方法访问设置,例如:

var settings = EditorInterface.get_editor_settings()
# 也可以写 `settings.set("some/property", 10)`,因为这个类内部覆盖了 `_set()`。
settings.set_setting("some/property", 10)
# 也可以写 `settings.get("some/property")` ,因为这个类内部覆盖了 `_get()`。
settings.get_setting("some/property")
var list_of_settings = settings.get_property_list()

注意:不能直接实例化这个类。请改用 EditorInterface.get_editor_settings 访问单例。

属性

bool

debugger/auto_switch_to_remote_scene_tree

bool

debugger/profile_native_calls

int

debugger/profiler_frame_history_size

int

debugger/profiler_frame_max_functions

float

debugger/remote_inspect_refresh_interval

float

debugger/remote_scene_tree_refresh_interval

bool

docks/filesystem/always_show_folders

String

docks/filesystem/textfile_extensions

int

docks/filesystem/thumbnail_size

float

docks/property_editor/auto_refresh_interval

float

docks/property_editor/subresource_hue_tint

bool

docks/scene_tree/auto_expand_to_selected

bool

docks/scene_tree/center_node_on_reparent

bool

docks/scene_tree/start_create_dialog_fully_expanded

Color

editors/2d/bone_color1

Color

editors/2d/bone_color2

Color

editors/2d/bone_ik_color

Color

editors/2d/bone_outline_color

float

editors/2d/bone_outline_size

Color

editors/2d/bone_selected_color

float

editors/2d/bone_width

Color

editors/2d/grid_color

Color

editors/2d/guides_color

Color

editors/2d/smart_snapping_line_color

bool

editors/2d/use_integer_zoom_by_default

Color

editors/2d/viewport_border_color

float

editors/3d/default_fov

float

editors/3d/default_z_far

float

editors/3d/default_z_near

int

editors/3d/freelook/freelook_activation_modifier

float

editors/3d/freelook/freelook_base_speed

float

editors/3d/freelook/freelook_inertia

int

editors/3d/freelook/freelook_navigation_scheme

float

editors/3d/freelook/freelook_sensitivity

bool

editors/3d/freelook/freelook_speed_zoom_link

float

editors/3d/grid_division_level_bias

int

editors/3d/grid_division_level_max

int

editors/3d/grid_division_level_min

int

editors/3d/grid_size

bool

editors/3d/grid_xy_plane

bool

editors/3d/grid_xz_plane

bool

editors/3d/grid_yz_plane

bool

editors/3d/navigation/emulate_3_button_mouse

bool

editors/3d/navigation/emulate_numpad

bool

editors/3d/navigation/invert_x_axis

bool

editors/3d/navigation/invert_y_axis

int

editors/3d/navigation/navigation_scheme

int

editors/3d/navigation/orbit_modifier

int

editors/3d/navigation/pan_modifier

bool

editors/3d/navigation/warped_mouse_panning

int

editors/3d/navigation/zoom_modifier

int

editors/3d/navigation/zoom_style

float

editors/3d/navigation_feel/orbit_inertia

float

editors/3d/navigation_feel/orbit_sensitivity

float

editors/3d/navigation_feel/translation_inertia

float

editors/3d/navigation_feel/zoom_inertia

Color

editors/3d/primary_grid_color

int

editors/3d/primary_grid_steps

Color

editors/3d/secondary_grid_color

Color

editors/3d/selection_box_color

Color

editors/3d_gizmos/gizmo_colors/aabb

Color

editors/3d_gizmos/gizmo_colors/instantiated

Color

editors/3d_gizmos/gizmo_colors/joint

bool

editors/animation/autorename_animation_tracks

bool

editors/animation/confirm_insert_track

bool

editors/animation/default_create_bezier_tracks

bool

editors/animation/default_create_reset_tracks

Color

editors/animation/onion_layers_future_color

Color

editors/animation/onion_layers_past_color

float

editors/grid_map/pick_distance

int

editors/panning/2d_editor_pan_speed

int

editors/panning/2d_editor_panning_scheme

int

editors/panning/animation_editors_panning_scheme

bool

editors/panning/simple_panning

int

editors/panning/sub_editors_panning_scheme

bool

editors/panning/warped_mouse_panning

float

editors/polygon_editor/auto_bake_delay

int

editors/polygon_editor/point_grab_radius

bool

editors/polygon_editor/show_previous_outline

bool

editors/shader_editor/behavior/files/restore_shaders_on_load

bool

editors/tiles_editor/display_grid

Color

editors/tiles_editor/grid_color

bool

editors/tiles_editor/highlight_selected_layer

Color

editors/visual_editors/category_colors/color_color

Color

editors/visual_editors/category_colors/conditional_color

Color

editors/visual_editors/category_colors/input_color

Color

editors/visual_editors/category_colors/output_color

Color

editors/visual_editors/category_colors/particle_color

Color

editors/visual_editors/category_colors/scalar_color

Color

editors/visual_editors/category_colors/special_color

Color

editors/visual_editors/category_colors/textures_color

Color

editors/visual_editors/category_colors/transform_color

Color

editors/visual_editors/category_colors/utility_color

Color

editors/visual_editors/category_colors/vector_color

String

editors/visual_editors/color_theme

Color

editors/visual_editors/connection_colors/boolean_color

Color

editors/visual_editors/connection_colors/sampler_color

Color

editors/visual_editors/connection_colors/scalar_color

Color

editors/visual_editors/connection_colors/transform_color

Color

editors/visual_editors/connection_colors/vector2_color

Color

editors/visual_editors/connection_colors/vector3_color

Color

editors/visual_editors/connection_colors/vector4_color

int

editors/visual_editors/grid_pattern

float

editors/visual_editors/lines_curvature

float

editors/visual_editors/minimap_opacity

int

editors/visual_editors/visual_shader/port_preview_size

String

filesystem/directories/autoscan_project_path

String

filesystem/directories/default_project_path

String

filesystem/external_programs/3d_model_editor

String

filesystem/external_programs/audio_editor

String

filesystem/external_programs/raster_image_editor

String

filesystem/external_programs/terminal_emulator

String

filesystem/external_programs/terminal_emulator_flags

String

filesystem/external_programs/vector_image_editor

int

filesystem/file_dialog/display_mode

bool

filesystem/file_dialog/show_hidden_files

int

filesystem/file_dialog/thumbnail_size

String

filesystem/import/blender/blender_path

int

filesystem/import/blender/rpc_port

float

filesystem/import/blender/rpc_server_uptime

String

filesystem/import/fbx/fbx2gltf_path

bool

filesystem/on_save/compress_binary_resources

bool

filesystem/on_save/safe_save_on_backup_then_rename

String

filesystem/tools/oidn/oidn_denoise_path

bool

input/buffering/agile_event_flushing

bool

input/buffering/use_accumulated_input

int

interface/editor/accept_dialog_cancel_ok_buttons

bool

interface/editor/automatically_open_screenshots

String

interface/editor/code_font

int

interface/editor/code_font_contextual_ligatures

String

interface/editor/code_font_custom_opentype_features

String

interface/editor/code_font_custom_variations

int

interface/editor/code_font_size

float

interface/editor/custom_display_scale

int

interface/editor/display_scale

int

interface/editor/dock_tab_style

String

interface/editor/editor_language

int

interface/editor/editor_screen

bool

interface/editor/expand_to_title

int

interface/editor/font_antialiasing

bool

interface/editor/font_disable_embedded_bitmaps

int

interface/editor/font_hinting

int

interface/editor/font_subpixel_positioning

bool

interface/editor/import_resources_when_unfocused

bool

interface/editor/localize_settings

int

interface/editor/low_processor_mode_sleep_usec

String

interface/editor/main_font

String

interface/editor/main_font_bold

int

interface/editor/main_font_size

bool

interface/editor/mouse_extra_buttons_navigate_history

int

interface/editor/project_manager_screen

bool

interface/editor/save_each_scene_on_quit

bool

interface/editor/save_on_focus_loss

bool

interface/editor/separate_distraction_mode

int

interface/editor/show_internal_errors_in_toast_notifications

int

interface/editor/show_update_spinner

bool

interface/editor/single_window_mode

int

interface/editor/ui_layout_direction

int

interface/editor/unfocused_low_processor_mode_sleep_usec