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

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

461. laya.ui.Radio_API3.0 [ 50%]

...布的背景颜色。 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

462. 压缩纹理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

...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

463. 在微信分享成功的回调函数里,Laya播放音效失败。 [ 50%]

...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

464. sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale [ 50%]

...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

465. 加载lh模型后,添加Laya.SkinAnimations组件就报错 [ 49%]

...显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ Animation 的createFrames 使用已经加载的图集缓存动画失败 lh文件内meshSprite添加阴影属性无效 请问下loader如何强制加载一个文件,避免浏览器的缓存 为什么给Sprite容器添加点击事件没...

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

466. 在加载3d人物的时候,Laya.timer.loop会卡顿,由于又需要每隔一段时间执行一个方法,暂时想到了用Laya.timer.loop,这个有什么好的解决方案替代吗? [ 49%]

...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

467. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 48%]

...到数组中 /** * 通过图片数据计算得到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

468. 隐藏默认的虚拟键、屏蔽APP窗口弹出脚本错误信息 的问题 [ 48%]

...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

469. CheckBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 48%]

...功后,执行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

470. laya.ui.ColorPicker_API3.0 [ 48%]

...画布的背景颜色。 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