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

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

321. 路径显示会添加DrawCall,每增加一条路径都会添加,有什么办法降DrawCall [ 39%]

...; } } private function TestScrollImage():Image{ var img:Image = new Image("comp/image.png"); img.scrollRect = new Rectangle(0,0,100,100); return img; } private function SetPathArr(ar:Array,path:Sprite):void{ var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<len;i...

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

322. 射线形状检测shapeCastAll返回的检测结果只第一次有效 [ 39%]

...提示“再次点击后退键退出游戏”,如果去掉这个提示 comp下的button.png第一次点击进入另一个界面,再在这个界面下点击时点击事件不生效? 碰撞检测 和 sprite问题【js】 初次加载场景正确,返回后只加载第一个场景 viewportPointT...

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

323. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 39%]

...代码如下: var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = funct...

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

324. 输入文本组件 · LayaAir3.0文档 · LAYABOX [ 37%]

...this.txtin.overflow = "scroll"; //文本溢出 // this.txtin.skin = "atlas/comp/textinput.png"; //皮肤 this.txtin.bgColor = "#19a4f1"; //背景颜色 this.txtin.borderColor = "#f6ff03" //边框颜色 this.txtin.editable = true; //可编辑状态 // this.txtin.type = "password"; //输入框类型 /...

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

325. 通用发布 · LayaAir3.0文档 · LAYABOX [ 36%]

...g”。 例如:现在我们将图3-5中原来的小图 img_head2.png 和 comp 目录下的 image.png 在项目中通过图集的方式显示出来,示例代码如下: let resArr: Array<any> = [ { url: "resources/atlas/Atlas.atlas", type: Laya.Loader.ATLAS }, { url: "resources/atlas/Atlas...

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

326. 微信小游戏利用开放域好友关系链做排行榜 [ 36%]

...  private beginLoad():void{         Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.onLoaded));     }      private onLoaded(): void {         console.log("onLoaded ......");         GameBootstrap.wxPostMessage({             cmd:1,  ...

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

327. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 35%]

... ```JavaScript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = functi...

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

328. 按钮组件 · LayaAir3.0文档 · LAYABOX [ 35%]

...wake(): void { this.btn.scale(5, 5); //放大五倍 this.btn.skin = "atlas/comp/button.png"; //皮肤 this.btn.stateNum = 3; //皮肤状态 this.btn.label = "确定"; //文本标签 this.btn.labelFont = "宋体"; //文本标签字体 this.btn.labelSize = 20; //文本标签字体大小 this.btn.label...

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

329. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 34%]

... ```javascript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = functi...

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

330. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 34%]

... ```javascript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = functi...

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