-
Notifications
You must be signed in to change notification settings - Fork 27
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
Cant load resources #9
Comments
You're on the right track with the second approach, I think it's just returning something that's not a
and see what type it's giving you |
Is this SeiftGodotKit or SeiftGodot? |
When I do this:
It produces: so I would have expected your fourth option to work 🤔 Is your |
I'm using SwiftGodotKit, so no editor or project.godot file |
Ah, I see. I've used this in my SceneGen project like this: https://github.com/PadraigK/SceneGen/blob/b57e157fef771275da6c9b94efbab389c69f19ce/Sources/SceneGen/Helpers/GodotTools.swift#L26-L35 I found I did need a project file to be able to access resources at all, but it can probably be very minimal. |
I suspect SwiftGodotKit needs some initialization to establish the base directory to load files from when using res:// |
Is the |
yes, I have a Game.setup() method that ends up calling the |
From my understanding |
I have a similar issue when trying to run the Dodge sample: https://gist.github.com/hyouuu/94a59fc5a5dbe071c736a39c68678325 Thoughts @migueldeicaza ? |
I still haven't been able to get resources working on a pure swiftgodokit app, anybody got any luck with that? |
I'm trying to load resources and it seems it is not working
I tried different ways, but always same error
Full path, with the file referenced as as folder
Or added as a reference group into the project as well, and event trying to use the res:// syntax, all with same error
The text was updated successfully, but these errors were encountered: