大约有 55 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0022 秒)
...ader.maxLoader = 1; Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, onAssetLoaded), null, null, 0, false); Laya.loader.load("../../res/apes/monkey1.png", Handler.create(this, onAssetLoaded), null, null, 1, false); Laya.loader.load("../../res/apes/monkey0.png", Handler.create(this...
来源: Laya_示例 发布时间: 20241118
.../fighter.png", "../../res/legend/map.jpg"]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT); // 侦听加载失败 Laya.loader.on(Event.ERROR, this, onError); })(); function onAssetLoaded(texture) { // 使用texture console.log("...
来源: Laya_示例 发布时间: 20241118
...张png类型资源 Laya.loader.load("../../res/apes/monkey0.png", Handler.create(this, onAssetLoaded1)); // 加载多张png类型资源 Laya.loader.load( ["../../res/apes/monkey0.png", "../../res/apes/monkey1.png", "../../res/apes/monkey2.png"], Handler.create(this, onAssetLoaded2)); })(); function ...
来源: Laya_示例 发布时间: 20241118
...stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matter.Engine.run(engine); var render = LayaRender.create( { engine: engine, container: gameWorld, width: stageWidth, height: stageHeight, options: { wireframes: false } }); LayaRender.run(r...
来源: Laya_示例 发布时间: 20241118
...stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matter.Engine.run(engine); var render = LayaRender.create( { engine: engine, container: gameWorld, width: stageWidth, height: stageHeight, options: { wireframes: false } }); LayaRender.run(r...
来源: Laya_示例 发布时间: 20241118
...type var AwesomeMessage = root.lookup("awesomepackage.AwesomeMessage"); // Create a new message var message = AwesomeMessage.create( { awesomeField: "AwesomeString" }); // Verify the message if necessary (i.e. when possibly incomplete or invalid) var errMsg = AwesomeMessage.verify(message); if (errM...
来源: Laya_示例 发布时间: 20241118
...ra.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/L...
来源: Laya_示例 发布时间: 20241118
...d("../../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("scene")); l...
来源: Laya_示例 发布时间: 20241118
...stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matter.Engine.run(engine); var render = LayaRender.create( { engine: engine, width: 800, height: 600, options: { background: '../../res/physics/img/background.png', wireframes: false } }); L...
来源: Laya_示例 发布时间: 20241118
...ar directionLight = scene.addChild(new Laya.DirectionLight()); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/Lay...
来源: Laya_示例 发布时间: 20241118