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

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

1. laya.utils.TimeLine_API3.0 [ 100%]

....ts:397 得到总帧数。 Returns number Methods addLabel addLabel(label: string, offset: number): TimeLine Defined in laya/utils/TimeLine.ts:122 在时间队列中加入一个标签。 Parameters label: string 标签名称。 offset: number 标签相对于上个动画的偏移时间(单位:毫...

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

2. laya.utils.TimeLine [ 99%]

... Methods Show Inherited Public Methods MethodDefined By  addLabel(label:String, offset:Number):TimeLine 在时间队列中加入一个标签。 TimeLine  destroy():void 彻底销毁此对象。 TimeLine event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  from(target:*,...

来源: laya_api 发布时间: 20170929

3. laya.utils.TimeLine [ 99%]

... Methods Show Inherited Public Methods MethodDefined By  addLabel(label:String, offset:Number):TimeLine 在时间队列中加入一个标签。 TimeLine  destroy():void 彻底销毁此对象。 TimeLine event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  from(target:*,...

来源: Laya2.0_api 发布时间: 20190513

4. ts加密md5码封装 [ 98%]

...):Md5 { return this._inst ||(this._inst = new Md5()); } public get_md5(str:string):string { return this.md5(str); } split(target: string | any[], step: number, markString: boolean = typeof target === "string") { if (typeof target === "string") target = target.split(""); let result: any[] = target.ma...

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

5. TimeLine.addLabel(label:String, offset:Number):TimeLine 亲测! 方法中第二个参数offset无效 [ 93%]

TimeLine.addLabel(label:String, offset:Number):TimeLine 亲测! 方法中第二个参数offset无效 如题,TimeLinde的addLabel方法的第二个参数offset没有实际效果! 1.addLabel方法中的第二个参数 offset 是什么意思 2.to方法中的 offset 又是什么意思,二者...

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

6. 为什么字符串不能连接? [ 90%]

为什么字符串不能连接? private getRandomColor():String { let arr:Array<String>=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"]; let str:String="#"; for(let i:number=0;i<6;i++){ let index:number=arr.length*Math.random(); str+=arr[index];//在IDE里面这句报...

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

7. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 90%]

...ient extends Laya.Script { /** @prop {name:text, tips:"显示文本", type:String, default:"hello world"}*/ public text: string = "hello world"; /** @prop {name:color, tips:"字符串类型示例", type:String, default:"#0000ff"}*/ public color: string = "#0000ff"; /** @prop {name:layoutType, tips:"...

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

8. laya.d3.webxr.core.WebXRSessionManager_API3.0 [ 89%]

...ager.ts:21 XRReferenceSpace TODO Static EVENT_FRAME_LOOP EVENT_FRAME_LOOP: string = "xrFrameLoop" Defined in laya/d3/WebXR/core/WebXRSessionManager.ts:11 Static EVENT_MANAGER_END EVENT_MANAGER_END: string = "xrManagerDestory" Defined in laya/d3/WebXR/core/WebXRSessionManager.ts:10 Accessors currentF...

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

9. laya.d3.core.Transform3D_API3.0 [ 86%]

...界矩阵是否需要更新。 Returns boolean Methods event event(type: string, data?: any): boolean Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如...

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

10. socket大型项目回调 [ 86%]

...a{ export class Pomelo{ static DEBUG:boolean = true; static EVENT_IO_ERROR:string = "io-error"; static EVENT_CLOSE:string = "close"; static EVENT_KICK:string = "onKick"; static EVENT_HEART_BEAT_TIMEOUT:string = 'heartbeat timeout'; private JS_WS_CLIENT_TYPE:string = 'js-websocket'; private JS_WS_CLI...

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