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

大约有 4,034 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0096 秒)

1101. 请问有人遇到oppo小游戏字体显示异常 [ 86%]

...改方案: 将 CharRender_Canvas 类的  set canvasWidth 方法的 ``` this.ctx.setTransform(1, 0, 0, 1, 0, 0); this.ctx.scale(this.lastScaleX, this.lastScaleY);   ``` 修改为 ``` this.ctx.setTransform(this.lastScaleX, 0, 0, this.lastScaleY, 0, 0); ```   2020-09-17 1 2 分享 微博 QZONE 微...

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

1102. 修复开放数据域组件WXOpenDataViewer鼠标不能拖动的问题 [ 86%]

...地方,转换成全局坐标             var p: Laya.Point = this.localToGlobal(new Laya.Point());             mat.translate(p.x, p.y);             var stage: Laya.Stage = Laya.stage;              mat.scale(stage._canvasTransform.getScaleX() * this....

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

1103. 获取的ui页面里下on事件无法触发 [ 86%]

... 类代码如下: var GameStartView = function () { GameStartView.super(this); this.Start.on(Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStartView", GameStartUI); 输出:Butt...

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

1104. 游戏铺满固定大小容器,火狐和谷歌正常,edge会有滚动条? [ 86%]

...享 微博 QZONE 微信 156*****215 赞同来自: Laya.timer.frameLoop(1,this,()=>{                if(this.lastClientWidth!=Laya.Browser.clientWidth){                     if(Laya.Browser.clientWidth>Laya.Browser.clientHeight){                  ...

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

1105. 动画状态脚本(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 86%]

... _text:Laya.Text; constructor() { super(); } get text():Laya.Text { return this._text; } set text(value) { this._text = value; } /** * 动画状态开始时执行。 */ onStateEnter() { console.log("动画开始播放了"); this._text.text = "动画状态:动画开始播放"; } /** * 动画状态...

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

1106. 升级2.0以后,部分浏览器的兼容性很差 [ 86%]

...ne { constructor() { super(); } createChildren() { super.createChildren(); this.loadScene("test/TestScene"); } } UC指这行报错,这个都是编译后的代码 addScore(value = 1) { this._score += value; this.scoreLbl.changeText("分数:" + this._score); if (this._control.c...

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

1107. Laya中textinput的监听事件的执行顺序是FOCUS=>MOUSE_DOWN=>CLICK,有没有比FOCUS还要先触发的监听 [ 86%]

...FOCUS=>MOUSE_DOWN=>CLICK,有没有比FOCUS还要先触发的监听 this.textinput_message.on(Laya.Event.CLICK,this,()=>{ console.log("CLICK>>>"); }) this.textinput_message.on(Laya.Event.MOUSE_DOWN,this,()=>{ console.log("MOUSE_DOWN>>>"); }) this.textinput_message.on(Lay...

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

1108. [LayaAir3]clickHandler只会执行一次,之后点击不再触发 laya.3.0.9 [ 86%]

...);                  let btn:Laya.Button = LayaUtil.GetChildByPath(this.owner, "CreatePanel/BtnCreate");                 btn.clickHandler = Laya.Handler.create(this, this.onClickCreate)                 this.drawGrid();     }      onClickCreate()     {         // ()...

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

1109. Dialog中编辑的动画如何控制? [ 86%]

...同来自: function TestUI() { var Event = laya.events.Event; TestUI.super(this); this.ani1.play(15);//play的第一个参数是从第几帧开始播放 Laya.stage.on(Laya.Event.CLICK,this,onClick); } Laya.class(TestUI, "TestUI", TestPageUI); function onClick() { this.ani1.stop();//停止播放 this...

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

1110. 一个修复Laya1.8.3中的粒子销毁时报错黑屏问题的思路 [ 86%]

...ver.beginFlush; Laya.RunDriver.beginFlush = function () { $beginFlush.call(this); let attrs = Laya.Buffer._enableAtributes; if (attrs) { attrs.forEach((buffer, index) => { if (buffer && buffer.deleted) { Laya.WebGL.mainContext.disableVertexAttribArray(index); attrs[index] = null; } }); wh...

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