mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 19:29:06 +00:00
Update "Reporting node..." segment
Current code doesn't work with Godot 4.0 I added @ to export variables and changed update_configuration_warning() to new update_configuration_warnings().
This commit is contained in:
@@ -254,17 +254,17 @@ By default, the warning only updates when closing and reopening the scene.
|
||||
.. code-tab:: gdscript GDScript
|
||||
|
||||
# Use setters to update the configuration warning automatically.
|
||||
export var title = "":
|
||||
@export var title = "":
|
||||
set(p_title):
|
||||
if p_title != title:
|
||||
title = p_title
|
||||
update_configuration_warning()
|
||||
update_configuration_warnings()
|
||||
|
||||
export var description = "":
|
||||
@export var description = "":
|
||||
set(p_description):
|
||||
if p_description != description:
|
||||
description = p_description
|
||||
update_configuration_warning()
|
||||
update_configuration_warnings()
|
||||
|
||||
|
||||
func _get_configuration_warning():
|
||||
|
||||
Reference in New Issue
Block a user