大约有 99 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
...) { const graphics = new Laya.Sprite(); this.owner.addChild(graphics); this.addBoundaryLabels(); } private addBoundaryLabels() { const minXLabel = new Laya.Text(); minXLabel.text = `minX: ${this.playerScript.mapMinX}`; ...
来源: Laya_社区 发布时间: 20251125
... //创建胜利的UI界面 let victoryScene=new VictoryScene(); Laya.stage.addChild(victoryScene); this.isDelete=true; // console.log(Scene3DControl.GameSceneB); } }结束界面跳转到3D场景 import {VictorySceneUI} from '../ui/layaMaxUI' import GameScene from './GameScene'; export defaul...
来源: Laya_社区 发布时间: 20190903
...nsor(); } createSensor() { let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let groundBody = new Laya.RigidBody(); groundBody.type = "static"; ground.addComponentIntance(groundBody); let chainCollider = ground.addComponent(Laya.ChainCollider); chainCollider.points = "50,400,50,600,1...
来源: Laya2.0_示例 发布时间: 20251130
... a.graphics.drawTexture(texture1, 0, 0); this.owner.addChild(a) }); Laya.loader.load("http://103.219.177.59:63344/%2 ... ot%3B, Laya.Loader.TEXTURE2D).then((texture: Laya.Texture2D) => { //在U方向上使用WARPMODE_CLAMP ...
来源: Laya_社区 发布时间: 20230316
...龙蛇马羊猴鸡狗猪年快乐"; testFontClip.spaceY = 10; this.owner.addChild(clipnum); this.owner.addChild(fontClip); this.owner.addChild(testFontClip); this.owner.addChild(testClipNum); this.owner.addChild(clipnum1); } } 通常FontClip已经可以满足开发者的基本需求。如果有特...
来源: Laya3.0_文档 发布时间: 20251010
...bg.width >> 1, Laya.stage.height - bg.height >> 1); this.owner.addChild(bg); } private createTimerAnimation(): void { this.counter = new Laya.Clip(this.clipSkin, 10, 1); this.counter.autoPlay = true; this.counter.interval = 1000; this.counter.x = (Laya.stage.width - this.counter.width) /...
来源: Laya3.0_文档 发布时间: 20251010
...hics.drawRect(20, 20, 100, 50, "#ffff00", "#00ff00", 5, false); this.owner.addChild(sp); 示例中的 20,20 是矩形起始点坐标,100是向右的宽度,如果是负数则是向左的宽度。50是向下的高度,如果是负数则是向上的高度。 运行效果: (图2-3) 2.3 用d...
来源: Laya3.0_文档 发布时间: 20251010
...pi.filters = spi1.filters = spi2.filters = [blurFilter]; this.owner.parent.addChild(spi); this.owner.parent.addChild(spi1); this.owner.parent.addChild(spi2); // }) }求教以下大佬们,是否还有其他的截屏方法(使用了drawToCanvas,因为3d场景对象比较复杂,无法实现预期...
来源: Laya_社区 发布时间: 20191230
...his.owner as Laya.Sprite; var ni:Laya.Animation=new Laya.Animation(); self.addChild(ni); self.texture=null; ni.source='baozha/baozha_0.png,baozha/baozha_1.png,baozha/baozha_2.png,baozha/baozha_3.png,baozha/baozha_4.png,baozha/baozha_5.png,baozha/baozha_6.png,baozha/baozha_7.png'; ni.interval=100; ni...
来源: Laya_社区 发布时间: 20190721
...skeleton.getAniNameByIndex(num - 1); skeleton.play(name) })); this.owner.addChild(skeleton); 2019-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 laozhou 赞同来自: //创建一个Skeleton对象 var skele...
来源: Laya_社区 发布时间: 20190416