瀏覽代碼

Fix outdated method name in code sample in 3D gizmo plugins (#9695)

Addresses "Unnamed Gizmo" error when following example code;
now overriding `_get_gizmo_name` function, not `get_name`.
The-Cyber-Captain 11 月之前
父節點
當前提交
a293204d03
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/plugins/editor/3d_gizmos.rst

+ 1 - 1
tutorials/plugins/editor/3d_gizmos.rst

@@ -34,7 +34,7 @@ This would be a basic setup:
     extends EditorNode3DGizmoPlugin
     extends EditorNode3DGizmoPlugin
 
 
 
 
-    func get_name():
+    func _get_gizmo_name():
         return "CustomNode"
         return "CustomNode"