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

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

631. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 42%]

...ss VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListene...

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

632. laya.ui.CheckBox_API3.0 [ 42%]

...th addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex getCo...

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

633. 插件开发说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 41%]

...ions", inspector: "Buttons", options : { buttons : [ { caption : "点我", event: "my_click" } ] } } ] } ]); this._panel.allowUndo = true; //根据需要设置 //如果不需要undo功能,也可以直接this._data = {}; this._data = IEditor.DataWatcher.watch({}); //inspect可以多次调用,将...

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

634. HTML文本 · LayaAir3.0文档 · LAYABOX [ 41%]

...k.layabox.com/'>LayaBox欢迎你的加入!</span>"; div.on(Laya.Event.LINK,this,(data:any)=>{ Laya.Browser.window.location.href=data; }); Laya.stage.addChild(div); 运行效果: 点击文字链接可以打开浏览器访问网址 3.6 实现html页面跳转 示例如下: var iHtml:H...

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

635. 3D粒子 · LayaAir3.4 · 引擎文档 · LAYABOX [ 40%]

... })); } //每次鼠标点下屏幕后,会创建一个特效 mouseDown(e: Event): void { var particle = Particle3D.Create(this.filePath); this.owner.addChild(particle); } //鼠标抬起后,会释放对象池 mouseUp(e: Event): void { Particle3D.ClearPool(this.filePath); } } Copyright ©Layabox 20...

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

636. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 40%]

... })); } //每次鼠标点下屏幕后,会创建一个特效 mouseDown(e: Event): void { var particle = Particle3D.Create(this.filePath); this.owner.addChild(particle); } //鼠标抬起后,会释放对象池 mouseUp(e: Event): void { Particle3D.ClearPool(this.filePath); } } Copyright ©Layabox 20...

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

637. SCALE_FIXED_WIDTH适配屏幕的问题 [ 38%]

...机制、时间和其他一些Timer相关的问题 graphics alpha 问题 event自定义事件的问题 问题状态 最新活动: 2018-12-14 12:04 浏览: 1969 关注: 3 人 boobo • 2018-12-16 13:34 是h5,微信浏览器 boobo • 2018-12-12 12:37 没有用噢,主要是竖屏与横屏直接切...

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

638. 【简单跑酷--JS版】---Lv.3 添加地板 [ 38%]

...(this.x + this.width) < this.maxRight){ this.isOutComplete = true; this.event(Floor.OUT_COMPLETE, this); }else if((this.x + this.width) < 0){ //判断整个floor是否不在屏幕里面了 如果不在了 移除当前floor Laya.timer.clear(this, this.onLoop); this.visible = false; this.event(F...

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

639. [LayaNative3]Laya3.28/9原生打包ISO视频播放闪退 [ 38%]

...VideoRuntimeBase {     onEnable(): void {         Laya.stage.on(Laya.Event.MOUSE_DOWN, () => {             //Laya.loader.load("resources/files/layaAir.mp4").then(() => {                 this.VideoNode.play(); //播放视频             //});         })     } } ...

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

640. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 37%]

...et template = new Laya.Templet();             template.on(Laya.Event.COMPLETE, this, function() {                 let skeleton = template.buildArmature(0);                 Laya.stage.addChild(skeleton);                 skeleton.pos(300, 300...

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