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

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

1451. scaleMode bug [ 47%]

...览: 751 关注: 2 人 smallsow • 2018-03-16 14:53 SCALE_FIXED_WIDTH : String = fixedwidth [static] 应用保持设计宽度不变,高度根据屏幕比缩放,stage的宽度等于设计高度,高度根据屏幕比率大小而变化 1、设计宽高: ​ 在项目代码中项目代码中初...

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

1452. 我用laya.websocket通信 二进制数据, 服务器对二进制数据进行解析,解析出来不是预期,请问我哪里写错了? 代码如下 [ 47%]

...来不是预期,请问我哪里写错了? 代码如下 var str = new String("大家好,这是websocket通信!");             console.log("str.length*2:" + str.length*2);             var b = new ArrayBuffer(20 + str.length*2);             var dv = new DataView(b, 0);     ...

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

1453. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 47%]

...Texture import Handler = Laya.Handler export class MaskDemo { private Res: string; private img: Laya.Image; constructor() { //Laya.init(400, 640, Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" Laya.Stat.show() //资源路径 this.Res = "test.png"; this.img = new Laya.Image(); th...

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

1454. 如何把加载好的二进制数据转成Texture? [ 47%]

...b.append(fragment); blob = bb.getBlob("image/png"); } } var url: string = URL.createObjectURL(blob) var htmlImg: Laya.HTMLImage = Laya.HTMLImage.create(url);//这里创建HTMLImage 这里要用HTMLImage.create; if (onload != null) { htmlImg.onload = onload; } return htmlImg; } InfinityX ...

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

1455. replaceSlotSkinName的参数问题 [ 46%]

...laceSlotSkinByIndex 是没法代替replaceSlotSkinName,我的纹理全是string,当玩家点换上某个装备时,我不清楚该装备的索引是几,也就没法展示。 daohu • 2016-12-28 13:01 https://github.com/EsotericSof ... on.ts 官方的run-time,单槽换纹理方法在406列 ...

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

1456. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 46%]

...t = new Browser.window.Blob([byte.buffer], { type: "image/png" }); var url:String = Browser.window.URL.createObjectURL(blob);//创建一个url对象; ////我们先用第一种方式显示图片到舞台; var sp:Sprite = new Sprite(); sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 }...

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

1457. httpRequest send返回Request failed Status:0 [ 46%]

...= function (URL, id, data) { // private completeHandler(data: Object, URL: string, id: number): void { //加载完成返回的data是arraybuffer; //......这里处理我们加密的图片数据,假设我们的图片加密数据是在图片的前面写入了四个字节的数据 //......解密逻...

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

1458. 鼠标交互-鼠标交互 [ 46%]

...s.appendText("\n鼠标滚轮滚动"); break; } } private appendText(value: String): void { this.txt.text += value; this.txt.scrollY = this.txt.maxScrollY; } /**添加提示文本*/ private createLogger(): void { this.txt = new Text(); this.txt.overflow = Text.SCROLL; this.txt.text = "请把鼠标移...

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

1459. [LayaAirIDE3]Laya.loader.on(Event.ERROR, this, this.onError) 无法侦听到加载资源失败 [ 46%]

...ole.log("加载进度: " + progress);     }      private onError(err: string): void     {         console.log("加载失败: " + err);     }       运行后得到的结果是这样的,没有加载失败输出   附件 : --> Laya3ErrorTest.rar 2024-07-05 添加评论 免费帖 -->...

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

1460. 游戏引导 原来使用 blendMode = "destination-out"; 现在怎么用? [ 46%]

...*指定要使用的混合模式。目前只支持"lighter"。*/ blendMode: string; 2018-07-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 直接用就可以,只不过没正式发布...

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