大约有 392 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0042 秒)
Laya_社区(261) Laya2.0_文档(45) Laya3.0_api(21) Laya3.0_文档(20) laya_api(15) Laya2.0_api(13) Laya2.0_示例(10) Laya_示例(7)
...有答案。 @Baibai • 2019-09-29 22:55 对了。关键代码: var a = new Laya.View(); a.createView(box); 看API文档关于View的就知道了。 金木炎 • 2020-07-22 15:07 按常理说直接load完,生成在任意指定节点下不就完了吗,结果搞这么一圈,这引擎够沙...
来源: Laya_社区 发布时间: 20180823
...引擎才发现 LAYA 真的太太太太好用了!!!! 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 请问有没有方法能够获取“鼠标是否处于按...
来源: Laya_社区 发布时间: 20190714
...加入舞台时报错 示例代码: var div=Laya.HTMLCanvas.create=new HTMLCanvas("2D"); div.size(600,400); Laya.stage.addChild(div); console.log(div); var myChart = echarts.init(div.getCanvas()); // 指定图表的配置项和数据 var option = { title: { tex...
来源: Laya_社区 发布时间: 20180626
...uper(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMouse) } onOpened(param: any) { super.onOpene...
来源: Laya_社区 发布时间: 20180724
...在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 Dialog和View用destroy和Laya.stage.removeChild有什么区别? 求解:2D项目中加载View,Laya.Scene.load应该如何使用? 关于打包图集时的图片默认属性与repeat的区别 di...
来源: Laya_社区 发布时间: 20180426
... { //创建地图对象 tiledMap = new TiledMap(); //创建Rectangle实例,视口区域 viewRect = new Laya.Rectangle(0,0,0,0); mX = mY = 0; //创建地图,适当的时候调用destory销毁地图 ...
来源: Laya_社区 发布时间: 20180612
...; } private function createAnimation(_e:*=null):void { var ani:Animation = new Animation(); ani.loadAtlas(AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.play(); // 播放图集动画 // 获取动画的边界...
来源: Laya_社区 发布时间: 20170628
...a.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Laya.Image(); //this.text = new Laya.Label(); this.addChild(this.img); //this.addChild(this.text); } public setImg(src: string): void { this.img.skin = src; ...
来源: Laya_社区 发布时间: 20180507
...叠 要回复问题请先登录 发起人 NPC峰 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 编译调试启动chrome出现错误: Error processing launch: Error Could not attach to main target 加载到舞台的3D模型不显示...
来源: Laya_社区 发布时间: 20230506
...,想要代码动态生成,需要自己用代码写一个类,然后再new。 2018-06-07 0 6 分享 微博 QZONE 微信 月九 赞同来自: let box: Laya.Sprite = Laya.Pool.getItemByCreateFun("dropBox", this.dropBox.create, this.dropBox); 最新版本的引擎,创建预设只有这一个方...
来源: Laya_社区 发布时间: 20180607