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

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

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

242. 背景音乐来回切换报错 [ 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

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

...代码:** ```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

244. 模型的功能介绍(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

245. 模型的功能介绍(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

246. 物理引擎,刚体施加力效果错误,有人帮忙看下吗 [ 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

247. 我在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

248. 模型的功能介绍(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

249. sprite做的按钮点击无反应? [ 48%]

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

250. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 47%]

...tils.GuideLayer.addChild(this.guideContainer); this.guideContainer.on(Laya.Event.CLICK, this, this.nextStep); this.mouseEnabled = false; var maskArea: Laya.Sprite = new Laya.Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.nam...

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