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

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

1221. LayaNative加速器环境html启动文件规范须知 [ 50%]

...式;在加速器里的判断依据可以这样写: var Music:String; If(window.conch){ Music = “wav”或“ogg” }else{ Music = “mp3” } 5、在加速器环境下html文件里不支持通过script代码或div节点创建canvas画布;   6、游戏里的方法命名别叫:gc,因为在...

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

1222. 着色器蓝图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

...est开关后,Shader通过alophatest的值来判断是否丢弃该像素 DiffuseColor 漫反射颜色(不产生光照的地方的颜色) SpecularColor 高光颜色(产生光照的地方的颜色) Shininess 表面光滑度 Gloss 表面粗糙度 Aplha 透明度,选择了TRANSPARENT渲染模...

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

1223. 发布app(android)后,按后退键显示有问题 [ 50%]

...。正常的应用是不需要调用此方法的。 private void Hook() { if(!isExit) { isExit = true; Toast.makeText(this, "在按一次退出程序", Toast.LENGTH_SHORT).show(); new Timer().schedule(new TimerTask() { @Override public void run() { // TODO Auto-generated method stub isExit = false; ...

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

1224. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 50%]

...件的 16065 行注释掉,注释后的代码如下: error(err, pos) { if (typeof err === 'string') err = { message: err }; if (pos) augmentCodeLocation(err, pos, curSource, id); err.id = id; err.hook = 'transform'; // return pluginContext.error(err); },该方法虽然可以解决 tslib 找不到...

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

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

...Physics.rayCast(this.ray,this.outHitInfo,5); //如果未有碰撞则返回 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); //播...

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

1226. 2.1.1版加了3D物理引擎库后创建3个scene3D就报错 [ 50%]

... set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 "). Build with -s ASSERTIONS=1 for more info.   我的项目中用到了3D物理库,因为UI上也需要显示3D模型,所...

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

1227. Tween循环动画 [ 50%]

...10 度之间来回摆动 tweenCircle = function (self) { var rotation = 0; if (self.rotation > 0) { rotation = -10; } else { rotation = 10; } Tween.to(self, { rotation: rotation, complete: Handler.create(this, this.tweenCircle, [self]), }, 2000, Ease.quadInOut); }

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

1228. 如何通过CSS设置编译好的 _layaflash.max.js 文件中的某个对象(元素)的样式 [ 50%]

....getElementById("myBtn"); // myBtn 为 AS3中 SimpleButton对象 if(plus){ btn.style.cursor = "pointer" } 通过 layaflash 编译时报没有 style 属性。请问:有其它方式可让按钮显示出手型光标吗?请指教!!!

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

1229. 用iframe内嵌网页及适配 [ 50%]

iframe内嵌网页及适配 Laya.init(720, 1280); String.prototype.format = function() { if (arguments.length == 0) { return this; } for (var str = this, index = 0; index < arguments.length; ++index) { str = str.replace("{" + index + "}", arguments[index]); } return str; }; var iframe = laya....

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

1230. 我竟然被射线检测这个小功能给难了一天了 [ 50%]

...PointToRay(new Laya.Vector2(Laya.stage.mouseX,Laya.stage.mouseY),this.ray) if(this.physics.rayCast(this.ray,this.hitInfo)){ console.log("检测到了") }     } 2019-06-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个...

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