大约有 1,038 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0047 秒)
Laya_社区(609) Laya2.0_文档(86) Laya3.0_api(75) Laya2.0_api(62) laya_api(57) Laya2.0_示例(53) Laya_示例(49) Laya3.0_文档(47)
...Laya.Skeleton(); //添加到舞台 Laya.stage.addChild(skeleton); skeleton.pos(600,700); //通过加载直接创建动画 skeleton.load("res/spine/spineboy/spineboy.sk"); ``` 运行效果如动图8所示  (动图8)
来源: Laya2.0_文档 发布时间: 20210715
...Laya.Skeleton(); //添加到舞台 Laya.stage.addChild(skeleton); skeleton.pos(600,700); //通过加载直接创建动画 skeleton.load("res/spine/spineboy/spineboy.sk"); ``` 运行效果如动图8所示  (动图8)
来源: Laya2.0_文档 发布时间: 20210715
...mg.skin = "data:image/png;base64,"+base64OfQrCode; img.pos(100, 300); Laya.stage.addChild(img); } } // androidplat,创建二维码 createQrCode(url:string, width:number, height:number):string { ...
来源: Laya_社区 发布时间: 20200729
...caleY = 1 ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); let sp = new Sprite() sp.graphics.drawRect(0, 0, 50, 50, '#ffff000') ape.mask = sp })); } })(); 右边的形状明显不是正方形 附件 : --> 2017-12-20 添加评...
来源: Laya_社区 发布时间: 20171220
...Laya.Skeleton(); //添加到舞台 Laya.stage.addChild(skeleton); skeleton.pos(600,700); //通过加载直接创建动画 skeleton.load("res/spine/spineboy/spineboy.sk"); ``` 运行效果如动图8所示  (动图8)
来源: Laya2.0_文档 发布时间: 20210715
...触发相应事件\n"; txt.size(Laya.stage.width, Laya.stage.height); txt.pos(10, 50); txt.fontSize = 20; txt.wordWrap = true; txt.color = "#FFFFFF"; Laya.stage.addChild(txt); } laya-stage为页面一个div,设置样式为 border: 2px solid #999; display: block; width: 480px; height: 360px; positi...
来源: Laya_社区 发布时间: 20180205
...aphics.drawCircle(80,80,50,"#ff0000"); //圆形所在的位置坐标 cMask.pos(120,50); //实现img显示对象的遮罩效果 img.mask = cMask; } } } ``` 运行效果如图3所示:  (图3) 通过对比代码我们发现,实现遮罩很简单,把创建的显示对象cMask...
来源: Laya2.0_文档 发布时间: 20210714
...= new Laya.Button(this.assets[1]); button.name = Laya.Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this.CLOSE_BTN_WIDTH - this.CLOSE_BTN_PADDING, this.CLOSE_BTN_PADDING); this.dialog.addChild(button); this.dialog.dragArea = "0,0," + this.DIALOG_WIDTH + "," + this.DIALOG_HEIGHT; this.dialog.open(); }...
来源: Laya3.0_文档 发布时间: 20251024
...ure = mFactory.buildArmature(1); Laya.stage.addChild(mArmature); mArmature.pos(mStartX, mStartY); // mArmature.scale(0.5, 0.5); mArmature.on(Event.STOPPED, this, this.completeHandler); this.play(); this.changeSkin(); Laya.timer.loop(1000, this, this.changeSkin); } changeSkin() { mCurrSkinIndex++; le...
来源: Laya2.0_示例 发布时间: 20251209
...;//把接收到的二进制数据读进byte数组便于解析。 this.byte.pos = 0;//设置偏移指针; ////下面开始读取数据,按照服务器传递过来的数据,按照顺序读取 var a = this.byte.getByte(); var b = this.byte.getInt16(); var c = this.byte.getFloat32(); var d = this....
来源: Laya2.0_文档 发布时间: 20210714