textures not getting resized
See original GitHub issueI am trying to resize the new texture for dragonbones slot but the texture still shows in default size for dragonbones while if i add it in the stage it shows with the new scaling set by me.
My code: (PixiJS 5.4.0-rc.3)
var new_texture = new PIXI.Sprite(resources.cloth.texture);
new_texture.scale.x = 0.1;
new_texture.scale.y = 0.1;
new_texture.pivot.x = new_texture.width * 0.5;
new_texture.pivot.y = new_texture.height * 0.5;
slot.display = new_texture;
I tried using new PIXI.Texture also and set the width/height directly at its option parameters but still the texture showed the default size in the dragonbones armature.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
textures not getting resized · Issue #7060 · pixijs/pixijs - GitHub
I am trying to resize the new texture for dragonbones slot but the texture still shows in default size for dragonbones while if...
Read more >How do you move and resize textures in Blender?
Move and resize a texture using the shader editor · Press Shift+A and go to Input->Texture coordinate, place it to the left of...
Read more >How can I resize existing texture attachments at my framebuffer?
Once a texture is specified with this command, the format and dimensions of all levels become immutable unless it is a proxy texture....
Read more >WebGL.Texture - webgl 1.1.3 - Elm Packages
PNG and JPEG are known to work, but other formats have not been as ... magnify - how to Resize into a bigger...
Read more >Textures won't render to the correct size - SketchUp Community
HI I am having problems with applying my textures. I select the face, resize the texture to cover the whole area required.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello,
Looks like i am using this version from pixi dragonbones robot demo: https://pixijs.io/examples/pixi-plugins/pixi-dragonbones.js (I think i replaced the original version some time ago with this because was having some issues with mesh). This is the official one though: https://github.com/DragonBones/DragonBonesJS/tree/master/Pixi/5.x/out But the resizing issue still remains for both as i just tried the official one too.
Regards!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.