mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
15f6984675
The GDScript version above makes the `number` property read only whenever `is_number_editable` is false. ```gdscript func _validate_property(property: Dictionary): if property.name == "number" and not is_number_editable: property.usage |= PROPERTY_USAGE_READ_ONLY ``` The C# version is similar, but omits the negation, so the Number property is made read only whenever `is_number_editable` is true. This adds the negation to the C# example, making it match the GDScript example. |
||
---|---|---|
.. | ||
classes | ||
tools | ||
translations | ||
class.xsd | ||
Doxyfile | ||
Makefile |