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

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

1. Main无法正常使用,找不到它的定义 [ 100%]

...的才是实现你想要的效果的解决方案 private var _itemHeight:Number;         private var _oldY:Number;         private function onMuseHandler(type:Event,index:int):void         {             trace("type:" + type.type + "ddd--" + _list.scrollBar.value + "---inde...

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

2. Laya.Tween.to 有没有监听值的变化的方法? [ 98%]

... 阿琴 • 2018-06-21 11:31 static to(target: any, props: any, duration: number, ease?: Function, complete?: Handler, delay?: number, coverBefore?: boolean, autoRecover?: boolean): Tween; 并没有这个参数

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

3. 3D中的Animator如何从指定的某一帧开始播放动画 [ 95%]

...断一个新的clip,播放这个新的clip animator.stop(); var percent:Number = animator.currentFrameTime / animator.getClip("Draw").duration(); //trace("currentFrameTime: " + animator.currentFrameTime + " endTime: " + animator.getClip("Draw").duration()); var totalAnimationClip:AnimationClip = a...

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

4. 问一下tween的一些参数怎么设置 [ 92%]

...果的次数和时间,即缓动效果的幅度。 static elasticOut(t: number, b: number, c: number, d: number, a?: number, p?: number): number; 我看这个是有参数可以控制的,但是在tween中怎么使用这些参数? cuixueying • 2016-09-22 22:10 /** * 以较快速度开始运动...

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

5. socket大型项目回调 [ 90%]

...-websocket'; private JS_WS_CLIENT_VERSION:string = '0.0.5'; private RES_OK:number = 200; private RES_FAIL:number = 500; private RES_OLD_CLIENT:number = 501; private socket:Laya.Socket = null; private callbacks:any = {}; private handlers:any = {}; // Map from request id to route private routeMap = {}...

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

6. 解决游戏最小化退到后台后浏览器会强制1秒执行一次ILaya.stage._loop() [ 84%]

...dArrayBuffer(4))             // also filters out NaN, non-number types, including empty strings, but allows bigints             const valid = ms > 0 && ms < Infinity              if (valid === false) {            ...

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

7. socket无法连接服务器 [ 81%]

socket无法连接服务器 客户端代码: let PORT: number = 8080;     let IP: string = "127.0.0.1"; export class NetSocket extends Laya.Socket{         private static _instance: NetSocket;         public static get instance(): NetSocket {             if (!NetSocket._instance) ...

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

8. hBox使用问题 [ 80%]

...dth/4) //Tween.to(ape, { x : i*(stageWidth/4) },1500,Ease.sineOut); var bl:Number=texture.width/texture.height ape.graphics.drawTexture(texture,0,0,stageWidth/4,stageWidth/4/bl); apesCtn.addChild(ape); } } 这种方法HBox布局不管用,是不是不能用graphics.drawTexture方法,如果用addC...

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

9. startDrag的使用问题 [ 79%]

...artDrag(area:Rectangle = null, hasInertia:Boolean = false, elasticDistance:Number = 0, elasticBackTime:int = 300, data:* = null, disableMouseEvent:Boolean = false, ratio:Number = 0.92):void {          2018-05-02 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...

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

10. 角色模型的材质列表切换后,不播放动作了 [ 78%]

...class CustomMaterial extends Laya.BaseMaterial { static DIFFUSETEXTURE_ID: number = 1; constructor() { super(); this.setShaderName("CustomShader"); } public getDiffuseTexture(): Laya.BaseTexture { return this._getTexture(CustomMaterial.DIFFUSETEXTURE_ID); } public setDiffuseTexture(value: Laya.BaseT...

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