Skip to content
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

Fix #410 for good - Add proper Loading of Resources for Android, iOS #412

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fntc
Copy link

@fntc fntc commented Feb 21, 2025

The fix provided for #410 is not solving the load issues for Android/iOS.
There it is not possible to use Assembly.GetEntryAssembly() / Assembly.GetExecutingAssembly(), they will always return null.
However you can call typeof(MyClass).Assembly to access an assembly if you know where the resources are that you are trying to find.
This patch adds some NullChecks required to go through the implemented methods and adds the code required to load the shaders on mobile platforms

make loading shaders work on android, ios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant