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

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

321. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 73%]

.../激活资源版本控制 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION);  function beginLoad(){     Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(null, onLoaded)); }*/  function updateItem(cell, index) { ...

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

322. 3D网格添加刚体后设置欧拉角出现位置错误 [ 73%]

...         Laya.Texture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) {             this.mat1.albedoTexture = tex;         }));         //平面加载         let plane = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlan...

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

323. 加载-销毁Texture使用的图片资源 [ 73%]

... = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMo...

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

324. 计时器-延迟调用 [ 73%]

... = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.st...

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

325. Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 [ 73%]

...接 提交 3 个回复 zhpr613 赞同来自: cuixueying import laya.utils.Handler 是否忘记导包了,我用的as3,导包之后是没有问题的。 2017-05-10 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: Tween.to(sp,{x:400},1000,null,Handler.create(this,onTweeed)) onTween就是你...

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

326. 导出的3D资源加载报错 [ 73%]

...cene.Scene;     import laya.d3.math.Vector3;     import laya.utils.Handler;          import laya.display.Stage;     import laya.events.Event;     import laya.utils.Stat;          public class LayaSample {                  private var _stateMachine:Stat...

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

327. swf在layaairts里播放的问题,播放不了,swf在群文件star.swf [ 72%]

...入口 module laya {     import Loader = Laya.Loader;     import Handler = Laya.Handler;     export class Loader_MultipleType {         private ROBOT_DATA_PATH: string = "res/swf/star.swf"; private ROBOT_DATA_PATHS: string = "res/swf/star.json";         private ROBOT_TEXT...

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

328. list方法onSelect失效 [ 72%]

...List.selectEnable = true; this.imgList.array = listArr; this.imgList.renderHandler = new Laya.Handler(this, this.onRender); this.imgList.selectHandler = new Laya.Handler(this, this.onSelect); } onSelect(index) { this.reqImage.skin = listArr[index].img.skin; if (defaultImgs[this.reqImage.skin]) { thi...

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

329. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 72%]

...ctor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMouse) } onOpened(param: any) { sup...

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

330. dialog的lock属性没出现 [ 72%]

....ui.Button; import laya.ui.Dialog; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class DialogCenterClose { private const DIALOG_WIDTH:int = 220; private const DIALOG_HEIGHT:int = 275; private const CLOSE_BTN_WIDTH:int = 43; private const CLOSE_BTN_PADDING:int = 5; ...

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