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

大约有 2,033 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0081 秒)

531. AS版本生成的js中出现了this.Buffer() [ 83%]

AS版本生成的js中出现了this.Buffer() 源代码:var voiceBase64:* = new Buffer(voice); js文件:new /*no*/ this.Buffer(voice);   我每次还需要手动去替换掉·· 2018-08-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

532. Node.prototype.removeChildren移除计数有问题 [ 83%]

...都存在: 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

533. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 83%]

...pt extends Laya.Script3D { constructor(){ super(); //用于表现的方法 this.showMsgFunc = null; } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg() { console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后...

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

534. LayaAir引擎与原生Flash的差异文档说明! [ 83%]

...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

535. 超出文本区域的处理&滚动文本(ActionScript-LayaAir基础篇(AS3)-文本) [ 83%]

... 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

536. 加载不了模型 [ 83%]

...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

537. 【Laya2.1BUG】 给view设置runtime后,类型是any [ 83%]

...: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

538. 官方文档里的位图字体的制作与使用JS 跑不通 以及 文档的几个问题 [ 83%]

...个位图字体教程的代码应该放在哪里,怎么引用,其中的this是指? 我自建了单独的文件,并在Main里import了它,输出看是undefined。   5.几处的路径不一致,它们的关系是?  a.如图:把test_0.png名字改为test.png,保证跟fnt文件同名。...

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

539. 用Unity插件导出的模型渲染报错 [ 83%]

... 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

540. [临时解决]bug?加载sk问题 [ 83%]

...,预加载时报错,就是这里: laya.core.js的7430行    if (this._pos_+2 > this._length)throw "getUint16 error - Out of bounds"; 但是,不使用预加载,就不报错,只是不知道什么时候真的加载完成,那个_template不再为null,我就可以调用play了。 ...

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