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

大约有 1,273 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0063 秒)

831. 模型资源释放 [ 57%]

...放的资源配置表 Laya.loader.load([{url:assetsUrl,type:Loader.JSON}], Handler.create(this,onAssetsOK,[assetsUrl])); } /**加载资源释放表完成后**/ private function onAssetsOK(assetsUrl:String):void { //获取加载的数据(Json数组转化成数组) var arr:Array=Laya.loader.getRes...

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

832. 关于Panel的双指响应问题 [ 57%]

...setup() {         Laya.loader.load("../../res/ui/dialog (3).png", Laya.Handler.create(this, function(){     var dialog = new Image("../../res/ui/dialog (3).png");     dialog.scaleX = 2;     dialog.scaleY = 2;     var panel = new Panel();     panel.vScrollBarSkin = "";     panel.hScro...

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

833. Laya.Image怎么获取图片的真实大小 [ 57%]

...赞同来自: 无名氏 Laya.loader.load('../laya/assets/comp/bg.jpg',Laya.Handler.create(this,()=>{       this.bgImage = Laya.loader.getRes('../laya/assets/comp/bg.jpg');       console.log([this.bgImage.width,this.bgImage.height]); })); 2018-07-30 1 0 分享 微博 QZONE 微信 Laya_Aaron ...

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

834. drawTexture的matrix参数是怎么用的 [ 57%]

...据子节点对象,获取子节点的索引位置。参数是什么 Laya.Handler.create 加载图片回调参数问题 Dispather.event参数传的是数组,为什么收到的参数却是个int类型? http 请求 once 的 回调参数,如何传递和接收? 点击按钮打开对话框的时...

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

835. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 57%]

...sh({url:"res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry();   Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initVie...

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

836. List 组件做的手风琴Demo [ 57%]

...ld(list);         list.array =this.arr;         list.renderHandler =new Laya.Handler(this,this.updateItem);         this.listArr.push(list); //------------------------------------------------------------------------------ updateItem(cell:Item,index:number){          ...

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

837. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 57%]

...y.Stage; import laya.ui.Tree; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Utils; import laya.webgl.WebGL; public class UI_Tree { public function UI_Tree() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV ...

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

838. laya.display.Scene [ 57%]

...型是否是鼠标事件。 EventDispatcher  load(url:String, complete:Handler = null, progress:Handler = null):void[static] 加载场景及场景使用到的资源 Scene loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture...

来源: Laya2.0_api 发布时间: 20190513

839. Laya List给子元素添加事件后,滚动事件被劫持了 [ 57%]

...on(Laya.Event.CLICK, this, () => { console.log(413132131) }) //还是在handler中去渲染,都会滚动不了 txArray.push(list);} storeTxList.array = txArray;   Laya.stage.addChild(storeTxList);     悬赏找大神看问题 export default class StoreItem extends Laya.Box { constructor() { ...

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

840. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 57%]

...x.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private clickHandler():void{ var url:string = this.qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个...

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