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

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

291. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 60%]

...a.net.AtlasInfoManager; import laya.net.ResourceVersion; import laya.utils.Handler; import laya.utils.Stat; import laya.utils.Utils; import laya.d3.core.particleShuriKen.module.StartFrame; import laya.display.Sprite; import ui.BGPageUI; import ui.MonkeyPageUI; public class Main { public function Mai...

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

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

...ar xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(data){ //加载完成返回的data是arraybuffer; //.......这里处理我们加密的图...

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

293. timeline播放完成Bug [ 60%]

...ttps://layaair2.ldc2.layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.TimeLine(); tl.once('complete', ...

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

294. Sprite中的width,heightsize(width,height)感觉没作用啊 [ 60%]

...sprite = new laya.display.Sprite(); sprite.loadImage("comp/bg.png",0,0,0,0,Handler.create(this,function(texture:laya.resource.Texture){         sprite.graphics.clear();         sprite.graphics.drawTexture(texture,0,0,50,50);         sprite.autoSize = true; })); Laya.stage.addChild(...

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

295. Laya.Texture2D.load崩溃问题 [ 60%]

... = new Laya.BlinnPhongMaterial();   Laya.Texture2D.load("ceshi.jpg", Laya.Handler.create(this, function (texture) { material.albedoTexture = texture; })); 附件 : --> 2020-12-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

296. list图片路径没问题.为什么图片就是不显示.啊啊啊也,求解答 [ 60%]

...].amount}); } } this.otherItem_list.array = data; this.otherItem_list.mouseHandler = new Handler(this,otherItem_listRender); fengjingmeng • 2018-03-21 16:44 你这个是list的逻辑,item的更新逻辑呢。item拿到数据后你做了什么处理? z624697 • 2018-03-21 16:46 现在是我将...

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

297. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 60%]

... laya.resource.HTMLCanvas; import laya.resource.Texture; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; public class Main { private var _tex:Texture; private var _htmlCanvas:HTMLCanvas; private var _colorSpr:Sprite; private var _colorTex:Texture; private var _initPixelCo...

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

298. LayaAir与LayaFlash有什么区别? [ 60%]

...详细区别是什么? 自从layaflash起,就一直存在的bug Laya.Handler.createnew Laya.Handler有啥区别 LayaAir 3D 有提供 3D 物理引擎功能吗? 按官网上的文档 使用LayaNative运行LayaAir项目https://ldc.layabox.com/doc/?nav=zh-as-7-0-1。出现了问题 在初始化...

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

299. 物理刚体(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 60%]

...`typescript //加载模型 Laya.Sprite3D.load("Conventional/shoot.lh",Laya.Handler.create(this,function(sp){ //获取到Meshsprite3d var cube = scene.addChild(sp.getChildAt(0); //获取刚体 var cubeRigid = cube.getComponent(Laya.Rigidbody3D); })); ```

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

300. Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? [ 60%]

...nnPhongMaterial();         Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {             material.albedoTexture = tex;         }));         material.albedoColor = new Laya.Vector4(1.0, 1.0, 1.0, 0.5);         material.renderMode =...

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