0 votes

For example, I have a custom resource EventHandler, and I want to export it likeexport (EventHandler) var event. But, if I try this, I will catch an error. I don't want to export basicResource type. Should I write some kind of C++ extension? How can i do this?

in Engine by (23 points)

Any reason why

export (Script) var event

or

export (PackedScene) var event

won't work for you?

Script and PackedScene are engine resources, custom resources are something different.

I see. Where could I read up on custom resources? Never used them so far.

1 Answer

+1 vote

I'm not sure to remember what was the status on this, but the following thread may help: https://github.com/godotengine/godot/issues/6763
It's very old, you may need to read a bit.

by (27,595 points)
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.