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

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

251. 想绘制一个自适应得圆角矩形框,失败了,求解惑 [ 54%]

...); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["actTo",stageWidth*0.8,0,stageWidth*0.8,stageHeight*0.05,10], ["actTo",stageWidth*0.8,stageHeight*0.6,stageWidth*0.75,stageHeight*0.6,1...

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

252. Laya.loader.create 不会反馈失败状态跟描述不符合 [ 54%]

...oader.create(resource, Laya.Handler.create(this, (success:boolean) => { console.log("3d加载完毕:" + success); }),Laya.Handler.create(this, (progress: number) => { })); 这是个数组。。但是场景文件不存在,失败参数都是空的。。跟文档描述不符合 附件 : --> 201...

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

253. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 54%]

...]     if (json.type!=="Scene"){ if (url == "scene/Demo_Interiors.ls"){ console.log(data[0]); throw new Error("Scene: the .lh file root type must be Scene,please use other function to load this file."); } }            var innerResouMap=data[1];     Utils3D._createNodeByJson(this,jso...

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

254. Laya.Scene.open传递的param,要如何获取,注释说在onOpened中,如果拿到onOpened [ 54%]

...要打开的场景中的runtime脚本中写 onOpened(XXX: string): void { console.log(XXX); } 这样就可以取到 ,嗯 就是还没怎么试传1个以上的值 155*****831 • 2019-09-23 15:52 如果真的要传多个值得你可以定义到一个数组中,然后把数组传过去,可能行...

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

255. [LayaAir3]求问LayaAir3.x 3D粒子系统不会自动合批相关 [ 54%]

...S 是没有自动补全提示吗 web端打包发布后能不能自动删除console.log IDE通过.ui自动生成的ui代码报错 关于逻辑贞更新间隔机制、时间和其他一些Timer相关的问题 问题状态 最新活动: 2023-11-27 18:01 浏览: 530 关注: 3 人 1701056496用户 • 20...

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

256. laya2 物理引擎好多问题 [ 54%]

...i2.interval=100; ni2.autoPlay=false; ni2.wrapMode=0; ni2.play(0,false); // console.log('********');  Laya.timer.once(500,this,function(){ // Laya.Scene.load('start.json'); Laya.Scene.open('start.json'); })   2019-07-21 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关...

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

257. native 1.0.2 连不上wss [ 54%]

...cpet msg: " + e.data); }; ws.onerror = function(e) { alert("error: " + e); console.log(e) }; </script> </body> </html>   这是app设置的url所对应的html文件,在web端是能连上socket的,app里面就连不上 (简单起见这里直接使用原生websocket,使用la...

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

258. 按照范例写的碰撞一直检测不到 this.outHitInfo.distance [ 54%]

...有碰撞则返回 if(this.outHitInfo.distance < 0)speedX = speedZ = 0; console.log('hit'+ Laya.Physics.rayCast(this.ray,this.outHitInfo,5)); //更新角色位置 this.owner.transform.translate(new Laya.Vector3(speedX,0,speedZ),false); //播放行走动画   2018-01-18 添加评论 免费帖 -->...

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

259. 两个物体发生碰撞的时候,如何让他检测碰撞点的位置 [ 54%]

...      y: collider.owner.y - collider.radius * local.y     }     console.log(point); }   其中b是CircleCollider,如果b是BoxCollider,代码修改如下:     let point = {          x: collider.owner.x - collider.width * 0.5 * local.x,         y: collider.owner.y -...

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

260. laya教程 [ 54%]

...改config.json中sourceMap属性为true   打开main.ts onConfigLoaded() console.log('helloworld');   F9打断点 LAYA中按 F8(编译)  VSCODE 中按f5(运行)     Laya实战大纲,Laya引擎,Laya教程,小游戏开发,h5 laya实战大纲,laya引擎,laya教程,小游戏开发,h5  ...

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