大约有 235 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
Laya_社区(149) Laya2.0_文档(47) Laya2.0_示例(16) Laya_示例(12) Laya3.0_文档(7) Laya3.0_api(2) Laya2.0_api(2)
...uf = dcodeIO.ProtoBuf; this._protoBuilderMap ={user:ProtoBuf.loadProto(RES.getRes('user_proto'))}; 然后打包数据这样使用就可以了: let head: string = name.substring(0, name.indexOf('.')); let Message = this._protoBuilderMap[head].build(name); let message: ProtoBuf.Message = new Message...
来源: Laya_社区 发布时间: 20171103
...载字体资源,加载完成后打开需要的场景,在场景中通过getRes方法来获得这个资源 设置启动脚本的位置为:项目设置-脚本编译-启动脚本 启动脚本代码: export async function main() { console.log("Hello LayaAir!"); Laya.loader.load("resou...
来源: Laya_社区 发布时间: 20250910
...作的? 请教下微信小游戏的内存和数据缓存? Laya.Loader.getRes请教 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 请教一下,页面元素在不同的设备上,怎么让它居中显示呢或者自适应宽度? 请教下 ...
来源: Laya_社区 发布时间: 20160918
...回复 Laya_Xq 赞同来自: B型血人 layaMonkey = scene.addChild(Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")) as Sprite3D; //克隆sprite3d layaMonkey_clone1 = Sprite3D.instantiate(layaMonkey, scene, false, new Vector3(0.6, 0, 0)); //克隆sprite3d layaMonkey_clone2 = scene...
来源: Laya_社区 发布时间: 20181017
...lete)); function onCreateComplete() { var mesh = Laya.loader.getRes("cj\cj-default001.lm"); var meshSprite3D = new Laya.MeshSprite3D(mesh); this.scene.addChild(meshSprite3D); } //modelshow = new Laya.MeshSprite3D(Laya.Mesh.load("cj\cj-default001.lm")); //modelshow.transform.loc...
来源: Laya_社区 发布时间: 20180427
...n normalizeApe() { var originalApe = createApe(); apeTexture = Laya.loader.getRes(ApePath); originalApe.x = (Laya.stage.width - apeTexture.width * 3) / 2; originalApe.y = (Laya.stage.height - apeTexture.height) / 2; } function makeRedApe() { //由 20 个项目(排列成 4 x 5 矩阵)组成的数...
来源: Laya2.0_文档 发布时间: 20210714
...lete)); function onCreateComplete() { var mesh = Laya.loader.getRes("cj\cj-default001.lm"); var meshSprite3D = new Laya.MeshSprite3D(mesh); this.scene.addChild(meshSprite3D); } //modelshow = new Laya.MeshSprite3D(Laya.Mesh.load("cj\cj-default001.lm")); //modelshow.transform.loc...
来源: Laya_社区 发布时间: 20180427
...Childhood/EARLY_GAME_001/bin/libs/laya.core.js:4418:12) at Function.Loader.getRes (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.core.js:11178:32) at Graphics.__proto.loadImage (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.core.js:1808:19) at Function.Animation.createFrames (file:...
来源: Laya_社区 发布时间: 20170206
...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.height); Laya.stage.addChild(sp); })); ``` 使用Graphics.drawTexture并不会自动设置容器的...
来源: Laya2.0_文档 发布时间: 20210714
...sole出,那个list中的数据也存在,但没渲染出。 Laya.Loader.getRes请教 本地调试加载本地图片都报错 问题状态 最新活动: 2017-06-15 17:04 浏览: 1766 关注: 4 人 189*****192 • 2017-06-16 09:27 http://layaair.ldc.layabox.com/demo/?Filters_Color 我发的是颜...
来源: Laya_社区 发布时间: 20170615