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

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

1041. 我看到这段话后,我 [ 87%]

...    __getset(0,__proto,'dataSource',function(){         return this._dataSource;         },function(value){         this._dataSource=value;         for (var prop in this._dataSource){             if (this.hasOwnProperty(prop)&& !((typeof (this[...

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

1042. ANDORID 切后台 怎么监听啊 [ 87%]

...啊 ANDORID 切后台 怎么监听啊?  Laya.stage.on(Laya.Event.BLUR, this, this._on_blur); Laya.stage.on(Laya.Event.FOCUS, this, this._on_focus);这个没有用啊。 2018-05-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

1043. 文本-下划线 [ 87%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } createTexts() { this.createText('left', null, 100, 10); this.createText('center', "#00BFFF", 155, 150); this.createText('right', "#FF7F50", 210, 290); } createText(align, underlineColor, x, y) { const Te...

来源: Laya2.0_示例 发布时间: 20251219

1044. 3d克隆报错,Uncaught AnimatorControllerLayer:this stat's name has exist. [ 87%]

3d克隆报错,Uncaught AnimatorControllerLayer:this stat's name has exist. 我在3d模型动画里面,分割了动画片段。当我克隆的时候,就会报错。说我那个动画片段名称已存在。 附件 : --> 2020-05-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

1045. Android小游戏加载不打包的图会卡资源 [ 87%]

Android小游戏加载不打包的图会卡资源 this.assets.push({ url: "lobby/zhujiemian_ditiao.png", type: Laya.Loader.IMAGE });   Laya.loader.load(this.assets, Laya.Handler.create(this, this.onAssetsLoaded) , Laya.Handler.create(this, this.progress, [], false));   在加载的时候ios的微...

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

1046. DirectionLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 87%]

...常用来模拟固定方向的太阳光。 ```typescript //创建方向光 this.directionLight = this.scene.addChild(new Laya.DirectionLight()); //设置灯光颜色 this.directionLight.color = new Laya.Vector3(1, 1, 1); //设置灯光方向 var mat = this.directionLight.transform.worldMatrix; mat.s...

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

1047. Sprite3D-Sprite3D克隆 [ 87%]

...../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = Laya.Sprite3D.instantiate(la...

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

1048. t._addReference is not a function [ 87%]

...解决了,供参考: Laya.loader.load(chapterBG, Laya.Handler.create(this, this.onBGLoaded, [chapterBG])/* , Laya.Handler.create(this, this.onBGLoadProgress) */); 第三个参数打开在某些条件下会出t._addReference is not a function 可能是加载进度回调的时候跑到纹理回调...

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

1049. 文本-位图字体 [ 87%]

...apFont(); bitmapFont.loadFont("../../res/bitmapFont/test.fnt", new Handler(this, onFontLoaded, [bitmapFont])); } function onFontLoaded(bitmapFont) { bitmapFont.setSpaceWidth(10); Text.registerBitmapFont(fontName, bitmapFont); createText(fontName); } function createText(font) { var txt = new Text(); ...

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

1050. bind函数的作用 [ 87%]

...rotobuf.load(["proto/game.proto", "proto/user.proto"], this.onProtoLoaded.bind(this)); a15715740412 • 2018-01-30 16:31 /** * For a given function, creates a bound function that has the same body as the original function. * The this object of the bound function is associated wit...

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