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

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

1091. 视频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...行一次 onAwake(): void { // 鼠标点击触发播放 Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { Laya.loader.load("resources/layaAir.mp4").then(() => { this.video.play(); //播放视频 }); }) } } 如果是在LayaAir IDE中运行,则VideoNode无需通过事件触发播放。但是在Chro...

来源: Laya3.0_文档 发布时间: 20251010

1092. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 60%]

...MLHttpRequest`和`XMLHttpRequestUpload`都继承了同一个`XMLHttpRequestEventTarget`接口所以upload也具有上述事件。 ​ ## 在laya中怎么使用 laya中用HttpRequest对XMLHttpRequest进行了简单的封装,HttpRequest继承的是EventDispatcher,具有事件派发的功能。我...

来源: Laya2.0_文档 发布时间: 20210714

1093. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 60%]

...MLHttpRequest`和`XMLHttpRequestUpload`都继承了同一个`XMLHttpRequestEventTarget`接口所以upload也具有上述事件。 ​ ## 在laya中怎么使用 laya中用HttpRequest对XMLHttpRequest进行了简单的封装,HttpRequest继承的是EventDispatcher,具有事件派发的功能。我...

来源: Laya2.0_文档 发布时间: 20210715

1094. laya.ui.Box [ 60%]

...| All Classes | Index | Frames No Frames BoxProperties | Methods | Events Packagelaya.uiClasspublic class BoxInheritanceBox Component Sprite Node EventDispatcher ObjectImplements IBoxSubclasses LayoutBox, List, Panel, Tree, UIGroup, View, ViewStack Box 类是一个控件容器类。 Public P...

来源: laya_api 发布时间: 20170929

1095. 用LayaAir引擎解析Tiled Map地图(TypeScript-2D进阶篇(TS)-扩展模块) [ 60%]

...ale(0,0); //将原地图放大3倍 this.tMap.scale = 3; Laya.stage.on(Laya.Event.RESIZE,this,this.resize); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.resize(); } /** * 移动地图视口 */ private mouseMove():void{ var mo...

来源: Laya2.0_文档 发布时间: 20210715

1096. laya.media.SoundNode [ 60%]

...l Classes | Index | Frames No Frames SoundNodeProperties | Methods | Events Packagelaya.mediaClasspublic class SoundNodeInheritanceSoundNode Sprite Node EventDispatcher ObjectPublic Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Numbe...

来源: laya_api 发布时间: 20170422

1097. 动画不显示 [ 60%]

...import laya.display.Stage;     import laya.ui.Label;     import laya.events.Event;     import laya.utils.Browser;     import laya.utils.Timer;     import laya.display.Sprite;     import laya.net.Loader;     import laya.ui.TextArea;     import laya.resource.Texture;     imp...

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

1098. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 60%]

...s or display objects without image resources), specifies whether the mouse events penetrate this object's collision detection. `true` means the object is penetrable, `false` means it is not penetrable. * When penetrable, the engine will no longer detect this object and will recursively check its chi...

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

1099. 解决跨域相关! [ 60%]

...连不上, 看代码-> this.hr=new HttpRequest(); this.hr.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Laya.Event.ERROR, this, this.onHttpRequestError); this.hr.send("http://www.baidu.com", null, '...

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

1100. laya.html.dom.HTMLIframeElement_API3.0 [ 60%]

...ns customRender destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_height get_scaleX get_scaleY get_transform get...

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