大约有 372 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0060 秒)
Laya_社区(116) Laya2.0_文档(64) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya3.0_文档(20) Laya2.0_示例(1)
... } l.addComponentInstance(s); Laya.stage.addChild(l); 2025-09-13 0 0 分享 微博 QZONE 微信 wjs 赞同来自: 脚本本身是组件。使用所有node节点的子类都有的方法addComponentInstance添加组件实例或者addComponent通过脚本类直接添加...
来源: Laya_社区 发布时间: 20181023
...w Laya.Animation(); roleAni.loadImages(); roleAni.play(); Laya.stage.addChild(roleAni); 这样就会报路劲错误 var urls = [ 'img/food/f1.png', 'img/food/f2.png', 'img/food/f3.png', 'img/food/f4.png', 'img/food/f5.png', 'img/food/f6.png', 'img/food/f7.png', 'img/food/f8.png', 'img/f...
来源: Laya_社区 发布时间: 20170718
...ordWrap x y zOrder Methods _initialize _processActive _setHeight _setWidth addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater changeText clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce ...
来源: Laya3.0_api 发布时间: 20231115
...播放 // 设置画布上的对齐参照物 reference = new Sprite(); this.addChild(reference); reference.pos(0, 0); reference.size(GoldConsts.contextWidth, GoldConsts.contextHeight); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#cccccc"); // 每次舞台尺寸变更时,...
来源: Laya_社区 发布时间: 20180313
... txt.bold = true; Laya.stage.addChild(txt); }); 这样修改一下,您ttfloader.fontName的位置放错了 2022-03-30 2 2 分享 微博 QZONE 微信 Laya_Yan 赞同来自: 替换一下试试? Main.zip 2022-03-31 0 1 分享 微...
来源: Laya_社区 发布时间: 20220330
...aya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } } 2. 修改.as3proj文件相应标签如下 <compileTargets> <compile path="src\HelloWorld.as" /> </compileTargets> 3. 运行后依然编译执行默认生成的LayaSamples.as 2018-09-14...
来源: Laya_社区 发布时间: 20180914
...LINK, this, (event: Laya.Event) => { console.log(event); }); Laya.stage.addChild(ele); zyy • 2021-11-09 13:51 @Laya_Fred: 这段代码 很简单 只是点击 输出 event 如果 把Laya.stage.y 向下调整 就会导致它点击区域错误 zyy • 2021-11-09 13:55 @Laya_Fred:而且Laya.stage.y...
来源: Laya_社区 发布时间: 20211105
...p.graphics.drawTexture(texture);//把截图绘制到精灵上 * Laya.stage.addChild(sp);//把精灵显示到舞台 * * <p>也可以获取原始图片数据,分享到网上,从而实现截图效果,示例:</p> * * var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//...
来源: Laya_社区 发布时间: 20180826
...的js也有这个问题,自动添加Laya导致变成。Laya.Laya.stage.addChild 另外,使用第三方js库也有这个问题,我自己写了dts文件,ts里面引用,结果生成的js也会加上Laya,导致我需要在Main里面手动挂载到Laya下才行 demo已经发给Laya开...
来源: Laya_社区 发布时间: 20191211
...<100){ var bgImg = new Laya.Sprite(); bgImg.loadImage(data); Laya.stage.addChild(bgImg) }else{ console.log("图片超标"+width+"--"+height); } }; img.src =data; } }; 2019-01-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20190129