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

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

501. 启用版本管理后,Laya.loader.load加载在微信web开发者工具触发不了回调 [ 82%]

...tlas/common.atlas", type: Laya.Loader.ATLAS}, {url: "hall/1_login/login_bg.png", type: Laya.Loader.IMAGE}, {url: "hall/1_login/Bottom_article.png", type: Laya.Loader.IMAGE}, {url: "res/atlas/hall/login.atlas", type: Laya.Loader.ATLAS}, ] Laya.loader.load(resArray, Handler.create(null, function(){ co...

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

502. Button属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 82%]

...皮肤)命名通常是以btn为前缀,如图1所示。 ![图1](img/1.png) (图1) ### 1.1用引擎直接创建Button组件 使用LayaAir引擎创建一个Button组件比较简单,通常只需要几个步骤,加载资源,创建一个Button实例,将Button添加到舞台,设置Button...

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

503. 字体切片组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 82%]

...1) 在LayaAir中,自带了一个字体切片的图像资源(fontClip.png),如图1-2所示, (图1-2) 1.2 FontClip属性介绍 FontClip的特有属性如下: (图1-3) 属性 功能说明 纹理 skin 字体切片组件的纹理,需要添加图像资源。 九宫格 sizeGrid 位...

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

504. TS分离模式设置未打包图片输出目录导出资源无法加载未打包资源 [ 82%]

...atlas/comp.atlas", type: Loader.ATLAS },     { url: "unpack/comp/image.png", type: Loader.IMAGE },     { url: "test/TestPage.json", type: Loader.JSON }, ], Handler.create(this, this.onLoaded)); 运行报错: [warn]Retry to load: comp/image.png [error]Failed to load: comp/image.png   修改...

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

505. 动态图集 · LayaAir3.4 · 引擎文档 · LAYABOX [ 82%]

...理。 //使用示例 const texture = Laya.loader.getRes("resources/hero.png", Laya.Loader.IMAGE); const success = atlasManager.addTexture(texture, 0.5, 0); // 添加到指定图集,缩放为 0.5 通过 URL 添加纹理 //接口 addTextureByUrl(url: string, scale: number = 1.0, largeTextureIndex: nu...

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

506. BlinnPhong材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 82%]

...中的效果也有所变化,说明材质类型修改成功。 ![](img/1.png)(图1) ​ 鼠标选择场景中的任意模型,我们可以看到在右侧Inspector面板中出现了新的材质Shader类型(图7)。材质属性与Unity中Standard标准材质有所不同,简化了很多,...

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

507. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 82%]

...皮肤)命名通常是以btn为前缀,如图1所示。 ![图1](img/1.png) (图1) ### 1.1用引擎直接创建Button组件 使用LayaAir引擎创建一个Button组件比较简单,通常只需要几个步骤,加载资源,创建一个Button实例,将Button添加到舞台,设置Button...

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

508. 图层叠加的实现 [ 82%]

... var ape:Sprite = new Sprite(); var t:Texture = Laya.loader.getRes("res/bg.png"); ape.graphics.drawTexture(t,0,0); var t1:Texture = Laya.loader.getRes("res/wzq.png"); ape.graphics.drawTexture(t1,0,0); var t2:Texture = Laya.loader.getRes("res/rkfb.png"); ape.graphics.drawTexture(t2,0,0); var t3:Textu...

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

509. Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture [ 82%]

Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture 两张图片,一张取出来是Texture。 另一张却是Texture2D 版本 Laya 2.4.0.1600   这是一个图集动画,第一次加载显示没问题,是在第二次的时候出了问题。   播放流程:第...

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

510. typescipt在一定范围内加载图片按照等比排列 [ 82%]

...= myTestUI.imgList.spaceY = 50;     myTestUI.imgList.array = ['comp/bg.png', 'comp/btn_close.png', 'comp/button.png', 'comp/image.png'];     myTestUI.imgList.renderHandler = new Laya.Handler(this, onImgListRender);   function onImgListRender(box: Laya.Box) {     let model = box.dataSour...

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