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

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

51. dialog第一次可以正常调出,第二次无法正常popup出来 [ 77%]

...无法生效 比如 无法定位到LayaSample.js中的这个函数     function LoadResComplete() {         var loginView = new LoginView();         loginView.init();         Laya.stage.addChild(loginView);     } LoginView.js中的init函数     LoginView.prototype.init...

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

52. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 76%]

3Ddemo加载Unity导出场景报错resou._removeReference is not a function import { ui } from "./../ui/layaMaxUI";  /** * 本示例采用非脚本的方式实现,而使用继承页面基类,实现页面逻辑。在IDE里面设置场景的Runtime属性即可和场景进行关联 * 相比脚本...

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

53. 加载时间轴动画报错 [ 76%]

...i.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe));   function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); }   运行时报 TypeError:Cannot read property '_create' of null     at Animation._proto.timerLoop(file:///f:/......

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

54. 一个场景,两个线形碰撞体,出错 [ 76%]

...个版本修复,    chaincollider的  方法    override protected function getDef():* {             if (!_shape) {                 _shape = new window.box2d.b2ChainShape();                 _setShape(false);             }        ...

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

55. 3D模型旋转定位问题 [ 76%]

...l/build/warehouse1/warehouse1.lh", Laya.Handler.create(this, onComplete)); function onComplete() { //仓库原型 warehouse1 = Laya.Sprite3D.load("model/build/warehouse1/warehouse1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 90, 0), false, false); warehouse1.tra...

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

56. 分享:LayaAir下如何加载和使用.JSON文件! [ 76%]

...a.net.Loader; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("unpack.json"); var str:String...

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

57. 资源版本问题 [ 76%]

...sourceVersion.enable("version.json", Laya.Handler.create(this, beginLoad)) function beginLoad() { //加载LOADING资源 Laya.loader.load([{ url: "res/atlas/icon.atlas" }, { url: "res/atlas/human.atlas" }], Laya.Handler.create(this, progress, null, false), null, Laya.Loader.ATLAS) } function progress...

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

58. 淘宝创意互动分包指南(TypeScript-小游戏适配文档-淘宝创意互动) [ 76%]

...oPage2(): void { my.redirectTo({ url: "/subpackage1/page2/index", success: function () { console.log("success") }, fail: function (err) { console.log("2222", err) } }) } ``` 注意:在加载资源的时候,分包文件夹名称前也需要加“ / ” #### 2.2 资源分包 资源分包适合页...

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

59. 微信小游戏分包实战(TypeScript-小游戏适配文档-微信小游戏) [ 76%]

...adSubpackage({ name: 'stage1', // name 可以填 name 或者 root success: function(res) { // 分包加载成功后通过 success 回调 }, fail: function(res) { // 分包加载失败通过 fail 回调 } }) ``` 加载成功的同时,wx.loadSubpackage 会返回一个 [LoadSubpackageTask](https://de...

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

60. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 75%]

..., laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("onLoaded"); } 我们刷新页面看看有什么效果 如下图所示 我们看到 图片加载了 而且...

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