大约有 959 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0048 秒)
Laya_社区(662) Laya2.0_文档(158) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(27) Laya3.0_api(20) laya_api(3) Laya2.0_api(2)
...script var earth = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere())) as Laya.MeshSprite3D; earth.transform.position = new Laya.Vector3(0, 0, 0); //创建EffectMaterial材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Texture2D.load("res/threeDimen/text...
来源: Laya2.0_文档 发布时间: 20210714
....loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }// TestView.as package { import game.ui.test.TestPageUI; import laya.display.Text; im...
来源: Laya_示例 发布时间: 20251209
....loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }// TestView.as package { import game.ui.test.TestPageUI; import laya.display.Text; im...
来源: Laya2.0_示例 发布时间: 20200319
...es/models/item/item.lh", clas: Laya.Sprite3D, priority: 1 } ]; Laya.loader.create(resource, Laya.Handler.create(this, onComplete), Laya.Handler.create(this, onLoading)); } function onLoading(progress){ console.log("加载进度: " + progress); } function onComplete(){ console.log('onComplete'); wx.s...
来源: Laya_社区 发布时间: 20180426
...件无法加载 Laya.loader.load("lang/zh_CN/scripts/base.json", Handler.create(this, this.onLoaded), null, Loader.JSON); 加载这个json文件 没办法加载进来 2017-12-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...
来源: Laya_社区 发布时间: 20171213
... //加载纹理 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` (图1)
来源: Laya2.0_文档 发布时间: 20210714
... 对于匿名函数的编译 this不会被替换为_$this 举例 Handler.create(this,function(){this.name="test"}); 这个函数里边的this不会被替换为_$this 2017-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20171122
...Title.lh").then( (res)=>{ //创建预制体 let label: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍...
来源: Laya3.0_文档 发布时间: 20241014
...看一下这种遮罩bar的进度条设了遮罩不起作用 Laya.loader.create 进度回调函数执行两次 加载页进度条 DCC怎么可以手动更新,然后获取进度呢? 为什么加载进度回调只调用了一次。下面有代码,求解答 问题状态 最新活动: 2018-03-21 15:...
来源: Laya_社区 发布时间: 20180321
...用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 laya支持批处理调用js压缩吗? 问题状态 最新活动: 2017-01-18 23:25 浏览: 1156 关注: 2 人 ohkei • 2017-07-22 22:43 用原生select标签盖到laya canvas上?控...
来源: Laya_社区 发布时间: 20170118