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

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

481. 为什么laya的Button渲染逻辑顺序是先渲染,再获取素材切片? [ 48%]

...lor=this._strokeColors[index]; } } __proto.changeClips=function(){ var img=Loader.getRes(this._skin); if (!img){ console.log("lose skin",this._skin); return; }; var width=img.sourceWidth; var height=img.sourceHeight / this._stateNum; img.$_GID || (img.$_GID=Utils.getGID()); var key=img.$_GID+"-"+thi...

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

482. 如何为灯光添加阴影(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 48%]

...`typescript // A plane receive shadow. var grid: Sprite3D = scene.addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); (grid.getChildAt(0)).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.cre...

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

483. 如何为灯光添加阴影(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 48%]

...`typescript // A plane receive shadow. var grid: Sprite3D = scene.addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); grid.getChildAt(0).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.creat...

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

484. Laya.URL.basePath加载不到网络资源 [ 48%]

...网络资源 var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { url: "images/background.png", type : Laya.Loader.IMAGE}, ];   Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));   Laya.URL.ba...

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

485. 刚刚接触2天layaair,有几个问题请教。 [ 47%]

...擎功能吗? 请教下微信小游戏的内存和数据缓存? Laya.Loader.getRes请教 请教一个关于laya2.5d项目美术规范的问题哈 请教如何在UI上显示3D模型 【3D动画播放】 关于islooping覆盖问题,想请教一下 请教下,舞台设的宽度是800,600 为什...

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

486. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 47%]

...正确获取宽高。 1. **直接调用size设置:** ```typescript Laya.loader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); var sp=new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); sp.size(texture.width,texture.hei...

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

487. List翻页效果 [ 47%]

... text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(index: number) { if (this.m_index != index) { for (let i = 1; i < 7; i++) { let skin = "u...

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

488. LayaRender渲染含有多个part的Body存在Bug [ 47%]

... size = 200, x = 200, y = 200; var sp = new Laya.Sprite(); var text = Laya.loader.getRes("res/bar.png"); var w = size, h = size/5; sp.pivot(w/2, h/2); sp.graphics.fillTexture(text, 0, 0, w, h); partA = Matter.Bodies.rectangle(x, y, w, h, { isStatic:true, layaSprite:sp, });  sp = new Laya.Sprite(); ...

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

489. List翻页效果怎么实现 [ 47%]

... text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(index: number) { if (this.m_index != index) { for (let i = 1; i < 7; i++) { let skin = "u...

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

490. 请教文档中Graphic.drawTextures方法第二个参数的具体参数格式 [ 47%]

...a2.5d项目美术规范的问题哈 2.0 drawTexture color参数无效 Laya.Loader.getRes请教 问题状态 最新活动: 2018-01-12 11:12 浏览: 1368 关注: 5 人 cuixueying • 2017-04-05 20:42 不用写成json,直接填写参数即可,跟接口处的参数一一对应上即可! rainysky ...

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