0 votes

Hey All,

I am making an EditorInspectorPlugin with EditorProperties and custom controls. It works, but my issue is that when I click away from the node and back into it, it refreshes the entire inspector resets the properties back to their default values.

I assume that parse_begin is being called again and thus clearing it, but I don't understand how to prevent it from clearing the values unless I somehow update the code in parse_begin with all of the updated values. This seems like a huge pain and definitely not the correct way to do it lol.

I basically have this:

extends EditorInspectorPlugin

func can_handle(object):
    return object is GamePadLayout


func parse_begin(object):
    #add EditorProperty scripts and Custom Control Nodes

TLDR: How do I get the inspector to remember the values when I click away from the node as it does in the native Godot inspector?

Godot version 3.2.4 beta 4
in Engine by (576 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.