mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 19:29:06 +00:00
Possible typo (#3156)
Tutorial for 3.2 suggests calling 'add_custom_property_editor' which is not a member of EditorInspectorPlugin; however 'add_property_editor' does exist.
This commit is contained in:
@@ -39,7 +39,7 @@ editor that we'll later define.
|
||||
# We will handle properties of type integer.
|
||||
if type == TYPE_INT:
|
||||
# Register *an instance* of the custom property editor that we'll define next.
|
||||
add_custom_property_editor(path, MyIntEditor.new())
|
||||
add_property_editor(path, MyIntEditor.new())
|
||||
# We return `true` to notify the inspector that we'll be handling
|
||||
# this integer property, so it doesn't need to parse other plugins
|
||||
# (including built-in ones) for an appropriate editor.
|
||||
|
||||
Reference in New Issue
Block a user