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

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

1561. laya.d3.resource.models.Mesh_API3.0 [ 37%]

...lock=true的资源。 Returns void Static load load(url: string, complete: Handler): void Defined in laya/d3/resource/models/Mesh.ts:82 加载网格模板。 Parameters url: string 模板地址。 complete: Handler 完成回调。 Returns void Globals "laya/d3/resource/models/Mesh" Mesh constructor ...

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

1562. 分享个用美术资源做位图文本的方法。。。 [ 37%]

....JSON}, {"url":"res/playerKpiFont.png","type":Laya.Loader.IMAGE}],new Laya.Handler(that,function(){ var jsonData = Laya.loader.getRes("res/playerKpiFont.json"); var imageData = Laya.loader.getRes("res/playerKpiFont.png"); // 左中右创建的3个实例 var bp = new BPFont(jsonData,imageData,600,"le...

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

1563. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 37%]

...l; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/LayaScene_girl/girl.lh"); this.scene.addChild(this....

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

1564. laya.ui.UIGroup_API3.0 [ 37%]

...ics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed direction disable...

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

1565. [BUG]刚体约束问题,移动后约束混乱! [ 37%]

...l();     Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function (tex) {       planeMat.albedoTexture = tex;     }));     //设置纹理平铺和偏移     var tilingOffset = planeMat.tilingOffset;     tilingOffset.setValue(5, 5,...

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

1566. 2D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 37%]

...var sp=new 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...

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

1567. [0]laya-zip让你的游戏加载速度提升350%!! [ 37%]

...: "xx.zip", type:"ZIP",constructParams:["xx/xxx1.lh","xx/xxx2.lh"]}], Laya.Handler.create(this, () => { let player1 = Laya.loader.getRes("xx/xxx1.lh").clone(); let player2 = Laya.loader.getRes("xx/xxx2.lh").clone(); })); [/size][/code]高级 为了根据具体项目来定制压缩包的颗粒度...

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

1568. laya.d3.core.particleShuriKen.ShurikenParticleMaterial [ 37%]

...oneTo(destObject:*):void 克隆。 BaseMaterial load(url:String, complete:Handler):void[static] 加载材质。 BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods MethodDefined By...

来源: Laya2.0_api 发布时间: 20190513

1569. IDE1.7.19.1beta打包apk后后,播放spine动画出现图片缺失 [ 36%]

...eton(); spine.pos(100, 400); spine.load('res/spine/princess1.sk', new Laya.Handler(this, () => { Laya.stage.addChild(spine); spine.play(0, true); })); index.html  <html> <head> <meta charset='utf-8' /> <title>XXXXX</title> <meta name='viewport' content='width=dev...

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

1570. 多线程worker(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 36%]

...//加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例UI界面 var testView = ui.test.TestPageUI(); Laya.stage.addChild(testView); } ``` `WorkerLoader.workerPath = "libs/worker.js";`设置worker.js的路径,这个wor...

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