ldtk icon indicating copy to clipboard operation
ldtk copied to clipboard

The custom field values do not match what is displayed in the editor

Open liu-y-d opened this issue 1 year ago • 0 comments

Hello I am trying to parse JSON using the QuickType way and implement some automated functions. Currently, I am encountering an issue related to Field instances. I attempted to modify the value of a certain property within a FieldInstance using the setValue method and then rewrite it back to the JSON file. However, after reloading the project, I found that the value in the editor had not changed. Upon reviewing the relevant documentation, I discovered that __value is a redundant field, and realEditorValues is actually the value used by the editor. However, the documentation states that there is no need to pay attention to the realEditorValues field. So, is there any other way to achieve this functionality? image

liu-y-d avatar Oct 25 '24 07:10 liu-y-d