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

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

81. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 66%]

...回调方法绘制图片并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),150,50); //添加到舞台 L...

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

82. laya.gltf.glTFResource_API3.0 [ 66%]

...Dispatcher registerExtra registerExtra(context: string, extraName: string, handler: Handler): void Defined in laya/gltf/glTFResource.ts:247 注册 extra 处理函数 Parameters context: string extraName: string handler: Handler Returns void unregisterExtra unregisterExtra(context: string, extraName:...

来源: Laya3.0_api 发布时间: 20231102

83. 动画实例在调用含有名字参数的时候获取不到边界 [ 66%]

... i of this.playerUnit ){ i.loadAtlas("./character/m1.atlas",Laya.Handler.create(this,this.playerUnitLoaded)); } for(let i of this.enemyUnit){ i.loadAtlas("./character/m1.atlas",Laya.Handler.create(this,this.enemyUnitLoaded)); } } playerUnitLoaded(){ for(let i in this.playerUnit){...

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

84. Laya.Tween.to 用这个做缓动动效, 变动scale值有问题, [ 66%]

....tw1 = Laya.Tween.to(this.load_1, { scaleX:0.01 }, 250, Laya.Ease.quadOut, Handler.create(this, this.tw1Complete1)); 只要是设置scale值最终变为0就有问题,, var style=this.getStyle(); 这个获取的style是空的,,这个问题不是必现的,,,,, 附件 : --> 2018-03-15...

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

85. 同步龙骨插槽动画方案 [ 65%]

...Laya.Templet;     public mArmature: Laya.Skeleton     private _handlerLaya.Handler;      constructor(url: string, handlerLaya.Handler, aniMode: number = 0) {         this._handler = handler;         this.mFactory = new Laya.Templet();        ...

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

86. 场景管理 · LayaAir3.0文档 · LAYABOX [ 62%]

...open(url: string, closeOther: boolean = true, param: any = null, complete: Handler = null, progress: Handler = null): Promise<Scene> { Scene.showLoadingPage(); return Scene.load(url, Handler.create(null, this._onSceneLoaded, [closeOther, complete, param]), progress); } (图2-1) 例如创...

来源: Laya3.0_文档 发布时间: 20230717

87. load 跨域请求 [ 62%]

load 跨域请求 Laya.loader.load(resUrl+'bin/res/atlas/dice.json', Laya.Handler .create(this, this.init), null, Laya.Loader.ATLAS); 这个json提示跨域了,怎么解决好 2017-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

88. 播放一首歌曲指定从一个时间点开始播放 无效。 [ 62%]

...同来自: soundchannel=SoundManager.playMusic(SongsData.getRrlSound(), 1, Handler.create(this, onCompleteHd), SongsData.starttime); 2019-04-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Yangcy 相关问题 两个对象new了一个...

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

89. 如何获取动画的长度? [ 62%]

...使用加载完回调还是获取不到   tl.loadAnimation("s.ani", Laya.Handler.create(this, () => { var bounds = tl.getGraphicBounds(); console.log(bounds.width) }, [tl]));   还是0 2018-01-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录...

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

90. 属性无法获取 [ 62%]

... joy.callBackFun = onMyRole.bind(this);   第二个: joy.callBackFun = Handler.create(this,onMyRole); 2017-06-11 1 0 分享 微博 QZONE 微信 170*****650 赞同来自: 已解决 非常感谢 2017-06-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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