大约有 393 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0059 秒)
Laya_社区(221) Laya2.0_api(57) laya_api(53) Laya2.0_文档(24) Laya2.0_示例(14) Laya3.0_文档(13) Laya_示例(9) Laya3.0_api(2)
...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
...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
...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
...代码:** ```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
...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
...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
...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
...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
...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
...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