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

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

271. Touch接口缺少stageX,stageY [ 87%]

...指旋转(多点触控)”有这样的代码: private onMouseDown(e: Event): void {             var touches: Array<any> = e.touches;             if (touches && touches.length == 2) {                 this.preRadian = Math.atan2(                     to...

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

272. laya.gltf.glTFResource_API3.0 [ 87%]

...ce _setCPUMemory _setCreateURL _setGPUMemory addDep addDeps create destroy event hasListener isCreateFromURL off offAll offAllCaller on once registerExtra unregisterExtra destroyUnusedResources Constructors constructor new glTFResource(): glTFResource Overrides Prefab.constructor Defined in laya/glt...

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

273. 屏幕适配-屏幕适配 [ 87%]

...ar Sprite = Laya.Sprite; var Stage = Laya.Stage; var Text = Laya.Text; var Event = Laya.Event; var Image = Laya.Image; var WebGL = Laya.WebGL; //所有适配模式 var modes = ["noscale", "exactfit", "showall", "noborder", "full", "fixedwidth", "fixedheight"]; //当前适配模式索引 var index = ...

来源: Laya_示例 发布时间: 20240930

274. Panel控件滑动区域不正常的问题 [ 87%]

...//... this.setContentHitArea(); }另外需要在image和clip控件的 this.event(/*laya.events.Event.LOADED*/"loaded"); 之后加上 this.event(/*laya.events.Event.RESIZE*/"resize"); 这是为了修复在异步加载图片的时候,加载完图片,panel控件并没有重置点击区域的问题...

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

275. laya.device.media.HtmlVideo_API3.0 [ 87%]

...ference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getVideo hasListener isCreateFromURL off offAll offAllCaller on once setSource create destroyUnusedResources Constructors constructor new HtmlVideo(): HtmlVideo Overrides Bitmap.__constructor Defined in laya/device/medi...

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

276. Cannot read property 'offCanplay' of null [ 87%]

...地方,用到,在laya.wxmini.js onCanPlay() { this.loaded = true; this.event(Laya.Event.COMPLETE); this._sound.offCanplay(null); } 估计是因为网络比较满的情况,在文件下载完毕之后,sound对象已经被销毁了,所以自己加了一个判断。 onCanPlay() { this.loaded = t...

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

277. laya.spine.SpineTemplet_API3.0 [ 87%]

... _parse _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getAniNameByIndex getSkinIndexByName getTexture hasListener isCreateFromURL off offAll offAllCaller on once destroyUnusedResources Constructors constructor new SpineTemplet(): SpineTemplet Overrides Resource.__construct...

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

278. laya.events.KeyLocation [ 87%]

...l Classes | Index | Frames No Frames KeyLocationConstants Packagelaya.eventsClasspublic class KeyLocationInheritanceKeyLocation Object KeyLocation 类包含表示在键盘或类似键盘的输入设备上按键位置的常量。 KeyLocation 常数用在键盘事件对象的 keyLocation 属性...

来源: laya_api 发布时间: 20170929

279. laya.events.KeyLocation [ 87%]

...l Classes | Index | Frames No Frames KeyLocationConstants Packagelaya.eventsClasspublic class KeyLocationInheritanceKeyLocation Object KeyLocation 类包含表示在键盘或类似键盘的输入设备上按键位置的常量。 KeyLocation 常数用在键盘事件对象的 keyLocation 属性...

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

280. 循环添加一组按钮事件无法正常使用 [ 87%]

...          Laya.stage.addChild(b);                 b.on(Event.MOUSE_DOWN, this, mouseHandler);                 b.on(Event.MOUSE_MOVE, this, mouseHandler);                 b.on(Event.MOUSE_UP, this, mouseHandler);                 trace("addEvent")...

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