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

大约有 2,538 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0082 秒)

601. 怎么获取完全限定类名,就像as的getQualifiedClassName [ 76%]

...只限基于ActionScript的项目,基于ts的嗝屁  const a = new Laya.Event() Laya.__classmap['laya.events.Event'] == a.constructor //true   2017-08-10 0 0 分享 微博 QZONE 微信 宇智波 旋 赞同来自: /**返回指定对象的完全限定名 */ static getQualifiedClassName(value):stri...

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

602. 关于HttpRequest [ 76%]

... CommonUtils.urlEncode(obj); var hr = new Laya.HttpRequest(); hr.once(Laya.Event.PROGRESS, this, function (e) { console.log(e); }); hr.once(Laya.Event.COMPLETE, this, function () { console.log(hr.data); }); hr.once(Laya.Event.ERROR, this, function (e) { console.log(e); }); hr.send('http://stone.tt.b...

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

603. laya.d3.core.Camera_API3.0 [ 76%]

...Children addCommandBuffer addComponent addComponentInstance addLayer bubbleEvent callLater clearTimer clone contains convertScreenCoordToOrthographicCoord destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAn...

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

604. Chrome和layaAir调试,大部分点击事件没有反应了 [ 76%]

...是引擎的bug。 Chrome控制台有警告,描述:Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 但是好像之前也有,所以...

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

605. laya.ui.Clip [ 76%]

...| All Classes | Index | Frames No Frames ClipProperties | Methods | Events Packagelaya.uiClasspublic class ClipInheritanceClip Component Sprite Node EventDispatcher ObjectSubclasses FontClip Clip 类是位图切片动画。 Clip 可将一张图片,按横向分割数量 clipX 、竖向分...

来源: laya_api 发布时间: 20170929

606. 加载lh格式模型报错 [ 76%]

...file:///D:/LayaAirProjects/myFirstLaya/bin/libs/laya.d3.js:30899:17)   at EventHandler.runWith (file:///D:/LayaAirProjects/myFirstLaya/bin/libs/laya.core.js:999:38)   at Loader.event (file:///D:/LayaAirProjects/myFirstLaya/bin/libs/laya.core.js:1038:42)   at Loader.complete (file:///D:/LayaAirPro...

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

607. LayaAir引擎与原生Flash的差异文档说明! [ 76%]

...ask.graphics.drawCircle(0,0,50); mask.graphics.endFill(); sp.mask=mask; addEventListener(Event.ENTER_FRAME,function():void { mask.x++; mask.cacheAsBitmap=true; sp.cacheAsBitmap=true; }); LayaAir环境下: 1、静态遮罩  Laya.init(600,400) var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,20...

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

608. layacmd安装失败 [ 76%]

...e install.js` 5897 verbose stack Exit status 1 5897 verbose stack     at EventEmitter.<anonymous> (D:\SDK\node.js\node_modules\npm\node_modules\npm-lifecycle\index.js:280:16) 5897 verbose stack     at emitTwo (events.js:126:13) 5897 verbose stack     at EventEmitter.emit (events.js:214:7...

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

609. List翻页效果怎么实现 [ 76%]

... (index > 5) index = 5; this.setCurPage(index) } public onMouse(e: Laya.Event, index: number): void { if (e.type == Laya.Event.MOUSE_DOWN) { this.m_downValue = this.list_rule.scrollBar.value; } else if (e.type == Laya.Event.MOUSE_UP || e.type == Laya.Event.MOUSE_OUT) { if (this.m_downValue > -...

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

610. HTMLDivElement如何设置文本区域内可以上下拖动的效果 [ 76%]

...ixueying 赞同来自:  package { import laya.display.Sprite; import laya.events.Event; import laya.html.dom.HTMLDivElement; import laya.maths.Rectangle; import laya.webgl.WebGL; public class HelloLaya { private var html:HTMLDivElement; public function HelloLaya() { Laya.init(600, 600,WebGL); Laya....

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