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

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

251. 3D模式下使用Tween使模型移动如何写法 [ 66%]

...erial = new Laya.StandardMaterial(); //漫反射贴图 fishmaterial.diffuseTexture = Laya.Texture2D.load("fish/denglongyu/denglongyu1.jpg"); fish.meshRender.material = fishmaterial; fish.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); fish.transform.localPosition = new Laya.Vector3(0,1,0...

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

252. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 66%]

...(runGame); var sp = new laya.display.Sprite(); sp.x = 100; sp.y = 100; var texture = Laya.loader.getRes('player/chara_01.png'); sp.graphics.drawTexture(texture, 0, 0, 96, 96); Laya.stage.addChild(sp); console.log(texture); } 这里大家可能有疑问 什么路径地址是”player/chara_01.png...

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

253. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 66%]

texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 export class Texture2dTest { private sprite3D:Laya.Sprite3D; private readonly AllPng:string[] = ["pic-001.png","output-06.png"]; private texture:Laya.Texture2D; private box; constructor(){ Laya3D.init(0, 0); Laya.s...

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

254. TypeError: Cannot read property 'length' of null [ 65%]

...:4515 TypeError: addGlobalValueDefine is not a function 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' TypeError: Laya.Browser.window.conch.setFontF...

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

255. Laya.loader加载BUG [ 65%]

...      }else if (type==="image"){             var tex=new Texture(data);             tex.url=this._url;             this.complete(tex);         }else if (type==="sound" || type==="htmlimage" || type==="nativeimage"){             this.compl...

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

256. 3D粒子编辑模块 · LayaAir3.0文档 · LAYABOX [ 65%]

...ndom between two Curve:在两个曲线中随机取值 3.1.5 纹理动画 Texture Sheet 用来播放粒子动画的模块,粒子动画的原材料是一种纹理,它包含了一组帧动画,能够以动画方式渲染粒子。 帧动画:使用多张图片,每张图片一帧,构成一...

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

257. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 65%]

... laya.display.Stage; import laya.filters.ColorFilter; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { private const ApePath:String = "res/img/monkey1.png"; private var apeTexture:Texture; public function Main() { // 不...

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

258. 什么自定义shader大图正常,小图就被缩小了 [ 65%]

...ss(myShaderSprite, "myShaderSprite", _super); /* 初始化此类 texture纹理对象 vb顶点数组 ib顶点索引数组 */ myShaderSprite.prototype.init = function(texture,width_Size,height_Size,vb,ib){ this.vBuffer = Laya.VertexBuffer2D.create(); this.iBuffer = Laya.IndexBuffer2D.create(...

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

259. 3D中如何限制角色的行走区域? [ 65%]

...图的预加载:                {url: "res/heightMap.png", clas:Texture2D, priority:1, params:[true]}        场景中初始化MeshTerrainSprite3D:               //通过场景中子父级节点寻找可行走区域网格模型               var meshSprite3D:MeshSprite3...

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

260. laya.display.BitmapFont_API3.0 [ 64%]

...ediately dict fontSize letterSpacing lineHeight lock maxWidth name padding texture tint url uuid DEBUG Accessors cpuMemory destroyed gpuMemory id obsolute referenceCount cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event...

来源: Laya3.0_api 发布时间: 20231115