大约有 581 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0071 秒)
Laya_社区(305) Laya3.0_api(62) Laya2.0_api(58) laya_api(54) Laya2.0_示例(31) Laya_示例(30) Laya2.0_文档(22) Laya3.0_文档(19)
...马赛克效果 现在只能是对每一个未加载的块都创建一个sprite感觉好浪费,地图切得小的时候刚开始可能就上百个sprite,虽然性能也没啥问题,但如果可以直接缩放渲染texture就更好了 2017-03-05 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170305
...create(this,this.onMapLoaded)); this.tMap.scale = 1; var ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.loadImage("res/lhg.png"); ape.pos(0, 0); 2018-05-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...
来源: Laya_社区 发布时间: 20180514
精灵(Sprite)一、概述二、IDE中使用2.1 创建精灵2.2 基础属性2.3 Sprite的特有属性2.4 其它属性2.5 脚本控制属性三、代码中使用3.1 创建Sprite3.2 显示图片3.3 基础属性3.4 其它属性精灵(Sprite) 一、概述 游戏中Sprite精灵是在屏幕中能...
来源: Laya3.0_文档 发布时间: 20251010
...; rankTexture.bitmap.alwaysChange = true;//小程序使用,非常费 let sprite = new Laya.Sprite(); sprite.graphics.drawTexture(rankTexture, 0, 0, rankTexture.width, rankTexture.height); this._content.addChild(sprite); sprite.pos(40, 190);报:this.bitmap activeResource is not a function 2019-09...
来源: Laya_社区 发布时间: 20190920
回调函数传递sprite3D问题 使用 Laya.timer.frameLoop();函数 看了官方API,第四个参数是传一个数组,作为回调函数的入参, var spriteArray = new Array(); spriteArray.push(warehouse1); Laya.timer.frameLoop(1, this, freshBubble,spriteArray); function freshBubble(sprite...
来源: Laya_社区 发布时间: 20180105
关于fillText问题 private label_image:Laya.Sprite=new Laya.Sprite(); this.label_image.graphics.fillText(xxx, xxx,"15px Arial","#000000","center"); this.label_image.pos(0,0) Laya.stage.addChild(this.label_image); 这样写为什么CurMem会增加接近16M,这不就是在精灵上绘制嘛,...
来源: Laya_社区 发布时间: 20180425
...de Class SoundNode 用于播放背景音乐或者音效的节点 Hierarchy Sprite SoundNode Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alp...
来源: Laya3.0_api 发布时间: 20231115
...Protected All Inherited Externals Only exported Menu Globals "laya/map/GridSprite" GridSprite Class GridSprite 地图的每层都会分块渲染处理 本类就是地图的块数据 author ... Hierarchy Sprite GridSprite Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseU...
来源: Laya3.0_api 发布时间: 20231115
..." Particle2D Class Particle2D Particle2D 类是2D粒子播放类 Hierarchy Sprite Particle2D Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoPlay autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHie...
来源: Laya3.0_api 发布时间: 20231115
...s | Constants Packagelaya.displayClasspublic class StageInheritanceStage Sprite Node EventDispatcher Object Stage 是舞台类,显示列表的根节点,所有显示对象都在舞台上显示。通过 Laya.stage 单例访问。 Stage提供几种适配模式,不同的适配模式会产生不...
来源: Laya2.0_api 发布时间: 20190513