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

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

2231. 射线检测-射线检测 [ 53%]

...lm" ], Laya.Handler.create(this, this.onComplete)); } private onComplete():void{ //添加精灵到场景 this.sprite3d1 = this.scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/NvWu/NvWu-shenminvwu.lm"))) as Laya.MeshSprite3D; this.sprite3d2 = this.scene.addChild(ne...

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

2232. ui list 里面的元素不能点击两次 [ 53%]

...=new Handler(this,onMouse); private function onMouse(e:Event,index:Number):void { // TODO Auto Generated method stub if(e.type==Event.CLICK) { trace("click"); } } 2016-12-02 3 2 分享 微博 QZONE 微信 sunkehappy 赞同来自: @cuixueying 感谢提供方案,不过我还是想多说一句,sele...

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

2233. loadLib("libs/laya.device.js"); native上会随机宕 [ 53%]

..._proto.destroy=function(detroyChildren){         (detroyChildren===void 0)&& (detroyChildren=true);         _super.prototype.destroy.call(this,detroyChildren);         // native会崩溃         // this.videoElement.removeEventListener("abort",Video.onAbort); ...

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

2234. 3D骨骼动画卡在某一帧不再执行动作 [ 53%]

...为1.7.17    以下为核心代码:   function playAction(act:string):void {     var animationclip:Laya.AnimationClip = this.animator.getClip(action);     if(animationclip){        this.animator.play(act);    } }   现象描述:角色正在挂机放技能打怪,当挂机时间...

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

2235. socket连续发送消息导致无法写出 [ 53%]

...发送消息导致无法写出 public function send(cmd:int , req:Object):void { var json:String = JSON.stringify(req); var data:ByteArray = new ByteArray(); data.writeUTFBytes(json); data.compress(); var obj:Object = {}; var headByte:ByteArray = new ByteArray(); writeHeader(obj, headByte); _socket....

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

2236. 用drawPie绘制的sprite用于遮罩mask,会出现错乱。 [ 53%]

...urves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 问题状态 最新活动: 2020-06-23 16:09 浏览: 1555 关注: 3 人 username_zmf • 2017-03-28 11:25 遇到了同样的问题啊,用的最新版本的laya 185*****307 • 2017-06-28 18:04 ...

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

2237. 连续读取多个本地json文件 [ 53%]

连续读取多个本地json文件 onAwake(): void { console.log("读数据"); Laya.loader.load("Json/shopLevel.json", Laya.Handler.create(this, this.shopJsonLoaded), null, Laya.Loader.JSON); Laya.loader.load("Json/menu.json", Laya.Handler.create(this, this.menuJsonLoaded), null, Laya.Loader.JSON);...

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

2238. 运动刚体(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 53%]

...matic = true; ...... //在场景上添加的loop事件 private onKeyDown():void { Laya.KeyBoardManager.hasKeyDown(87) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, -0.2));//W Laya.KeyBoardManager.hasKeyDown(83) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, 0...

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

2239. 萌新求问classUtils具体是做什么用的? [ 53%]

...19-01-03 10:07 就是做个了映射regClass(className:String, classDef:*):void 使用的时候getInstance(className:String):* [static] 根据名称创建 Class 实例。就行了!我就这么使用了一下方便根据自己起的名字自己获取对象调用

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

2240. 3D物理系统 · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...略若干代码 */ /**增加圆锥形刚体碰撞器 */ private addCone(): void { //生成随机值半径和高 let raidius = Math.random() * 0.2 + 0.2; let height = Math.random() * 0.5 + 0.8; //创建圆锥形3D模型节点对象 let cone = new Laya.Sprite3D; let coneMesh = cone.addComponent(Laya.M...

来源: Laya3.0_文档 发布时间: 20251010