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

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

331. 粒子系统-场景与粒子 [ 77%]

....Stage.SCREEN_NONE; var scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/particle/Example_01.ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)) ; camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript);class Particle_Scene { c...

来源: Laya_示例 发布时间: 20251209

332. 灯光-聚光 [ 77%]

...; spotLight.spot = 32; var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/grid/plane.lh")); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var...

来源: Laya_示例 发布时间: 20251209

333. 加载-销毁Texture使用的图片资源 [ 77%]

...ipt三种开发语言、LayaAirIDE让项目开发更高效。let PathBg = "res/bg2.png", PathFly = "res/fighter/fighter.atlas"; class Loader_ClearTextureRes { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持W...

来源: Laya2.0_示例 发布时间: 20251209

334. 微信小游戏加载ProtoBuf文件和图片加载问题 [ 77%]

...调,也不会报错。 var loadArr:Array = new Array; loadArr= [{url: "res/atlas/hall_new.json", type: Loader.ATLAS}, // {url: "res/atlas/help.json", type: Loader.ATLAS},  // {url: "res/atlas/shop.json", type: Loader.ATLAS}, // {url: "shmjAssets/扣牌文字背景.png", type: Loader.IMAGE}, //这...

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

335. 区块地图-PerspectiveWall [ 77%]

...unction createMap() { tiledMap = new TiledMap(); tiledMap.createMap("../../res/tiledMap/perspective_walls.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } })();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; import Rectangle = Laya.Rectangle; import...

来源: Laya_示例 发布时间: 20251209

336. UI-Image [ 77%]

...his.setup(); } setup() { const Image = Laya.Image; let dialog = new Image("res/ui/dialog (3).png"); Laya.stage.addChild(dialog); dialog.pos(165, 62.5); } } new UI_Image();module laya { import Stage = Laya.Stage; import Image = Laya.Image; import WebGL = Laya.WebGL; export class UI_Image { constructo...

来源: Laya2.0_示例 发布时间: 20251209

337. 其他引擎的Demo-Example_23 [ 77%]

...232628"; Stat.show(); // create a background texture Laya.stage.loadImage("res/pixi/laserBG.jpg"); Laya.stage.frameLoop(1, this, this.animate); } animate() { const Sprite = Laya.Sprite, Point = Laya.Point; let laser; if (tick > frequency) { tick = 0; // iterate through the dudes and update the posit...

来源: Laya2.0_示例 发布时间: 20251209

338. 关于微信小游戏缓存问题 求大佬们指教 [ 77%]

...信提供了50M的缓存区域  在开发者工具下看到目录是usr/res  而项目的资源目录是 game/res 问题来了 请教下 如何让包体尽量达到4M后多出来的资源进行缓存 如3D资源 目前发现的问题是 引擎的loader方法无法访问usr目录  除非修改 Lay...

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

339. 引擎示例中的新手引导自己写了一次,不知道为什么无法实现点击。 [ 77%]

...function() { var guideSteps = [ { x: 151, y: 575, radius: 150, tip: "../../res/guide/help6.png", tipx: 200, tipy: 250 }, { x: 883, y: 620, radius: 100, tip: "../../res/guide/help4.png", tipx: 730, tipy: 380 }, { x: 1128, y: 583, radius: 110, tip: "../../res/guide/help3.png", tipx: 900, tipy: 300 } ]...

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

340. 微信小游戏怎么加载本地的配置文件 [ 77%]

...置文件?在laya是可以 public initConfig(){ this.configAsset=[ {url:"res/config/playerCard.json",type:laya.net.Loader.TEXT} ]; Laya.loader.load(this.configAsset,Handler.create(this,this.loadConfigCallBack)) } public loadConfigCallBack(str:boolean){ if(str){ var config; config=laya.net.Loader.g...

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