How can I change size of sprite? For example my sprite size is 100x100px and i would like to deform it to the 150x100px [equals to the ScaleX(1.5f), ScaleY(1.f)]. When I use setTextureRectInPixels it changes contentsize but sprite’s quad still has original size of texture (isn’t that bug ??).
I know that i can use scale, but i am using ScaleBy quiet lot and that will results in variation on modified and original textures. (Does it make sense?)
Also I can manually change quad, but i am afraid that it will be lost after updateTransform call.
- How can i make sprite with different size than size of original texture (texture will look like scaled by scale is 1.0f, 1.0f)?
- How can i make sprite which will have different size than texture and it will repeat texture in itself as pattern? (uv textures)?