• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3,084 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0066 秒)

1711. Laya2.0绘制扇形遮罩,显示到部分角度时显示会有部分缺失(demo已上传) [ 65%]

... let node: Laya.Image = new Laya.Image('c1.png'); node.pos(300, 300) Laya.stage.addChild(node); var sp: Laya.Sprite = new Laya.Sprite(); node.mask = sp; sp.pos(50, 50); var sp2: Laya.Sprite = new Laya.Sprite(); sp2.pos(300, 500); Laya.stage.addChild(sp2); let r: number = 0 Laya.timer.loop(100, this,...

来源: Laya_社区 发布时间: 20190701

1712. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 65%]

...uper();          //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventional/terrain.ls",Laya.Handler.create(this,function(scene:Laya.Scene3D){ Laya.stage.addChild(scene) as Laya.Scene3D; console....

来源: Laya_社区 发布时间: 20190426

1713. 使用官方文档中qrcode生成二维码的代码,打包APP后无效 [ 65%]

...eight: 100 }); var url: string = this.URL; this.qrcode.makeCode(url); Laya.stage.once("click", this, this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private clickHandler(): void { var url: string = this.qrcode._oDrawing._elImage.src;//获取,注意这...

来源: Laya_社区 发布时间: 20180412

1714. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 65%]

...展示界面    Laya.init(scronw, scronh) //设置舞台背景色 Laya.stage.bgColor = '#999999'; //设置适配模式     Laya.stage.scaleMode = "exactfit";     // 无加载失败重试     Laya.loader.retryNum = 0; //加载的数据信息 https://layaair.ldc.layabox.co ... oader var...

来源: Laya_社区 发布时间: 20171024

1715. Panel使用文档(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 65%]

...动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChild(panel); //实例化Image组件 var img:Image = new Image(); //给image添加皮肤 img.skin = "comp/image.png"; //将image添加到panel组件中 panel.addChild(img); } } } ```

来源: Laya2.0_文档 发布时间: 20210715

1716. 关于as版的Animation.createFrames()不能工作? [ 65%]

...rt laya.display.Animation; import laya.display.Sprite; import laya.display.Stage; import laya.utils.Handler; import laya.net.Loader; import laya.events.Event; public class LayaUISample { protected var text:Text; protected var aaa:AAA; public function LayaUISample() { Laya.init(1540, 990); Laya.Stat....

来源: Laya_社区 发布时间: 20161026

1717. 老师,请问一下如何在js代码中,动态的创建一个按钮(或者图片、lable)并添加到一个box中? [ 65%]

...bel.text=' I am a  Label!' box.addChild(image); box.addChild(label); Laya.stage.addChild(box); 2017-04-21 1 3 分享 微博 QZONE 微信 zhang92tong 赞同来自: 太感谢老师了! 2017-04-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

来源: Laya_社区 发布时间: 20170421

1718. spine适配版微信开发者平台报错 [ 65%]

... (laya.core.js:22293)     at Timer._update (laya.core.js:22144)     at Stage._updateTimers (laya.core.js:17717)     at Stage.render (laya.core.js:17679)(env: Windows,mg,1.05.2110152; lib: 2.20.2) 附件 : --> 2021-12-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

来源: Laya_社区 发布时间: 20211207

1719. laya.ui.Panel_API3.0 [ 65%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize elasticEnabled filters globalRotation globalScaleX globalScaleY graphics gray hScrollBar hScrollBarSkin height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivot...

来源: Laya3.0_api 发布时间: 20231115

1720. 通过绘制纹理生成的图片,改变scale时会出现图片不绘制的情况 [ 65%]

...p.graphics.drawTexture(new Laya.Texture(b));             Laya.stage.addChild(sp);             let _picScale:number=1;             //每点一下就缩小0.05倍             Laya.stage.on(Laya.Event.MOUSE_DOWN,this,()=>{              ...

来源: Laya_社区 发布时间: 20200422