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

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

2871. 小白求助,关于时间轴动画如何设置播放一次后消失? [ 55%]

...s/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { var tl = new Laya.Animation(); tl.loadAnimation("democesi.ani"); Laya.stage.addChild(tl); tl.play(); tl.pos(302,650); } 2018-01-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

2872. skydome可以替换贴图吗? [ 55%]

...enderer;         skymat.mesh = SkyDome.instance;         var material: SkyPanoramicMaterial = new SkyPanoramicMaterial();         Texture2D.load("res/jfb.jpg", Handler.create(null, function (tex: Texture2D) {             material.panoramicTexture = t...

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

2873. "Cannot read property 'addChild' of undefined" [ 55%]

...transform's property instead layaair 2.2beta ts 项目 两个bug 定义的 var 变量 undefined 并且 debugPanel不能使用 播放音效时报错Failed to set the 'buffer' property on 'AudioBufferSourceNode'的问题 Property 'BoxMesh' does not exist on type 'typeof Laya' 问题状态 最新活动...

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

2874. lineStyle()没有清除描边效果 [ 55%]

...ineStyle()的参数会清除描边效果,但LAYA是默认为1像素描边var s:Shape = new Shape(); s.graphics.lineStyle(4); s.graphics.beginFill(0xff0000); s.graphics.drawCircle(100, 100, 70); s.graphics.endFill(); s.graphics.lineStyle();//flash中不加参数是清除描边效果 s.graphics.begi...

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

2875. dispone和destory的区别 [ 55%]

...问题 用二的幂次方图集和非二的幂次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 在初始化时候使用canvas 或者WebGL 两种模式对使用引擎有什么区别? Laya的Scene和View什么区别? Image和Sp...

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

2876. Laya有什么详细完整一点的教程吗 [ 55%]

...例凹多边形的问题 Laya mac版的IDE 是没测试就上线了吗? var 与 name 的详细区别是什么? 成都雨墨游戏 求 laya 程序开发人员 Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个小时后才...

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

2877. 项目中引入的playerglobal.swc和引擎libs\下的有什么区别吗 [ 55%]

...matterjs物理引擎鼠标问题 2.1.1.1引擎微信小游戏掉帧严重 var 与 name 的详细区别是什么? Laya native1.0.7, 引擎1.7.14beta,多行文本不换行 laya2.0引入第三方库失败 as3 ,LayaAir下调试matter.js物理引擎出错。 LayaAir2.61 测试版 物理引擎bug 百...

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

2878. WebGL 绘制图形报错 [ 55%]

...GLContext2D的fillRect报错 代码如下: Laya.init(1136, 640, WebGL ); var mask :Sprite = new Sprite(); mask.graphics.save(); mask.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height, 0xff0000 ); mask.graphics.restore(); mask.x = 0; mask.y = 0; Laya.stage.addChild( mask ); 麻烦看下...

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

2879. 改变位置后,点击区域不生效了 [ 55%]

...; public class MoveTest { public function MoveTest() { Laya.init(600,600); var sp:Sprite = new Sprite(); sp.autoSize=true; sp.graphics.drawRect(0,0,100,100,"#ff0000"); sp.on(Event.CLICK,this,onClick); Laya.stage.addChild(sp); } private function onClick(event:Event):void{ Render._mainCanvas.source.st...

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

2880. UI 控件多次调用 RESIZE 回调问题 [ 55%]

UI 控件多次调用 RESIZE 回调问题 var a = new Laya.Box(); a.left = a.top = a.right = a.bottom = 0; a.on(Laya.Event.RESIZE, this, () => { console.warn(" resize ===== "); }) Laya.stage.addChild(a); Laya.timer.loop(1000, this, () => { a.addChild(new Laya.Box()); }); --------------- 测...

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