Rename variable dock_scene to dockScene

Updated the local variable name to match the Godot C# style guide.
This commit is contained in:
Shadi Muklashy
2026-07-26 10:41:50 -07:00
committed by GitHub
parent 2c3697f812
commit f14b99a914

View File

@@ -310,11 +310,11 @@ The script could look like this:
func _enter_tree():
# Initialization of the plugin goes here.
# Load the dock scene and instantiate it.
var dock_scene = preload("res://addons/my_custom_dock/my_dock.tscn").instantiate()
var dockScene = preload("res://addons/my_custom_dock/my_dock.tscn").instantiate()
# Create the dock and add the loaded scene to it.
dock = EditorDock.new()
dock.add_child(dock_scene)
dock.add_child(dockScene)
dock.title = "My Dock"