大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...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
...=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
..._proto.destroy=function(detroyChildren){ (detroyChildren===void 0)&& (detroyChildren=true); _super.prototype.destroy.call(this,detroyChildren); // native会崩溃 // this.videoElement.removeEventListener("abort",Video.onAbort); ...
来源: Laya_社区 发布时间: 20181207
...为1.7.17 以下为核心代码: function playAction(act:string):void { var animationclip:Laya.AnimationClip = this.animator.getClip(action); if(animationclip){ this.animator.play(act); } } 现象描述:角色正在挂机放技能打怪,当挂机时间...
来源: Laya_社区 发布时间: 20180828
...发送消息导致无法写出 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
...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
连续读取多个本地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
...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
...19-01-03 10:07 就是做个了映射regClass(className:String, classDef:*):void 使用的时候getInstance(className:String):* [static] 根据名称创建 Class 实例。就行了!我就这么使用了一下方便根据自己起的名字自己获取对象调用
来源: Laya_社区 发布时间: 20190101
...略若干代码 */ /**增加圆锥形刚体碰撞器 */ 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