大约有 520 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0059 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
...布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete)); } private function onLoadComplete():void { trace("资源加载完成!"); var button:Button = new Button("resource/ui/button.png","label");//创建一个 Button 实例对象 button ,传入它的...
来源: Laya3.0_api 发布时间: 20231115
...ke(): void { Laya.loader.load(["resource/AtlasConfig.atlas"], Laya.Handler.create(this, () => { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500, 100); img.skin = "resources/img_bg.png"; //图集中的图片 })); } onStart() { Laya.Stat.show(0, 0); } } 通过示例代码,我们...
来源: Laya3.0_文档 发布时间: 20251010
...est = new EffectFlicker(); // test.startRun(); // test.startRun(); // test.create(); // var test = new Q1Buff1(); Laya.stage.off(Laya.Event.MOUSE_DOWN); Laya.stage.off(Laya.Event.MOUSE_MOVE); Laya.stage.off(Laya.Event.MOUSE_UP) Laya.stage.off(Laya.Event.MOUSE_OUT); // 鼠标按下事件 Laya.s...
来源: Laya_社区 发布时间: 20180514
...ld; }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){ console.log("complete"); }),ConstValue.animationDelay); 无法直接设置原因是浅拷贝变量无法同步到原对象中去 2018-01-12 5 6 分享 微博 QZONE 微信 183*****755 赞...
来源: Laya_社区 发布时间: 20170630
...显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ Animation 的createFrames 使用已经加载的图集缓存动画失败 lh文件内meshSprite添加阴影属性无效 请问下loader如何强制加载一个文件,避免浏览器的缓存 为什么给Sprite容器添加点击事件没...
来源: Laya_社区 发布时间: 20180703
...rgs:Array = null, coverBefore:Boolean = true):void { _create(true, true, delay, caller, method, args, coverBefore); } 2018-04-09 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 RayFor24 相关问题 两...
来源: Laya_社区 发布时间: 20180409
...到数组中 /** * 通过图片数据计算得到AStart网格 */ private createGridFromAStarMap(texture): any { var textureWidth = texture.width; var textureHeight = texture.height; var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; for (var w = 0; w < textureWidth; w++) { va...
来源: Laya3.0_文档 发布时间: 20230303
...json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComplete)) } function LoadResComplete() { //背景颜色 Laya.stage.bgColor = "#ffffff"; // var bgs = new laya.display.Sprite(); // bgs.loadImage("res/bg.png"); //Laya.stage.addChild(bgs); //Laya.stage.add...
来源: Laya_社区 发布时间: 20170228
...功后,执行onLoad回调方法 Laya.loader.load([skin1,skin2], Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个CheckBox实例cb1 var cb1:CheckBox = new CheckBox(skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //设置checkbox的坐标位置 cb1.pos...
来源: Laya2.0_文档 发布时间: 20210714
...画布的背景颜色。 Laya.loader.load("resource/ui/color.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var colorPicket:ColorPicker = new ColorPicker();//创建一个 ColorPicker 类的实例对象 colorPick...
来源: Laya3.0_api 发布时间: 20231115