0 votes

I've created a plugin that adds a custom node which also requires a custom class. I wasn't able to use the custom class when the script for the class was in the same addon folder, so I just made it an inner class on the custom node's script.

It works as-is, but i would really rather pull that code out into its own script so the script files aren't as bloated.

Is this possible in plugins?

Godot version 3.2.3
in Engine by (93 points)
edited by

1 Answer

0 votes
Best answer

This actually seems to have taken care of itself. I think it was just a weird issue with Godot cacheing the class and not updating properly.

I did also add extends Reference to the top of the custom class, but idk if that was "the fix". I suspect everything was fine and this was a false alarm.

by (93 points)
selected by
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 Frequently asked questions and 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 [email protected] with your username.