1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00
Files
godot/doc/classes
Sai Nane 15f6984675 Fix check in Object._ValidateProperty example
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.
2024-08-09 19:08:27 +00:00
..
2024-07-15 14:35:12 +03:00
2024-06-18 11:06:31 -04:00
2024-06-18 11:06:31 -04:00
2024-06-18 11:06:31 -04:00
2024-06-22 19:58:45 -07:00
2024-05-09 14:36:28 +02:00
2024-05-14 19:22:50 +12:00
2024-04-13 15:18:12 -03:00
2024-04-23 08:28:48 +04:00
2024-06-15 18:21:05 +02:00
2024-06-15 18:21:05 +02:00