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

大约有 4,034 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0079 秒)

821. laya3D导入动画材质在安卓手机和电脑上显示正常,在苹果手机显示异常 [ 89%]

...w(); Laya.stage.frameRate = Laya.Stage.FRAME_FAST; //预加载所有资源 this.resource = [ "res/maze/img/demo/toolClock/Conventional/glow.lh", "res/maze/img/demo/Conventional/wang06.lh", "res/maze/img/demo/toolClock/Conventional/puzzleA.lh", "res/maze/img/demo/to...

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

822. 官方文档里的位图字体的制作与使用JS 跑不通 以及 文档的几个问题 [ 89%]

...个位图字体教程的代码应该放在哪里,怎么引用,其中的this是指? 我自建了单独的文件,并在Main里import了它,输出看是undefined。   5.几处的路径不一致,它们的关系是?  a.如图:把test_0.png名字改为test.png,保证跟fnt文件同名。...

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

823. 关于removeChildren、 destroy和destroyChildren的疑惑 [ 89%]

...ar SightBead = (function () { function sightBeadSprite() { SightBead.super(this); this.name = 'sightBead'; this.graphics.drawCircle(0,0,40,null,'#ff0000',1); this.graphics.drawLine(-45,0,45,0,'#ff0000',1); this.graphics.drawLine(0,45,0,-45,'#ff0000',1); this.alpha = 0; Laya.stage.addChild(this); // ...

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

824. 可以帮我测试一下吗? 使用mask的场景,放着就会出现记忆体用完的讯息? [ 89%]

...r extends ui.GameLayerUI { private infos : any; constructor () { super (); this.infos = { rotation : 0 }; Laya.timer.frameLoop(1,this,()=> { this.infos.rotation += 1; if (this.infos.rotation >= 360) this.infos.rotation -= 360; this.IM_TURNTABLE.rotation = this.infos.rotation; this.VIEW_TURNTAB...

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

825. 【BUG】加载的url中有错误url时,laya偶现加载complete不回调 [ 89%]

...onerror时没有重置customParse属性为false。 var res3DArr = [ { url: this.error_PATH }, { url: this.zombie_anim_path1 }, { url: this.zombie_anim_path2 }, { url: this.zombie_anim_path3 }, { url: this.zombie_anim_path4 }, { url: this.zombie_anim_path5 }, ]; Laya.loader.retryNum = 0; Laya.loader....

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

826. 发布微信小游戏后 this.preinitialize is not a function [ 89%]

发布微信小游戏后 this.preinitialize is not a function 在IDE里调试,一切正常,发布到微信小游戏后,报错this.preinitialize is not a function 2019-01-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

827. TypeError: this._childs is null [ 89%]

TypeError: this._childs is null 用了Laya.stage.destroyChildren();之后出错 TypeError: this._childs is null 看不懂啊! 救命啊!!!!!!   还有火狐提示 HTTP "Content-Type" 中的 "text/html" 不支持。媒体资源加载失败。 无法播放媒体。没有相应格式的...

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

828. 什么情况下 加载的图片没有显示 没有报错内存控制也没有内存超出 [ 89%]

...nvas模式 还是老问题此一体机浏览器不支持webgl。 也设了 this.autoRelease=true; this.autoReleaseMaxSize=1024 *1024 *10; atlasLimitWidth=64 atlasLimitHeight=64 另外我监控 __proto.addSize=function(add){ 这儿函数 发现add 有时候是负值 不知道是否正常,我修改...

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

829. 射线检测-选取物体 [ 89%]

...meshFilter.sharedMesh; capsule.name = "胶囊体"; Laya.timer.frameLoop(1, this, checkHit); var ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _outHitAllInfo = new Array(); function checkHit() { //从屏幕空间生成射线 point.elemen...

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

830. JS中关于按钮注册监听后在处理函数访问不到类成员变量的问题 [ 89%]

...按钮注册监听后在处理函数访问不到类成员变量的问题 this.btnLogin.on(Laya.Event.CLICK, null, this.OnLoginClick); LoginView.prototype.OnLoginClick= function() { this.dlg.setContent("暂时无法登录"); }; 解决方法式在第一行代码第二个参数一定要传this(被某...

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