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

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

2731. 水平布局容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 43%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createHbox(); // 添加HBox组件 this.owner.addChild(this.hbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins);...

来源: Laya3.0_文档 发布时间: 20251010

2732. 分享:截屏! [ 43%]

...示对象             sp= new Sprite();             sp.loadImage("logo.png");             Laya.stage.addChild(sp);         }                  private function onClick():void         {             //HTMLCanvas 是 Html Canvas 的代理类,...

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

2733. iOS真机运行报错--- 加载游戏失败,可能由于您的网络不稳定,请退出重进 [ 43%]

.../index.html 2018-03-15 11:24:58.265521+0800 MineSweeper6[7091:2932001] Download [ ]:http://stand.alone.version/index.html Creating context 1024, 768, 22018-03-15 11:24:58.270942+0800 MineSweeper6[7091:2932001] curl_easy_perform failed, code=6 src=http://stand.alone.version/index.html 2018-03-15 11:2...

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

2734. radioGroup设置labels后,每个radio的icon皮肤无法显示了 [ 43%]

...性后,icon就没有显示了,代码如下: 在入口文件: Laya.loader.load("res/atlas/template/QuestionDialog.atlas", Handler.create(null)); 对应的场景代码里: var dialog = new QuestionDialogUI();          Laya.stage.addChild(dialog);          dialog.popup();   ...

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

2735. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 43%]

..."; Laya.stage.bgColor = "#232628"; //这里是我注释掉的代码 //Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); this.setup(); } private setup(): void { this.createApe(); this.showDragRegion(); } private createApe(): void { this.ape = new Sprite(); //this.ape.loadImage(this.Ap...

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

2736. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 43%]

...裁剪的透明区域)。*/ this.sourceHeight=0; /**@private */ //this._loaded=false; /**@private */ this._w=0; /**@private */ this._h=0; /**@private 唯一ID*/ //this.$_GID=NaN; /**图片地址*/ //this.url=null; /**@private */ this._uvID=0; this._atlasID=-1; /**@private */ this.scaleRate=1; Text...

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

2737. 分享:关于自定义场景继承的实现 [ 43%]

...nstructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("CustomScene"); } } REG("ui.CustomSceneUI",CustomSceneUI); }   创建runtime类 如果想方便的引用导出类的组件,应该为界面绑定runtime类。如果不使用,CustomScene只会作为BaseScene被...

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

2738. 分享:DrawToCanvas内存释放问题! [ 43%]

...,用于观察Curmem变化 //添加被截屏对象 sp= new Sprite(); sp.loadImage("bg2.png"); Laya.stage.addChild(sp); //创建DrawToCanvas命令按钮 var btnDraw:Sprite=CreateBtn(100,400); btnDraw.on(Event.CLICK,this,onClickBtnDraw); } //创建按钮 private function CreateBtn(xx:int,yy:int):Spri...

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

2739. 2D精灵光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 43%]

...例如节点被添加到舞台后 onEnable(): void { // 加载资源 Laya.loader.load("resources/spritelight.png", Laya.Loader.IMAGE).then(() => { this.setSpriteLight(); this.setDirectLight(); this.setBackground(); }); } // 配置精灵灯光 setSpriteLight(): void { this.spriteLight.pos(100,350)...

来源: Laya3.0_文档 发布时间: 20251010

2740. VScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 43%]

...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(skins, Handler.create(this, onSkinLoadComplete)); } /***加载资源完成***/ private function onSkinLoadComplete(e:*=null):void { //创建垂直滚动条 createVScroller(); } /***创建垂直滚动条***/ privat...

来源: Laya2.0_文档 发布时间: 20210715