nedcrow
1
I want sprite object. this sprite is rectangle(not square).
So, i’am searched.
- BABYLON.SpriteManager ref : I found Only square examples.
- uvScale ref : Property ‘uScale’ does not exist on type ‘BaseTexture’.
that is no.2 ref :
Sprite and BillboardMode of https://www.babylonjs-playground.com/#I4T59R#5
plz how make a rectangle sprites.
sebavan
2
Could you not use cellWidth and cellHeight for this ???
nedcrow
3
Case cellHeight(width) was square mesh’s size when after sliced.
I could still solved the No.2. (used ‘as’ & ‘function’.).
let texture = BaseTextureObject as Texture;
slice(texture);
function slice (texture: Texture) {
texture.uScale = ...... ;
......
}
Thank you!
1 Like