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

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

851. 屏幕适配-缩放-No Scale [ 89%]

...aya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } private updateRectPo...

来源: Laya_示例 发布时间: 20250225

852. 屏幕适配-缩放-No Border [ 89%]

...ya.stage.scaleMode = Stage.SCALE_NOBORDER; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } private updateRectPo...

来源: Laya_示例 发布时间: 20250225

853. HtmlDivElement限制文本宽度无效? [ 89%]

HtmlDivElement限制文本宽度无效? this.labaContent = new Laya.HTMLDivElement(); this.labaContent.style.fontSize = 22; this.labaContent.style.width=100; this.labaContent.style.wordWrap=false; this.labaContent.x = 60; this.labaContent.y = 5; 为什么还是不行呢?请问 我的文本是...

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

854. HTMLDivElement怎么限制输入字数 [ 89%]

...: 2017-09-14 10:13 浏览: 728 关注: 2 人 dear_H • 2017-09-14 15:23 this.labaContent = new Laya.HTMLDivElement(); this.labaContent.style.fontSize = 22; this.labaContent.style.width=100; this.labaContent.style.wordWrap=false; this.labaContent.x = 60; this.labaContent.y = 5; 为什么还是不行...

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

855. 关于protobuf反序化的问题,求大神解答~~~ [ 89%]

...ed string uid = 1; required string token = 2; } js的代码: var proto = this.ProtoBuf.loadProtoFile("user_login.proto"); var Build = proto.build("user_login_pack"); var login = new Build(); login.uid = '100001'; login.token = "xxxxx"; var buffer = login.toArrayBuffer() this.socket.send(buffer); ...

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

856. 排行榜渲染时,提示 this.bitmap.activeResource is not a function。 [ 89%]

排行榜渲染时,提示 this.bitmap.activeResource is not a function。 渲染排行榜时,报this.bitmap.activeResource is not a function 的提示。然后开放域的数据在主域中是能正常拿到的,就是渲染不出来。请问哪位大神知道这是什么原因呢?有没有...

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

857. dialog.removeSelf is not a function [ 89%]

dialog.removeSelf is not a function (一个界面)this.ui = new ui.common.PlaneGameInfoDialogUI;。。。(关闭按钮)this.ui.ibtn_close.on(Laya.Event.CLICK,this,this.ui.close);。。。(点击之后)Uncaught TypeError: dialog.removeSelf is not a function....求助大神谢谢啦~~~ 20...

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

858. 关于 this.destroy(true); [ 89%]

关于 this.destroy(true); 这个调用是否会把 当前类的所有子对象和自己删除 然后也会清除里面的各种监听事件么?原理大概是怎么样的? 2017-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

859. viewport 的用法 [ 89%]

...Laya.Rectangle;   function layaSlot(info){       layaSlot.__super.call(this);       this.size(200,200);       this.graphics.drawRect(0,0,200,200,'#123456');       var viewPort = new Rectangle(0,0,200,200);             this.viewport = viewPort;       var ccc = new Sprite();   ...

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

860. 屏幕适配-缩放-Show All [ 89%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } private updateRectPo...

来源: Laya_示例 发布时间: 20250225