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

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

1301. 【官网代码】加载dom音频报错,怎么回事? [ 83%]

...ontext.createAnalyser();analyser.fftSize = 256;Laya.stage.once(Event.CLICK,this,clickHandler); }private function clickHandler(e:Object):void{var http:HttpRequest = new HttpRequest();http.on(Event.COMPLETE,this,completeHandler);http.send("489.mp3","","get",Loader.BUFFER);}private function completeHa...

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

1302. 1.7的接口消失 [ 83%]

1.7的接口消失 // ZmyTestManager.Ani.on(Laya.Event.COMPLETE, this, this.OnCurrentAnimationCompleted);//循环动画完成播放单次循环 // ZmyTestManager.Ani.on(Laya.Event.STOPPED, this, this.OnCurrentAnimationStopped);//非循环动画停止播放 这个接口在2.0后就没有了 文档...

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

1303. Error: 代码包大小为 5533 kb,上限为 4096 kb,请删除文件后重试? [ 83%]

...in { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { console.log("render"); var l = [ 0, 0, 0, -(Laya.Browser.height >&...

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

1304. laya.utils.Tween [ 83%]

...属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。  duration:int — 花费的时间,单位毫秒。  ease:Function (default = null) — 缓动类型,默认为匀速运动。  complete:Handler (default = null) ...

来源: laya_api 发布时间: 20170929

1305. animation动画对象 无法增加鼠标事件 [ 83%]

...sprit对象 就能正常 。 部分代码如下,动画能正常播放。 this.role = new Laya.Animation(); this.role.on(Laya.Event.MOUSE_DOWN, this, this.onDrag); 2018-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

1306. 预加载结束之后还是报lose skin [ 83%]

...dRes():void{ Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onAssetLoaded(texture:Laya.Texture){ console...

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

1307. 寻路导航示例中添加Laya.PathFind组件报异常 [ 83%]

...下: //获取可行走区域模型 var meshSprite3D: Laya.MeshSprite3D = this.scene.getChildByName('Scenes').getChildByName('HeightMap') as Laya.MeshSprite3D; //使可行走区域模型隐藏 meshSprite3D.active = false; var heightMap: Laya.Texture2D = Laya.Loader.getRes("../../res/threeDimen/scen...

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

1308. [LayaAir2]Laya.loader.create 字节跳动苹果抖音扫码调用出现卡死现象 [ 83%]

...e("res/Scene/Conventional/Model.lh",             Laya.Handler.create(this, function () {                 GameManager.models = Laya.loader.getRes("res/Scene/Conventional/Model.lh");                 this.refreshProgressBar(1);                 this.destroy();         ...

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

1309. 限制区域拖动效果,为什么会无法限制呢? [ 83%]

...bGL; var Handler = Laya.Handler  function GolfMainUI() { GolfMainUI.super(this)  var dragRegion; showDragRegion(); this.golfBall.x = Laya.stage.width / 2; this.golfBall.y = Laya.stage.height / 2; this.golfBall.on(Event.MOUSE_DOWN, this, onStartDrag)  function showDragRegion() { //拖动限制区...

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

1310. 对接上架字节跳动小游戏技术指南(TypeScript-小游戏适配文档-字节跳动小游戏) [ 83%]

...rivate _videoPath: String = ""; constructor() { GameRecorderMgr.instance = this; //判断是否已初始化录屏对象 if (!this._recorder) { //判断是否为字节小游戏环境 if (Browser.onTTMiniGame) { //初始化录屏对象 this._recorder = tt.getGameRecorderManager(); } } } static get ins...

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