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

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

841. 关于缓动函数from的一些问题记录 [ 70%]

...rText,{y:100},3,Laya .Ease.backOut,new Handler(this,this.onEaseComplete),1,null,true); function onEaseComplete(){ console.log("ease complete"); Laya.stage.addChild(letterText); } ``` 以上的代码主要存在三个问题: 1. from()中的duration和delay都是以毫秒为单位,所以3,1想表示3...

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

842. laya.d3.core.light.PointLight_API3.0 [ 70%]

...的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.clearTimer Defined in laya/display/Node.ts:609 清理定时器。功能同Laya.ti...

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

843. Laya.Scene.open 中的complete参数如何取得场景实例? [ 70%]

...例? 我看了Laya.Scene.open中的参数: complete:Handler (default = null) — 打开完成回调,返回场景实例(可选)   那么我要怎么从这个handler里边得到打开场景实例呢: 以下是我写的typescript代码: class Main {     onConfigLoaded(): void {     ...

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

844. 圆环不跟随 sprite 一起缩放? [ 70%]

...tSp = new Laya.Sprite(); this.firstSp.graphics.drawRect(0, -100, 200, 200, null, "#ffffff"); this.firstSp.graphics.drawLine(0, 0, 100, 100, "#ffffff", 5); this.firstSp.graphics.drawCircle(100, 100, 20, null, "ffffff"); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.MouseWheel);  this._rootSp.hitA...

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

845. layabox 程序 访问index.html?key='aaa' key参数启动类怎么获取? [ 70%]

...;|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) { return (r[2]); } else { return null; } } 2018-06-14 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 185*****207 相关问题 请问有没有方法能够获...

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

846. LayaCloud项目发布小游戏问题 [ 70%]

...在关联问题(虽然我在IDE已经关联渠道),导致userInfo为null,也就是没有了serverId,如果需要配置域名连接layaCloud,那么请官方告诉我域名是什么。 附件 : --> JoyTouchJoy.zip 2018-12-08 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有...

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

847. laya.d3.core.light.SpotLight_API3.0 [ 70%]

...的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.clearTimer Defined in laya/display/Node.ts:609 清理定时器。功能同Laya.ti...

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

848. 有没有js版本Tween clear相关的demo?? [ 70%]

....leftToRightTween1 = Laya.Tween.to(this.spFetch, { rotation: -170 }, 3000, null, Laya.Handler.create(this, this.leftToRight2)) } leftToRight2(){ Laya.Tween.clear(this.leftToRightTween2); this.leftToRightTween2 = Laya.Tween.to(this.spFetch, { rotation: -10 }, 3000,null, Laya.Handler.create(this, this...

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

849. Laya.loader.create 进度回调函数执行两次 [ 70%]

...er.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); }   输出结果: 0.19186599730944645 0.5251993306427798 1 0.5002049180327869 0.5626793032786885 0.6251536885...

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

850. 鼠标交互-键盘交互 [ 70%]

..., this, onKeyUp); } /**键盘按下处理*/ private function onKeyDown(e:*=null):void { keyDownList[e["keyCode"]] = true; } /**键盘抬起处理*/ private function onKeyUp(e:*=null):void { delete keyDownList[e["keyCode"]]; } private function keyboardInspector(e:*=null):void { var numKeyDown:int = k...

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