-
-
Notifications
You must be signed in to change notification settings - Fork 642
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
Lost Material.mainTexture if using AnimatableProperties. #311
Comments
mob-sakai
added a commit
that referenced
this issue
May 22, 2024
🎉 This issue has been resolved in version 4.6.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 4.6.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Lost Material.mainTexture if using AnimatableProperties.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A Material that presented a canvas is inherit a texture of original material (that bind
mainTexture
).Screenshots
![image](https://private-user-images.githubusercontent.com/22035855/332508505-2749453d-25e3-4c4b-bf9b-ae3092f2d390.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDQ5MDMsIm5iZiI6MTczOTYwNDYwMywicGF0aCI6Ii8yMjAzNTg1NS8zMzI1MDg1MDUtMjc0OTQ1M2QtMjVlMy00YzRiLWJmOWItYWUzMDkyZjJkMzkwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA3MzAwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY0ZTEwYTM0Nzc1Mjk4MjgxOTExM2IwZTYzZTQ4MTZjMjg1ZWQ1ZDNlMmVhYmFhODg1MmE4ZGIyMjE0NmMzNGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.AoRt8AJuq5tZox-PwXsdNE6eQdPK3q99QMShzp1vEXA)
Environment (please complete the following information):
Additional context
The UIParticle presents a copy material to a canvas, if enabled animatable properties. (at ModifiredMaterial class) That time, it uses
UIParticleRenderer.mainTexture
that is a atlas of TextureAnimationSheet. If it dose not have the TextureAnimationSheet,mainTexture
is null. The material copying process is overridesmainTexture
of the material after copy by Material constructor. So, it overridemainTexture
by null.When Old version, NOP if the ParticleSystem dose not have a TextureAnimationSheet.
I suggest revert this copy process.
The text was updated successfully, but these errors were encountered: