大约有 1,004 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0055 秒)
Laya_社区(712) Laya3.0_api(68) Laya2.0_api(59) laya_api(56) Laya2.0_文档(47) Laya_示例(27) Laya3.0_文档(25) Laya2.0_示例(10)
LayaAir引擎 sprite加载图片二次赋值问题 二次赋值,什么清理上一次留下的数据,destroy就用不了了,没有clean函数 附件 : --> 2017-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...
来源: Laya_社区 发布时间: 20170809
Laya.list能否存放Sprite? 下面是官网list的例子 : var data = []; for (var i = 0; i < 10; ++i) { data.push("../../res/ui/listskins/1.jpg"); data.push("../../res/ui/listskins/2.jpg"); data.push("../../res/ui/listskins/3.jpg"); data.push("../../res/ui/listskins/4.jpg"); data.push("../...
来源: Laya_社区 发布时间: 20180603
...隆对象,统计面板的显存和内存就会显示成负数 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 请教下微信小游戏的内存和数据缓存? 模型资源释放问题 2.0 beta4 ts 含demo 在纵向滑动 list 的 renderHandler中给item中的Label组件赋值...
来源: Laya_社区 发布时间: 20170224
...是 “mouseout” 而不是 "mousedown" ? 代码如下: function createSprite() { picture = new Sprite(); picture.loadImage(picturePath); Laya.stage.addChild(picture); var texture = Laya.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.w...
来源: Laya_社区 发布时间: 20181022
...worker.js"; Laya.WorkerLoader.enable=true; 加载导出的3D模型 Laya.Sprite3D.load("res/assets/LayaScene_guanyu/TestScene.lh"); 报错:laya.d3.js:37225 Uncaught TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': No function was found that matched the signature provided....
来源: Laya_社区 发布时间: 20190227
...{ constructor() { //初始化引擎 Laya.init(1136,640); var sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(d...
来源: Laya2.0_文档 发布时间: 20210714
Sprite加载图片 是异步操作吗? this.bg_2.loadImage("background.png"); this.bg_2.pos(0,this.bg_2.height); 这时候 this.bg_2.height 的值打印出来是0 2017-10-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...
来源: Laya_社区 发布时间: 20171002
...l, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1...
来源: Laya2.0_文档 发布时间: 20210715
...1所示。 ```typescript //平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))) as Laya.MeshSprite3D; //新建材质 var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya....
来源: Laya2.0_文档 发布时间: 20210715
...建了一个平面。如图1所示。 ```typescript //平面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 10, 10, 10))) as MeshSprite3D; //新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.p...
来源: Laya2.0_文档 发布时间: 20210714