TraGUS
Godot plugin for user settings
Loading...
Searching...
No Matches

◆ GdTryUpdateValue()

bool GdTryUpdateValue ( GodotObject  sender,
Variant  value 
)

A gdscript-friendly adaptater of TryUpdateValue.

To mimic TryUpdateValue, you can simply retrieve the setting value manually afterwards, through Value property.

Parameters
senderThe sender object that requesting the change.
valueThe value to update the setting to.
Returns
Whether the requested update was performed successfully. It could typically return false if the concrete type of the provided variant was rejected.