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

大约有 1,869 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0044 秒)

1641. laya.utils.PerformancePlugin_API3.0 [ 50%]

...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

1642. Sprite3D-Sprite3D变换 [ 50%]

... 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

1643. 微信小游戏自定义震动效果 [ 50%]

...** * 震动时间 * @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

1644. 怎么集成导入mqtt.js到laya中 [ 50%]

... 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

1645. laya.utils.WeakObject_API3.0 [ 50%]

...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

1646. .part的文件怎么获取模板里配置的duration [ 50%]

.../**粒子持续时间(单位:秒)*/         public var duration:Number = 1; 你在ide 写一下点进去看源码就知道了 2018-03-03 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 138*****826 相关问题 2.0一不小心删...

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

1647. transform的旋转和移动是异步方法吗? [ 50%]

...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

1648. ZipFile类用readFile读取文件内容时,整个界面都会卡住 [ 50%]

...AppCache时,需要读取zip中文件的内容,此时执行readFile(id:number):ArrayBuffer;就会将界面卡住,直到执行zip.close()后界面才恢复正常。   示例代码: zip.forEach(function (id, name, dir, sz) { if (!dir) { var buf = zip.readFile(id);//执行这一步时界面就...

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

1649. IDE中自定义组件后,组件XML设置prop,在代码中如何获取(js) [ 50%]

... >>   <prop name="scaleTime" tips="缩放使用的时间" type="number" default="100" group="常用" /> >>   </ScaleButton> >>   </uiComp>   其中 如何在代码里获取scaleTime的值,谢谢 PS:尝试过直接用对象默认属性可以取到,prop...

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

1650. SoundManager的兼容性问题 [ 50%]

...'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