大约有 1,584 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
Laya_社区(1113) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(50) Laya3.0_api(11) Laya2.0_api(2)
...面正常 在IDE里面用代码加载 var scene = Laya.Scene.load("res/scene/LayaScene_cz1/cz1.ls"); 浏览器测试,加载失败 WebGL: INVALID_OPERATION: useProgram: program not valid [.Offscreen-For-WebGL-00615668]GL ERROR :GL_INVALID_OPERATION : glDrawElements: attempt to access out of r...
来源: Laya_社区 发布时间: 20171205
...包字段,声明格式如下: > 注意:如果自己手动分包时,resource最后是以 “ / ” 结尾(ide分包可忽略该步骤)。同时对应目录下需要有 game.js 文件 ```json subpackages:[ { "name":"subpackageName1",//对应分包名 "resource":"subpackagePath1"//对应分...
来源: Laya2.0_文档 发布时间: 20210714
...ne; import laya.d3.math.RandX; import laya.d3.math.Vector3; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BoxMesh; import laya.d3.resource.models.QuadMesh; import laya.d3.resource.models.SkyBox; import laya.display.Stage; import laya.utils.Bro...
来源: Laya_社区 发布时间: 20170331
...下资源来自“引擎API使用示例” private buttonSkin: string = "resources/res/ui/button-7.png"; private clipSkin: string = "resources/res/ui/num0-9.png"; private bgSkin: string = "resources/res/ui/coutDown.png"; counter: any; controller: any; currFrame: any; //组件被激活后执行,此...
来源: Laya3.0_文档 发布时间: 20251010
...nt = Laya.Point; Tween = Laya.Tween; TextArea = Laya.TextArea; class UI_RefreshList { constructor() { this.baseBox = null; this.refreshLoading = null; this.loadingAni = null; this.loadingLabel = null; this.refreshList = null; /** 消息生成的当前最大id值 */ this.msgIdNow=1; /** 滚动条效...
来源: Laya2.0_示例 发布时间: 20251209
... var image:Image = new Image(); image.skin = "res/atlas/clanwar_bg.jpg?" + Math.random(); Laya.stage.addChild(image); var index:int = 0; Laya.stage.timerLoop(1, this, function():void{index++;image....
来源: Laya_社区 发布时间: 20190110
...ve'); // 这样可以解析 没有问题 但是 通过 xml =Laya.loader.getRes("res/Config/text.xml"); var doc = XMLParser.parseFromString(xml) var a = doc.getElementsByTagName('achieve'); 就会进入死循环 读取本地文件 这块 小游戏通过什么来读取? 2018-08-28 添加评论 免...
来源: Laya_社区 发布时间: 20180828
...计信息 Stat.show(); //预加载角色动画资源 Laya.loader.create("res/LayaScene_layaScene/layaScene.lh",Handler.create(this,onModelOK),null,Sprite3D); } private function onModelOK():void { //添加3D场景 var scene:Scene = new Scene(); Laya.stage.addChild(scene); //创建摄像机(横纵比...
来源: Laya_社区 发布时间: 20190416
...图,适当的时候调用destory销毁地图 tiledMap.createMap("../../res/tiledMap/desert.json", new Rectangle(0, 0, Browser.width, Browser.height), new Handler(this, completeHandler)); } /** * 地图加载完成的回调 */ function completeHandler() { Laya.stage.on(Event.RESIZE, this, resize); ...
来源: Laya_示例 发布时间: 20251209
...fig.closeDialogOnSide=false;//在dialog显示之前提前设置 assets = ["res/ui/dialog (1).png", "res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var dialog:Dialog = new Dialog(); var bg:Image = new Imag...
来源: Laya_社区 发布时间: 20170706