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

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

251. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

...platform.com/manifests/vM7nH0Kl.m3u8'); hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED,function():void{ video.play(); }); } plyr.setup(video); } } new LayaUISample; 编译运行代码,发现网页已经可以播放视频了。开发者可能注意到这里我们初始化引擎的时候...

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

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

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

253. 背景音乐来回切换报错 [ 50%]

...mainSound:Laya.SoundChannel = null;         this.btn_sound.on(Laya.Event.CLICK,this,function(){             dreamsSound = null;             if(mainSound == null){                 Laya.loader.load("res/main.mp3",Laya.Handler.create(this,function(){   ...

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

254. Clip属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 49%]

...代码:** ```javascript package { import laya.display.Stage; import laya.events.Event; import laya.ui.Button; import laya.ui.Clip; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_Clip { /***控制器按钮资源***/ private var buttonSkin:String = "../../....

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

255. 模型的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之模型和网格) [ 49%]

...dex = 0; //.............按钮点击事件 监听 changeMeshButton.on(Laya.Event.CLICK, this, function(){ index++; if (index % 5 === 1 ){ //切换mesh sphere.meshFilter.sharedMesh = box; } else if (index % 5 === 2){ //切换mesh sphere.meshFilter.sharedMesh = capsule; } else if(index % 5 === 3){ //...

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

256. 模型的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之模型和网格) [ 49%]

...dex = 0; //.............按钮点击事件 监听 changeMeshButton.on(Laya.Event.CLICK, this, function(){ index++; if (index % 5 === 1 ){ //切换mesh sphere.meshFilter.sharedMesh = box; } else if (index % 5 === 2){ //切换mesh sphere.meshFilter.sharedMesh = capsule; } else if(index % 5 === 3){ //...

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

257. 物理引擎,刚体施加力效果错误,有人帮忙看下吗 [ 49%]

...t(Rigidbody3D) as Rigidbody3D; }));   //施加作用力或冲量 btn_a.on(Event.CLICK,this, function():void{ _rb.applyImpulse(new Vector3(0, 0, -2000)); })     附件 : --> 3D_DEMO_190402精简.zip 2019-04-17 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

258. 我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? [ 49%]

...t; Here is DlgNote2"); this.closeEffect = null; this.closeBtn.on(Laya.Event.CLICK, this, this.toClose); //this.show(); } b的关闭方法: toClose():void{ //Laya.Scene.open("datiPage.scene"); this.close(); } a和b都是独立的ts类, export default class a extends ui.a {……} ...

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

259. 模型的功能介绍(ActionScript-3D基础(AS3)-LayaAir3D之模型和网格) [ 48%]

...ndex:int = 0; //.............按钮点击事件 监听 changeMeshButton.on(Event.CLICK, this, function():void{ index++; if (index % 5 === 1 ){ //切换mesh sphere.meshFilter.sharedMesh = box; } else if (index % 5 === 2){ //切换mesh sphere.meshFilter.sharedMesh = capsule; } else if(index % 5 === 3)...

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

260. sprite做的按钮点击无反应? [ 47%]

...F", "center"); //dialog_mc.addChild(btn); Laya.stage.addChild(btn); btn.on(Event.CLICK, this, function(){ alert("点击"); }); 点击btn并未弹出alert,我也设置了btn的size,这是为什么? 2017-01-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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