- Home /
URP Shader not applying when copying gameobject
URP Shader not applying when copying gameobject and changing the sprite I have made a short video of this doing runtime https://streamable.com/utlbuv What should I do?
You need to open that shader and understand which values drives that wind amplitude. It may turn out that it is based on uv position which makes this sprite behave differently. For example: because this sprite might part of an texture atlas and this affects it's uv.
I actually tried the to lower the mask value I had set to lower the movement at the bottom of the sprite and it turns out that does do something, for some reason the sprites I don't see movement on in the video are much harder to move than the others. This confuses me since the sprites are just three different trees that are than copied and colors has been changed to create variation, in the sprite editor I use custom outline and I only made a custom shape for three trees and then copied it on the other trees that matched the shape. It's easy for me to fix now, either I can use a copied shader with some different values or I can have the trees have more subtle movement. But I really don't understand why they're harder to move in the first place.