mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-09-03 18:14:53 +03:00
Rename variable dock_scene to dockScene
Updated the local variable name to match the Godot C# style guide.
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user