question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

textures not getting resized

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
edev2020commented, Dec 11, 2020

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!

0reactions
stale[bot]commented, Jun 11, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found