Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning for private fields with [Export] - unexpected serialization/display behavior #45

Open
van800 opened this issue Sep 22, 2020 · 0 comments

Comments

@van800
Copy link
Collaborator

van800 commented Sep 22, 2020

public abstract class Parent : Node
{
    [Export] NodePath testPath = new NodePath();

    public override void _Ready()
    {
        GD.Print("Parent Ready");
        GD.Print($"Is Path empty? {testPath.IsEmpty()}");
    }
}

public class Inherited : Parent
{
    [Export] NodePath testPath = new NodePath();

    public override void _Ready()
    {
        base._Ready();
        GD.Print("Inherited Ready:" + testPath);
    }
}

godotengine/godot#42244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant