+1 vote

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 (35 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 (29,092 points)

This thread's been archived but there's a new thread in the godot-archives repository: https://github.com/godotengine/godot-proposals/issues/18
Apparently this feature is planned for Godot 4.0

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.