大约有 1,613 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0243 秒)
Laya_社区(1206) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(41) Laya2.0_api(13) laya_api(12)
...am. - Once your app is fully compliant, resubmit your app for review. When creating multiple apps where content is the only varying element, you should offer a single app to deliver differing content to customers. If you would like to offer this content for purchase, it would be appropriate to use t...
来源: Laya_社区 发布时间: 20200420
...tor.panel("Test") export class MyPanel extends IEditor.EditorPanel { async create() { this._panel = await gui.UIPackage.createWidget("editorResources/UI/MyWidget.widget"); let input: gui.TextInput = this._panel.getChild("TextInput").getChild("title"); input.on("changed", () => { console.log("改...
来源: Laya3.0_文档 发布时间: 20251010
...图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` (图4) ##### 法线贴图 **Normal maps(法线贴图)**是一个灰度图...
来源: Laya2.0_文档 发布时间: 20210714
...回收后会被再利用,默认为false 处理器的方法包括: 1,create() 从对象池内创建一个Handler Laya.Handler 事件处理器,推荐使用Laya.Handler.create()方法从对象池创建,以减少对象创建消耗。当创建的Handler对象不再使用后,可使用Laya.Hand...
来源: Laya3.0_文档 发布时间: 20251010
...ew TiledMap(); } _proto.showMap = function(num) { this.num = num; this.map.createMap("map/level/mota_map" + num + ".json",new Rectangle(0,0,448,448),Handler.create(this,this.mapLoaded));} _proto.mapLoaded = function(){ this.pass = this.map.getLayerByIndex(0);//获取通行层 console.log(this.pass);...
来源: Laya_社区 发布时间: 20170605
...Laya.stage.bgColor = "#232628"; Laya.loader.load(aniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.Loader.ATLAS); } createAnimation() { const Animation = Laya.Animation; let ani = new Animation(); Laya.stage.addChild(ani); ani.loadAtlas(aniConfPath); // 加载图集动画 ani....
来源: Laya2.0_示例 发布时间: 20251209
...动画图片序列帧放在同一个图集里面。然后通过Animation.createFrames缓存不同的动画再播放不同的动画。 那么使用LayaAir引擎是否也能做到这一点。先通过用IDE把多个小动画放到一个图集里,然后再实现播放不同的动画。 在线等,...
来源: Laya_社区 发布时间: 20170330
...ll"; Laya.stage.bgColor = "#232628"; Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); })(); function createAnimation() { var ani = new Animation(); ani.loadAtlas(AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒)...
来源: Laya_示例 发布时间: 20251209
...的参数,你看下有没有错误 读取代码: Laya.loader.create("res/1.lh",Handler.create(this,onModelOK),null,Sprite3D); private function onModelOK():void { //添加3D场景 var scene:Scene = new Scene(); ...
来源: Laya_社区 发布时间: 20180116
...load([{url:"sfx/hit01.mp3",type:Laya.Loader.SOUND}],Laya.Handler.create(this,this.onSfxLoad)); 但是提示[warn]Retry to load: sfx/hit01.mp3 [error]Failed to load: sfx/hit01.mp3 资源文件是存在的 w1114367261 • 2018-04-23 11:30 1,直接playSound的话laya会先查找你是否加...
来源: Laya_社区 发布时间: 20180422