大约有 2,384 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0109 秒)
Laya_社区(1773) Laya3.0_api(144) Laya2.0_文档(127) Laya2.0_api(103) laya_api(77) Laya3.0_文档(70) Laya_示例(48) Laya2.0_示例(42)
...不知道为什么无法实现点击。 (function() { var guideSteps = [ { x: 151, y: 575, radius: 150, tip: "../../res/guide/help6.png", tipx: 200, tipy: 250 }, { x: 883, y: 620, radius: 100, tip: "../../res/guide/help4.png", tipx: 730, tipy: 380 }, { x: 1128, y: 583, radius: 110, tip: "../../res/g...
来源: Laya_社区 发布时间: 20171031
...确碰撞都靠第三个参数 怎么改装成h5? public hitTestPoint( x:number,y:number ,shapeFlag:boolean ):boolean 计算显示对象,以确定它是否与 x 和 y 参数指定的点重叠或相交。x 和 y 参数指定舞台的坐标空间中的点,而不是包含显示对象的显示对...
来源: Laya_社区 发布时间: 20171106
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
...sUtil { /** * 绘画圆角矩形 * @param graghics Graghics对象 * @param x 开始绘制的x轴位置 * @param y 开始绘制的y轴位置 * @param width 矩形宽 * @param height 矩形高 * @param roundRadius 圆角半径 * @param fillColor 填充颜色 * @param borderColor 边框填充颜色 * @...
来源: Laya_社区 发布时间: 20190117
...间后执行回调函数,但是之前的缓动画不会执行 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