Explorar o código

Update the @export_custom example in gdscript_exports.rst

Co-authored-by: tetrapod <[email protected]>
starsJuly hai 3 meses
pai
achega
2f4ad61ef6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tutorials/scripting/gdscript/gdscript_exports.rst

+ 1 - 1
tutorials/scripting/gdscript/gdscript_exports.rst

@@ -475,7 +475,7 @@ For example, this exposes the ``altitude`` property with no range limits but a
 
 
 ::
 ::
 
 
-    @export_custom(PROPERTY_HINT_NONE, "suffix:m") var altitude: Vector3
+    @export_custom(PROPERTY_HINT_NONE, "suffix:m") var altitude: float
 
 
 The above is normally not feasible with the standard ``@export_range`` syntax,
 The above is normally not feasible with the standard ``@export_range`` syntax,
 since it requires defining a range.
 since it requires defining a range.