大约有 2,364 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0081 秒)
Laya_社区(1757) Laya3.0_api(144) Laya2.0_文档(127) Laya2.0_api(103) laya_api(77) Laya3.0_文档(66) Laya_示例(48) Laya2.0_示例(42)
Search Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/display/Sprite" Sprite Class Sprite Sprite 是基本的显示图形的显示列表节点。 Sprite 默认没有宽高,默认不...
来源: Laya3.0_api 发布时间: 20231115
...间后执行回调函数,但是之前的缓动画不会执行 this.bir.x = 0; this.bir.y = 0; Laya.Tween.to(this.bir, { x: 200, y: 200 }, 2000, () => { }, Laya.Handler.create(this, this.change)); 这里面会直接过两秒执行this.change,而前面x:0->200 y:0->200不会执行 ...
来源: Laya_社区 发布时间: 20170809
...体并没有运动到指定位置,总有细微的差别 如图,每段x指定值是750的倍数,当label事件触发时,打印log 显示他们的x值都差那么一点,当第二段要执行时,他们的值又是从750开始的, 个人感觉是物体停止的位置并不是指定的...
来源: Laya_社区 发布时间: 20170620
...ar LayaAir3D = (function () { var currentCube; var moveTimer; var currentTexture = 0; var prevBox; var boxList = []; var initBoxW = 1; var initBoxH = 1; var initBoxL = 0.5 function myCube(x, y, z, textureUrl, posX, posY, posZ) { posX = posX || 0; posY = posY || 0; posZ = posZ || 0; var instance = ne...
来源: Laya_社区 发布时间: 20180402
Search Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/ui/Label" Label Class Label Label 类用于创建显示对象以显示文本。 example 以下示例代码,创建了一个 Label ...
来源: Laya3.0_api 发布时间: 20231115
...; //FPS Laya.Stat.show(0,0); //设置适配模式 Laya.stage.scaleMode = "exactfit"; //设置剧中对齐 Laya.stage.alignH = "center"; //设置横屏 Laya.stage.screenMode = "horizontal"; 打开浏览器(哦这里要说一下 因为浏览器有本地加载文件策略 具体可以看下laya这...
来源: Laya_社区 发布时间: 20160722
...aphics绘制的图像位置偏移 let sprite: Sprite = new Sprite(); let texture: Laya.Texture = Laya.loader.getRes(this.skin_img1); sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.height); sprite.size(texture.width, texture.height); let x: number = 300; let y: number = 100; let sc...
来源: Laya_社区 发布时间: 20170821
drawToTexture 绘制函数不工作呢 let top_rect: Laya.Sprite = new Laya.Sprite(); top_rect.x = 0; top_rect.y = 0; top_rect.size(100, 100); top_rect.graphics.drawRect(0, 0, 100, 100, "#0000FF", "#000000", 1); ...
来源: Laya_社区 发布时间: 20190730
... { this.playerHB = new logic.UI.role.PlayerHealthBar(); this.playerHB.pivotX = this.playerHB.width / 2; this.playerHB.pivotY = this.playerHB.height / 2; this.playerHB.y = 500; this.playerHB.txtName.text = "搞个毛啊"; // this.playerVO.name; this.addChild(this.playerHB); } private aaa():void { thi...
来源: Laya_社区 发布时间: 20180102
API DocumentationAll Packages | All Classes | Index | Frames No Frames MapLayerProperties | Methods | Events Packagelaya.mapClasspublic class MapLayerInheritanceMapLayer Sprite Node EventDispatcher Object 地图支持多层渲染(例如,地表层,植被层,建筑层等) 本类就...
来源: Laya2.0_api 发布时间: 20190513