大约有 1,869 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0044 秒)
Laya_社区(616) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(70) Laya2.0_示例(68)
...meters path: string Returns void Static endSample endSample(path: string): number Defined in laya/utils/Performance.ts:36 Parameters path: string Returns number Static expoertFile expoertFile(path: string): any Defined in laya/utils/Performance.ts:43 Parameters path: string Returns any Static setPer...
来源: Laya3.0_api 发布时间: 20231102
... 1, 0); private var _scale:Vector3 = new Vector3(); private var scaleDelta:Number = 0; private var scaleValue:Number = 0; public function Sprite3DTransform() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); scene = Laya.stage...
来源: Laya_示例 发布时间: 20260106
...** * 震动时间 * @param time 毫秒数 */ function vibrate(time: number) { let count = time / 15; let index = 0; let obj = { count: count, index: index }; Laya.timer.loop(16, obj, function () { wx.vibrateShort(); ...
来源: Laya_社区 发布时间: 20190401
... port, client): void { //初始化 this.client = new Paho.MQTT.Client(url, Number(port), client); // set callback handlers //连接消失 收到消息 this.client.onConnectionLost = this.onConnectionLost; this.client.onMessageArrived = this.onMessageArrived; // connect the client this.client.connect...
来源: Laya_社区 发布时间: 20180903
...ls/WeakObject.ts:17 全局WeakObject单例 Static delInterval delInterval: number = 10 * 60 * 1000 Defined in laya/utils/WeakObject.ts:15 如果不支持WeakMap,则多少时间清理一次缓存,默认10分钟清理一次 Static supportWeakMap supportWeakMap: boolean = false Defined in laya/util...
来源: Laya3.0_api 发布时间: 20231115
.../**粒子持续时间(单位:秒)*/ public var duration:Number = 1; 你在ide 写一下点进去看源码就知道了 2018-03-03 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 138*****826 相关问题 2.0一不小心删...
来源: Laya_社区 发布时间: 20180303
...nsform.rotate(new Vector3(Math.PI/2*3,0,0)); var temp:Number = width; width = height; height = temp; // 将锚点移回zho中心 cube.transform.pivot = new Vector3( cube.transform.pivot.x + 0, ...
来源: Laya_社区 发布时间: 20190427
...AppCache时,需要读取zip中文件的内容,此时执行readFile(id:number):ArrayBuffer;就会将界面卡住,直到执行zip.close()后界面才恢复正常。 示例代码: zip.forEach(function (id, name, dir, sz) { if (!dir) { var buf = zip.readFile(id);//执行这一步时界面就...
来源: Laya_社区 发布时间: 20181228
... >> <prop name="scaleTime" tips="缩放使用的时间" type="number" default="100" group="常用" /> >> </ScaleButton> >> </uiComp> 其中 如何在代码里获取scaleTime的值,谢谢 PS:尝试过直接用对象默认属性可以取到,prop...
来源: Laya_社区 发布时间: 20180411
...'setTargetAtTime' on 'AudioParam': Time constant must be a finite positive number: 0","channel":"error","stack":{"hash":"7d3c8a0d876bf167157fe044b73f4d88","error":"Error\n at Function.i.error \n at e.playSound\n at e.onRandBtnDown\n at e.runWith\n at i.event \n at t.e.s...
来源: Laya_社区 发布时间: 20180902