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

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

661. Laya的Dialog上如果有按钮 我希望点击到按钮或者其他可以相应的控件 不会触发拖动效果 [ 75%]

...rag:boolean) { this.m_CanDrag = canDrag; if(this.m_CanDrag) { this.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } else { this.off(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } }  onMouseDown(e: Laya.Event) { // console.log(e.currentTarget, e.target); if(e.target == this) { this.startDrag(...

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

662. 建议:Laya.init(width, height)设定后可以动态调整 [ 75%]

...ber=500; var h:Number=400; Laya.init(w,h); 2/请为你的舞台监听Event.RESIZE事件,再Event.Resize下通过Browser.window.width和Browrowser.window.height获取屏幕宽高,将获取之后的宽高赋值给w和h即可! 2017-02-09 0 4 分享 微博 QZONE 微信 ohkei - as3、as2、h5...

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

663. 脚本的事件(TypeScript-3D基础(TS)-LayaAir3D的脚本使用) [ 75%]

...nMouseOut():void {} /** * 键盘按下时执行 */ public onKeyDown(e:Laya.Event):void {} /** * 键盘产生一个字符时执行 */ public onKeyPress(e:Laya.Event):void {} /** * 键盘抬起时执行 */ public onKeyUp(e:Laya.Event):void {} /** * 每帧更新时执行 */ public onUpdate():void {} /*...

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

664. laya.d3.component.Script3D [ 75%]

...方法为虚方法,使用时重写覆盖即可 Script3D  onKeyDown(e:Event):void 键盘按下时执行 此方法为虚方法,使用时重写覆盖即可 Script3D  onKeyPress(e:Event):void 键盘产生一个字符时执行 此方法为虚方法,使用时重写覆盖即可 Script3D  onKeyU...

来源: Laya2.0_api 发布时间: 20190513

665. 版本管理swf找同名的Json文件发现找不到 [ 75%]

...;             if (!data){                 this.event(/*laya.events.Event.ERROR*/"error","file not find");                 return;             }             // console.log("this['_atlasPath']---->",this['_atlasPath']);      ...

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

666. Native下http请求,Error事件中的error对象错误码全都是404 [ 75%]

...不应该会有这个问题才是的 比如说这个代码: this.hr.once(Event.COMPLETE, this, onHrCompleteHandler); this.hr.once(Event.ERROR , this ,onHrErrorHandler); this.hr.send($url, $data, $method, $responseType, $headers); private function onHrCompleteHandler():void { if(this.completeHandle...

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

667. UNITY3D导出模型加载错误 [ 75%]

...core.js:12339) at Loader.Laya3D._onHierarchylhLoaded (laya.d3.js:16030) at EventHandler.__proto.runWith (laya.core.js:687) at Loader.__proto.event (laya.core.js:465) at Loader.__proto.complete (laya.core.js:12141) at Loader.__proto.onLoaded (laya.core.js:12130) at EventHandler.__proto.runWith (laya....

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

668. laya.d3.core.light.PointLight_API3.0 [ 75%]

...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on on...

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

669. 灯光-点光 [ 75%]

...res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 75, 110); }); var _position = new Laya.Vector3(); ...

来源: Laya_示例 发布时间: 20251209

670. Invalid character: '`' Stack:[native code]异常 [ 75%]

...[];                 }                 this.event(/*laya.events.Event.PROGRESS*/"progress",0.3+1 / toloadPics.length *0.6);                 return this._loadImage(toloadPics.pop());   2019-02-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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