fix certain logos not showing after export #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I noticed there was a warning in the editor when I was using the twist splash screen:
What it was suggesting was correct. It did not work on export (on v3.4.4.stable.official [419e713a2]).
I tested on Linux:
I tested on Android:
Neither of them showed the Godot icon because the image was not being loaded after the project was exported.
When looking for solutions, I ran across this on the internet: https://godotengine.org/qa/50031/image-fails-export-with-warning-loading-resource-image-export
This seemed to be the same problem I was experiencing. So I rewrote
AweSplashScreen.load_texture(String)
a bit. Instead of usingimage.load(path)
, I loadedpath
as a resource in a variable calledstream_texture
usingload(path)
. Then, I setimage
to the image data fromstream_texture.get_data()
. This pretty much achieves the same thing, but without the warning. It also appears to work on export.I tested on Linux:
I tested on Android:
Both show the Godot icon now.