大约有 2,033 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0081 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
AS版本生成的js中出现了this.Buffer() 源代码:var voiceBase64:* = new Buffer(voice); js文件:new /*no*/ this.Buffer(voice); 我每次还需要手动去替换掉·· 2018-08-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20180801
...都存在: removeChildren(beginIndex = 0, endIndex = 0x7fffffff) { if (this._children && this._children.length > 0) { var childs = this._children; if (beginIndex === 0 && endIndex >= childs.length - 1) { var arr = childs; this._children = Node.ARRAY_EMPTY; } else { arr = chil...
来源: Laya_社区 发布时间: 20201103
...pt extends Laya.Script3D { constructor(){ super(); //用于表现的方法 this.showMsgFunc = null; } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg() { console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后...
来源: Laya2.0_文档 发布时间: 20210715
...raphics.drawCircle(0,0,50,'#FF0000'); sp.mask=mask; Laya.timer.frameLoop(1,this,function():void { mask.x++; sp.repaint(); });小提示: LayaAir下,Mask是添加到了显示对象内部,也就是说,LayaAir 下的Mask坐标是相对于被遮罩 对象的,而并非舞台。 c.精...
来源: Laya_社区 发布时间: 20170207
... txt.color = "#ffffff"; Laya.stage.addChild(txt); txt.on(Event.MOUSE_DOWN, this, startScrollText); } /* 开始滚动文本 */ private function startScrollText(e:Event):void { prevX = txt.mouseX; prevY = txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, scrollText); Laya.stage.on(Event.MOUSE_UP, this...
来源: Laya2.0_文档 发布时间: 20210715
...ial; Laya.loader.create("cj\cj-default001.lm",Laya.Handler.create(this,this.onCreateComplete)); function onCreateComplete() { var mesh = Laya.loader.getRes("cj\cj-default001.lm"); var meshSprite3D = new Laya.MeshSprite3D(mesh); this.scene.addChild(meshSprite3D); } //mode...
来源: Laya_社区 发布时间: 20180427
...:if(ProjectSetting.codeType==0){ imports+=" import "+lib+";\n"; }else if(this.projectSetting.codeType==1&&lib.lastIndexOf(".ts")==lib.length-3){ libName=lib.substring(lib.lastIndexOf("/")+1,lib.length); if(libName.lastIndexOf(".")>=0){ libName=libName.substring(0,libName.lastIndexOf("."...
来源: Laya_社区 发布时间: 20190531
...个位图字体教程的代码应该放在哪里,怎么引用,其中的this是指? 我自建了单独的文件,并在Main里import了它,输出看是undefined。 5.几处的路径不一致,它们的关系是? a.如图:把test_0.png名字改为test.png,保证跟fnt文件同名。...
来源: Laya_社区 发布时间: 20180919
... Laya.loader.create("model/role/1/model.lh", Laya.Handler.create(this, this.OnComplete)); private OnComplete():void { let sprite:Laya.Sprite3D = Laya.loader.getRes("model/role/1/model.lh"); this._scene.addChild(sprite); } 155*****924 • 2019-05-16 15:16 这样写应该没问题...
来源: Laya_社区 发布时间: 20190516
...,预加载时报错,就是这里: laya.core.js的7430行 if (this._pos_+2 > this._length)throw "getUint16 error - Out of bounds"; 但是,不使用预加载,就不报错,只是不知道什么时候真的加载完成,那个_template不再为null,我就可以调用play了。 ...
来源: Laya_社区 发布时间: 20180622