• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 323 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0042 秒)

51. 精灵 · LayaAir3.0文档 · LAYABOX [ 77%]

...创建完毕,此方法只执行一次 */ onAwake(): void { this.sprite.loadImage("atlas/comp/image.png"); //纹理:图片路径 this.sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置:屏幕中心 this.sprite.x = Laya.stage.width/2; //x、y分别设置位置 this.s...

来源: Laya3.0_文档 发布时间: 20240528

52. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 77%]

...e=Loader.getRes(tempjson.pic)后 tempnote.on函数不触发 使用tempnote.loadImage(tempjson.pic); 触发正常,如果我想使用Loader.getRes 来载入缓存的图片应如何处理. 2017-10-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

来源: Laya_社区 发布时间: 20171024

53. laya.ui.AutoBitmap_API3.0 [ 76%]

...e drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale setState strokeText transform translate Constructors constructor new AutoBitmap(): AutoBitmap Inherited from Graphics.constructor Defined in laya/display/Graphics.ts:54 Returns Au...

来源: Laya3.0_api 发布时间: 20231115

54. 输入设备-指南针 [ 76%]

...) { compassImg = new Sprite(); Laya.stage.addChild(compassImg); compassImg.loadImage(compassImgPath); compassImg.pivot(compassImg.width / 2, compassImg.height / 2); compassImg.pos(Laya.stage.width / 2, 400); } function drawUI() { var canvas = new Sprite(); Laya.stage.addChild(canvas); canvas.graphic...

来源: Laya_示例 发布时间: 20240929

55. laya.ani.GraphicsAni_API3.0 [ 76%]

...e drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale strokeText transform translate create recycle Constructors constructor new GraphicsAni(): GraphicsAni Inherited from Graphics.constructor Defined in laya/display/Graphics.ts:54 Re...

来源: Laya3.0_api 发布时间: 20231115

56. 微信小游戏截图问题 [ 76%]

...t, destWidth: canvas.width, destHeight: canvas.height }) this.ctx.graphics.loadImage(wxhtmlC, 0, 0,this.ctx.width,this.ctx.height); 然后用drawTextture,很多问题都是有这个,可以带到下面那些东西怎么转成图片呢? var htmlC = Laya.stage.drawToTexture(Laya.stage.width,Laya....

来源: Laya_社区 发布时间: 20191124

57. 输入设备-指南针 [ 76%]

...te; compassImg = new Sprite(); Laya.stage.addChild(compassImg); compassImg.loadImage(compassImgPath); compassImg.pivot(compassImg.width / 2, compassImg.height / 2); compassImg.pos(Laya.stage.width / 2, 400); } createDirectionIndicator() { const Sprite = Laya.Sprite; directionIndicator = new Sprite()...

来源: Laya2.0_示例 发布时间: 20240929

58. 滤镜-颜色滤镜 [ 76%]

...ild.y; } private createApe(): Sprite { var ape: Sprite = new Sprite(); ape.loadImage("res/apes/monkey2.png"); Laya.stage.addChild(ape); return ape; } } } new laya.Filters_Color();package { import laya.display.Sprite; import laya.display.Stage; import laya.filters.ColorFilter; import laya.resource.Te...

来源: Laya2.0_示例 发布时间: 20240929

59. 设置滤镜(TypeScript-LayaAir基础篇(TS)-位图) [ 76%]

...ild.y; } private createApe(): Sprite { var ape: Sprite = new Sprite(); ape.loadImage("../../res/apes/monkey2.png"); Laya.stage.addChild(ape); return ape; } } } new laya.Main(); ``` 在上面的代码中,我们创建了一个原始位图、一个红色滤镜效果位图、一个灰色滤镜效果...

来源: Laya2.0_文档 发布时间: 20210715

60. 图片不能按轴心旋转 [ 75%]

...xedauto' Laya.stage.screenMode = 'vertical' let bg = new Laya.Sprite(); bg.loadImage("../res/image/interface/intro_bg.png",375,667,1500,1500); bg.pivot(750,750) bg.alpha = 1 bg.rotation = 10图片是正方形的 如上设置过pivot之后 并没有按 正方形中心点旋转 2018-05-19 添加评论...

来源: Laya_社区 发布时间: 20180519