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

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

1851. Laya2下ts继承报错! [ 46%]

...箭头指的是类结构的调用): 1.FAction_Stand--》2.FAction_Default--》3.FightRoleController--》4.FAction_SkillDefault--》2.FAction_Default   解析循环为啥会出现问题: 1.源码的写法是,先用一个缓存对象E将你要加载的类结构存起来,当你调用某个...

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

1852. 请问laya的List除了用selectBox,还有什么方式可以自定义列表项选中状态下的表现吗 [ 46%]

...成你的字体即可!private function setUp():void { for(var i:int=0;i<10;i++) { data.push({img:"res/ui/"+i+".png",isSelect:false}); } my_list.array=data; my_list.selectEnable=true; my_list.selectHandler=new Handler(this,onSlectHandler); my_list.renderHandler=new Handler(this,onRenderHandler);...

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

1853. 图集打包后使用Texture不显示啊 [ 46%]

...常显示 文件路径都正常 } private init(): void { var assets: Array<any> = ; assets.push({ url: "res/start.json", type: Loader.ATLAS}); Laya.loader.load(assets, Handler.create(this, this.onComplete)); } private onComplete(): void { } } new GameMain();   ================================...

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

1854. 安卓概率性闪退 [ 46%]

.../com.mylafe.game.handsomecat-1/lib/arm64/liblayaair.so (laya::imp_JS2CFunc<void (laya::JSAudio::*)()>::call(v8::FunctionCallbackInfo<v8::Value> const&)+364) [arm64-v8a] 7 #06 pc 00000000009b6d1c /data/app/com.mylafe.game.handsomecat-1/lib/arm64/liblayaair.so (v8::internal::FunctionC...

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

1855. phasorSpriter3D 无法使用 [ 46%]

...r3D(); var _color = new Laya.Vector4(1, 0, 0, 1); var _corners = new Array<Laya.Vector3>(); _corners[0] = new Laya.Vector3(); _corners[1] = new Laya.Vector3(); _corners[2] = new Laya.Vector3(); _corners[3] = new Laya.Vector3(); _corners[4] = new Laya.Vector3(); _corners[5] = new Laya.Vector3()...

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

1856. 手机调试时http请求错误,返回Request failed Status:0 [ 46%]

...atHandlerCall(this,()=>{ this.connect(handleOk,handleFail); })) }), LocalTxt.getText("请求失败")+":"+e); } }); LogUtil.info(this.urlString,this.methodString,this.responseType,this.dataAny); hr.send(this.urlString, this.dataAny, this.methodString, this.responseType,this.headers); 2019-03-08 ...

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

1857. MovieClip报错 [ 46%]

...gin.game_plugin_init(3); 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 本地调试加载本地图片都报错 IDE通过.ui自动生成的ui代码报错 问题状态 最新活动: 2...

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

1858. 我用laya.websocket通信 二进制数据, 服务器对二进制数据进行解析,解析出来不是预期,请问我哪里写错了? 代码如下 [ 46%]

...b, 20, str.length);             for (var i=0, strLen=str.length*2; i<strLen; i++) {                context = str.charCodeAt(i);             }             console.log("copy end");             this.socket.send(b);             console.log("send end");      ...

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

1859. matter中有没有类似于unity中的OnCollision碰撞检测函数呀,用js怎么写 [ 46%]

...了..");  var home = _gamePage._mainPage._playPage;  for(var i = 0; i < event.pairs.length; i++) {  var pair = event.pairs[i];  if(!(pair.bodyA.label === 'gun' || pair.bodyB.label == "gun")) continue;  var other;  if (pair.bodyA.label === 'gun') { other = pair.bodyB; } else { other = pair.b...

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

1860. 3D场景里面怎么画线条 [ 46%]

...  this.mainScene.addChild(pl);         for (let i = 1; i < wayList.length; i++) {             pl.addLine(wayList[i - 1], wayList[i], Laya.Color.RED, Laya.Color.RED);         } 2019-11-19 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...

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