-
Notifications
You must be signed in to change notification settings - Fork 14
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 Draw a Rive panel on Sprite #89
Comments
Hello, Rive currently renders to a Render Texture, which means Rive should work wherever Render Textures are supported in Unity. The issue is that Sprite Renderers don’t natively handle Render Textures well. To work around this, we usually recommend rendering to a Quad using the RiveTextureRenderer component. However, if you run into sorting issues when mixing Quads with SpriteRenderers, an alternative is to use a custom shader/material with the SpriteRenderer to override its texture. Here’s an example:
This shader allows you to render Rive within SpriteRenderers while maintaining sort order. You would use the RiveTextureRenderer to specify the Keep in mind that when using the custom shader approach with SpriteRenderers, pointer input is not automatically supported. This is because SpriteRenderers and 2D Colliders do not provide If you need pointer input support, consider using the recommended Quad approach with RiveTextureRenderer instead. |
i want to use rive for my games character. but I cant use a rive texture renderer on my sprite, because it doesn't work
The text was updated successfully, but these errors were encountered: