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

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

191. 面板容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.panel.pos(100, 100); this.panel.size(200, 200); this.panel.scrollType = Laya.ScrollType.Both; //滚动类型:水平与垂直都滚动 this.panel.vScrollBarSkin = "atlas/comp/vscroll.png"; this.panel.hScrollBarSkin = "atl...

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

192. JS里面定义一个函数,无法使用Laya.Handler.creat回调 [ 69%]

...义? export default class LocalTxt{ constructor() { LocalTxt.Instance = this; } onTxtLoad(aText){ console.info("dfasd"); } initTxt(){ Laya.loader.load("res/localtxt.txt",Laya.Handler.create(this, onTxtLoad),null,Loader.TEXT); } } 2019-01-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

193. [LayaAirIDE3]3.3 新版ui 元素处于滚动区域内,localToGlobal坐标转换异常,没有加上滚动值 [ 69%]

...要使用parent去做转换,把代码下面这样也行: const pos = (this.owner as Laya.Sprite).localToGlobal(new Laya.Point(0, 0)); 2025-08-15 1 1 分享 微博 QZONE 微信 Recovery 赞同来自: ??? 2025-08-12 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该...

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

194. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 69%]

...ya.Skeleton> = [];  public static getInstance():DdzLandlordAni{ return this.instance(DdzLandlordAni); }  public constructor(){ super(); this.initTemplet(); }  public static destoryInstance(){ if(this.mInstance){ (<DdzLandlordAni>this.mInstance).destory(); this.mInstance = null; } }  pub...

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

195. sprite不能设置点击区域 [ 69%]

... sp.graphics.drawPie(0, 0, 300, 0, 90, "#00ffff"); sp.on(Laya.Event.CLICK, this, this.aa) sp.mouseEnabled = true; // 设置点击区域没有作用 var hitArea = new Laya.HitArea(); hitArea.unhit.drawPie(0, 0, 150, 0, 90, "#00ffff"); sp.hitArea = hitArea; 我想要实现的效果就是一个扇形...

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

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

...{ 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.addEventListener("loadedmet...

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

197. 微信小游戏,截屏和开放域不能共存 [ 68%]

...吗? 版本是layaair2.1.0beta,截屏接口使用的是 drawToCanvas(this.basePanel.width, this.basePanel.height, this.basePanel.x, this.basePanel.y).toBase64("image/png", 0.9, function(base64){,另外看到也有其他人遇到这个问题,但是没人解答   附件 : --> 2019-06-24 添...

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

198. video在安卓手机上,怎么设置同层播放,还有怎么设置隐藏控制播放按钮 [ 68%]

...deoElement.style.zIndex = Render.canvas.style.zIndex+1; videoElement.src = this.url; videoElement.controls = false;//不现实控制播放按钮 // videoElement.autoplay = "autoplay";//自动播放 // videoElement.poster = GoldConsts.imgUrl; //设置在视频播放之前所显示的图片的 URL。 ...

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

199. 范例里。已经预加载资源,但是调试里面无法显示出资源。 [ 68%]

...rl: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢

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

200. 描边Shader,使用了两个Pass [ 68%]

...Pass(outline_vs, outline_ps) outlineShader.addShaderPass(base_vs, base_ps) this.setShaderName("OutlineShader") this.getRenderState(0).cull = 1 } set diffuseTexture (value) { this._shaderValues.setTexture(OutlineMaterial.DIFFUSETEXTURE, value) } }   附件 : --> shaderBasic.zip 2018-09-25 添加评...

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