大约有 805 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0132 秒)
...o /** * 协议对象池 * Author :Terry * Created: 2017-08-07 09:44:25 */ export class ProtoPool { private static _dic: Laya.Dictionary; public static PROTO_HEAD: string = "proto_Head"; public static PROTO_BINARY_REQU...
来源: Laya_社区 发布时间: 20170807
...读取是不走readfile的,第一次缓存之后后面使用都是直接create音频.src去加载 1571361226用户 • 2020-07-11 16:07 @陆仁毅: 陆哥 那播放不了是啥原因 1571361226用户 • 2020-07-11 16:08 @1571361226用户: 感谢陆哥了 1571361226用户 • 2020-07-11 17:33 不...
来源: Laya_社区 发布时间: 20200529
...布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var button:Button = new Button("resource/ui/button.png","label");//创建一个 Button 类的实例对象...
来源: Laya3.0_api 发布时间: 20231115
...item.size; items.push(item); var progressHandler = progress ? Laya.Handler.create(null, loadProgress, [item], false) : null; var completeHandler = (complete || progress) ? Laya.Handler.create(null, loadComplete, [item]) : null; this.load(item.url, completeHandler, progressHandler, item.type, item.pr...
来源: Laya_社区 发布时间: 20171226
....EventDispatcher { constructor() { super(); this.loaded = false; } static _createSound() { MiniSound._id++; return MiniAdpter.window.wx.createInnerAudioContext(); } load(url) { if (!MiniFileMgr.isLocalNativeFile(url)) { url = Laya.URL.formatURL(url); } else { if (!MiniFileMgr.isWXPath(url)) { if (Mi...
来源: Laya_社区 发布时间: 20200103
...ew Laya.Sprite(); sp.loadImage("res/apes/monkey2.png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 直接调用size设置: Laya.loader.load("res/apes/mo...
来源: Laya3.0_文档 发布时间: 20251010
...r plane = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(40, 40, 40, 40))); plane.transform.position = new Laya.Vector3(0, -2.0, 0); var planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png",...
来源: Laya_社区 发布时间: 20210103
...tegratedHsp... after 1 ms > hvigor Finished :libSysCapabilities:default@CreateHarBuildProfile... after 2 ms > hvigor Finished :libSysCapabilities:default@ConfigureCmake... after 1 ms > hvigor Finished :libSysCapabilities:default@MergeProfile... after 5 ms > hvigor Finished :entry:default...
来源: Laya_社区 发布时间: 20250106
... currentBgmUrl, type: Laya.Loader.SOUND }], Laya.Handler.create(this, () => { console.log("----playMusic111 加载完成------"); // 关键:添加延迟确保音频会话就绪 Laya.timer.once(300, this,...
来源: Laya_社区 发布时间: 20250930
... var terrainSprite:MeshTerrainSprite3D = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMesh as Mesh, texture, minHeight, maxHeight); terrainSprite.transform.worldMatrix = meshSprite3D.transform.worldMatrix; 角色行走时...
来源: Laya_社区 发布时间: 20170505