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

Adding a SpriteGlow component from code doesn't work on Android if there's no SpriteGlow in the scene #17

Closed
CrystalPony opened this issue Nov 4, 2017 · 2 comments

Comments

@CrystalPony
Copy link

If there's no SpriteGlow in the scene already adding a SpriteGlow component form the script causes a NullReferenceException because SpriteGlowMaterial.OUTLINE_SHADER is null.

@elringus
Copy link
Owner

elringus commented Nov 4, 2017

Most likely the outline shader is not included to the build (it happens when none of the included assets reference SpriteGlow component directly). You can force-include the shader by assigning it to the "Always Included Shaders" in the Edit -> Project Settings -> Graphics.

@CrystalPony
Copy link
Author

Yep, that's it, thanks!

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

No branches or pull requests

2 participants