Prevent Resources from being imported. But still include them via the Export Configuration. #10330
Closed
Decapitated
started this conversation in
General Discussions
Replies: 1 comment 3 replies
-
You just pick "Keep File (exported as is)" in the import option |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am creating a GDExtension that renders HTML.
The extension loads files via
FileAccess
. When exporting the demo project, I import Non-Resource files via theExport Configuration
- html, js, css, etc.This works great. The files are put inside the
.pck
file, and I am able to access these files viaFileAccess
and a path likeres://folder/file.html
.The problem arises when files like
SVG
andPNG
- which are auto imported - are accessed this way.According to the docs,
FileAccess
cannot access imported resources.I would like for resources inside a particular folder to not be imported. But still included inside the
.pck
and accessed like other Non-Resources.I have attempted to use
.gdignore
inside the folders, which stops the files from being imported. But also prevents the files from being included in the.pck
via theExport Configuration
.Beta Was this translation helpful? Give feedback.
All reactions