大约有 1,301 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0057 秒)
Laya_社区(739) Laya2.0_文档(164) Laya3.0_api(108) Laya2.0_示例(81) Laya_示例(70) Laya2.0_api(58) laya_api(54) Laya3.0_文档(27)
..."res/threeDimen/scene/LayaScene_AnimationEvent/Conventional/layaScene.ls", Handler.create(this, function(scene:Scene3D):void { Laya.stage.addChild(scene) as Scene3D; //获取cube对象 var cube:Sprite3D = scene.getChildByName("Cube"); //添加组件(脚本) var _script:SceneScript = cube.addComponen...
来源: Laya2.0_文档 发布时间: 20210715
...几秒中才显示 Laya.loader.load("http://www.xxxxxxx.com/gold.png",Laya.Handler.create(this,this.aa)); private aa(){ let img = new Laya.Image("http://www.xxxxxxx.com/gold.png"); Laya.stage.addChild(img); } 请问下,这样写有声明不对么 ? 2018-04-18 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20180418
...如果父节点手动设置为false,则不会更改)。 Sprite mouseHandler : Handler 单元格鼠标事件处理器。 默认返回参数(e:Event,index:int)。 Tree mouseThrough : Boolean = false 鼠标事件与此对象的碰撞检测是否可穿透。碰撞检测发生在鼠标事件...
来源: Laya2.0_api 发布时间: 20190513
...ni = new Laya.Animation(); this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe)); function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); } 运行时报 TypeError:Cannot read property '_create' of null at Animat...
来源: Laya_社区 发布时间: 20171028
....base_image_url+"image/loading.jpg", ]; Laya.loader.load(_silentLoadArray, Handler.create(this, gameStart)); var gameStart = function(){ var loading = new LoadingPage();(loading页面) //加载完成 进入主界面 loading.onComplete = loadHome; //开始加载 l...
来源: Laya_社区 发布时间: 20170912
...; item.progress = 0; totalSize += item.size; items.push(item); var progressHandler = progress ? Laya.Handler.create(null, loadProgress, [item], false) : null; var completeHandler = (complete || progress) ? Laya.Handler.create(null, loadComplete, [item]) : null; this.load(item.url, completeHandler, p...
来源: Laya_社区 发布时间: 20171226
...载动画需要用到的资源 Laya.loader.load("res/atlas/fly.json", Laya.Handler.create(this, onAssetLoaded), null, Laya.Loader.ATLAS); function onAssetLoaded() { var ani=new Laya.Animation();//创建animation实例 ani.loadAnimation('Ani.ani');//加载IDE制作的动画 Laya.stage.addChild(ani);/...
来源: Laya_社区 发布时间: 20170522
...使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); })); kezhiyu • 2018...
来源: Laya_社区 发布时间: 20180604
...F/Conventional/JJF.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //创建场景 let scene = Laya.stage.addChild(new Laya.Scene3D()); //创建相机 let ca...
来源: Laya_社区 发布时间: 20190531
...源 加载时时这样调用 Laya.loader.load("res/MainBlood.atlas", Laya.Handler.create(this, this.onAtlasLoaded), null, Laya.Loader.ATLAS); 卸载时这样 Laya.loader.clearRes("res/MainBlood.atlas");在Laya.Loader.loadedMap里查找是没有了,但是统计面板的CurMem降不下来,工程...
来源: Laya_社区 发布时间: 20180305