大约有 12 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0026 秒)
...AirIDE让项目开发更高效。(function() { var Event = Laya.Event; var Loader = Laya.Loader; var Texture = Laya.Texture; var Handler = Laya.Handler; (function() { Laya.init(550, 400); // 无加载失败重试 Laya.loader.retryNum = 0; var urls = ["do not exist", "../../res/fighter/fighter.png", ...
来源: Laya_示例 发布时间: 20241118
...、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。var Loader = Laya.Loader; var Handler = Laya.Handler; var Event = Laya.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码...
来源: Laya_示例 发布时间: 20241118
...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, createApe)); })(); function createApe() { // 添加一只猩猩 ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.pivot(texture.width / 2, tex...
来源: Laya_示例 发布时间: 20241118
...aya.Templet; var Event = Laya.Event; var GlowFilter = Laya.GlowFilter; var Loader = Laya.Loader; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var mArmature; var fileName = "Dragon"; var mTexturePath; var mAniPath; v...
来源: Laya_示例 发布时间: 20241118
...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { createApe(); showDragRegion(); } function createApe() { ape = new Sprite(); ape.loadImage(ApePath); Laya.stage.addChild(ape); var texture = Laya.load...
来源: Laya_示例 发布时间: 20241118
...; this.aniFly.visible = false; //销毁 Texture 使用的图片资源 Laya.loader.clearTextureRes(this.PathBg); Laya.loader.clearTextureRes(this.PathFly); this.isDestroyed = true; this.txt.text = "恢复"; } }; return GameMain; }()); new GameMain(); })(leo || (leo = {}));namespace leo { import Sprit...
来源: Laya_示例 发布时间: 20241118
...attack","left_fall","right_fall","back_fall"]; var curStateIndex = 0; Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () { changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")); changeActionButton.s...
来源: Laya_示例 发布时间: 20241118
...odel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/ColliderScene/ColliderDemo.ls")); //初始化照相机 t...
来源: Laya_示例 发布时间: 20241118
....alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load(compassImgPath, Handler.create(this, init)); })(); function init() { // 创建罗盘 createCompass(); // 创建方位指示器 createDirectionIndicator(); // 画出其他UI drawUI(); // 创建显示角度的文本...
来源: Laya_示例 发布时间: 20241118
...e3D.load("../../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh")); Laya.loader.create([ "../../res/threeDimen/scene/Arena/Arena.ls", "../../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh" ], Laya.Handler.create(this, onComplete)); function onComplete() { setMaterials(scene.getChildByName("scen...
来源: Laya_示例 发布时间: 20241118