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

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

81. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 79%]

...is.atlas','imgdebris/p1_slj.png',]; // this.loader.load(this.urls[0], Laya.Handler.create(this, this.onAssetloaded)); this.loader.load(this.urls,this.Handler.create(this,this.onAssetloaded),this.Handler.create(this, this.onLoading, null, false)); }, onAssetloaded : function(texture){ this.tl = new L...

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

82. LAYA js 1.7.12 Tween 使用时回调时 core报错 [ 79%]

...js包集成中,使用完全一样的代码,提示 Uncaught TypeError: handler.run is not a function at Tween.__proto.complete (laya.core.js:9423) 9423 :handler && handler.run(); 你们自己试试吧。。为啥要。&&run() 2017-11-11 添加评论 免费帖 --> 分享 微...

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

83. 在微信小游戏中使用BitmapFont会导致报错. [ 78%]

...0); //激活资源版本控制 Laya.ResourceVersion.enable("version.json", Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION);  function beginLoad(){     let timerFont = new Laya.BitmapFont();     timerFont.loadFont('res/timerfont.fnt', Laya.Handler.create(this, () =&gt...

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

84. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 78%]

...mport laya.display.Sprite; import laya.resource.Texture; import laya.utils.Handler; public class MaskDemo { private var Res:String; private var img:Sprite; public function MaskDemo() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路径 Res = "res/img/monkey1.p...

来源: Laya2.0_文档 发布时间: 20210714

85. ToolTip鼠标悬停的使用 [ 78%]

...n; import laya.ui.TipManager; import laya.utils.Browser; import laya.utils.Handler; import ui.TestTipsUI; public class ToolTipDemo { private var _testTip:TestTipsUI;//ui弹框(IDE发布),用于鼠标悬浮提示框 private var _tip:TipManager;//实例化TipManager public function ToolTipDemo()...

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

86. 为什么不能加载多个模型 [ 78%]

...er.create("LayaScene_layabox/Library/unity default resources-Quad.lm",Laya.Handler.create(this,this.onCreateComplete)); Laya.loader.create("LayaScene_layabox/Library/unity default resources-Capsule.lm",Laya.Handler.create(this,this.onCreateComplete)); private onCreateComplete():void { var mesh:Laya....

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

87. handler携带的参数在回调函数里面怎么获取? [ 78%]

handler携带的参数在回调函数里面怎么获取? handler携带的参数在回调函数里面怎么获取? 2018-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: Laya.loader.load(...

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

88. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 78%]

...ndroid) { //注意这里的加载 Laya.loader.load("res/layabox.ktx", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); } else { //注意这里的加载 Laya.Texture2D.load("res/layabox.jpg", Laya.Handler.create(null, function (tex: Laya.Texture2D) { mater...

来源: Laya2.0_文档 发布时间: 20210714

89. 关于资源加载的问题 [ 78%]

...;res/atlas/games/game_13/image.atlas"} ]; Laya.loader.load(loadArray, Handler.create(null, ()=>{ this.uiView = new SharkItOff(); Laya.stage.addChild(this.uiView); })); 先加载图集,图集加载完再new一个界面。但是界面里的图片都不显示 thekingreturn • 2018-03-27 20:4...

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

90. Handler 未定义 [ 78%]

Handler 未定义 请问这是什么原因? 之前IDE提示有新版本需要升级,升级得时候360有提示是病毒,是否因为未安装成功?   附件 : --> 2017-09-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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