大约有 3,990 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0067 秒)
Laya_社区(2836) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(55)
...赞同来自: 就是一步一步按照文档走的 //创建动画实例 var roleAni = new laya.display.Animation(); // 加载动画图集,加载成功后执行回调方法 roleAni.loadAtlas("http://10.10.20.58/chicken/res ... ot%3B,laya.utils.Handler.create(this,function(){ //添加到舞台 Laya...
来源: Laya_社区 发布时间: 20180322
... public function get boundBox():OrientedBoundBoxcenterproperty public var center:Vector3 中心点 sizeproperty size:Vector3 获取盒子碰撞器长宽高的一半。 Implementation public function get size():Vector3 public function set size(value:Vector3):voidConstructor Detail...
来源: laya_api 发布时间: 20170929
...tivityLimitedTask.prototype.onItemUpdate = function(_cell, _index) { var data = this.mList_.task_info[_index]; if (data) { _cell.layer_one.visible = (-1 == data.task_id); _cell.layer_two.visible = !_cell.layer_one.visible; _cell.height = (-1 == data.ta...
来源: Laya_社区 发布时间: 20191111
...new Food("菜品4", "4", 3)); foodArray.push(new Food("菜品5", "5", 4)); var list:List = new List(); list.itemRender = Food; list.array = foodArray; list.repeatX = 1; list.repeatY = foodArray.length; list.renderHandler = new Handler(this, onListRender); Laya.stage.addChild(list); } private functio...
来源: Laya_社区 发布时间: 20180407
...(url) && !MiniFileMgr.getFileInfo(Laya.URL.formatURL(url))) { var tempUrl = Laya.URL.formatURL(url); if (url.indexOf(MiniAdpter.window.wx.env.USER_DATA_PATH) == -1 && (tempUrl.indexOf("http://") != -1 || tempUrl.indexOf("https://") != -1)) { if (MiniA...
来源: Laya_社区 发布时间: 20191129
...如代码 方法一: function renderHandler(item:box,index:int):void { var button:Button = item.getChildByName("buton") as Button;(名字是你在ide里自己设定的) button.on(事件注册) } 方法二: list组件.itemRender = UI页面 function renderHandler(item:UI页面,index:int):void...
来源: Laya_社区 发布时间: 20171128
...dule.js生成均只有以下内容 (nction(window,document,Laya){ var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__getset=Laya.getset,__newvec=Laya.__newvec; })(window,document,Laya); 2017-02-09 0 0 分享 微博 QZONE 微信 joe51586 赞同来自: 这个问题就...
来源: Laya_社区 发布时间: 20170204
...ground-color: #000000; background-color: rgba(0, 0, 0, 0.9)} span.s1 {font-variant-ligatures: no-common-ligatures} yaotekejirigala:~ root# npm install layacmd -g/usr/local/bin/layacmd -> /usr/local/lib/node_modules/layacmd/layacmd.js > electron@1.8.6 postinstall /usr/local/lib/node_modules/lay...
来源: Laya_社区 发布时间: 20180508
... 无加载失败重试 Laya.loader.retryNum = 0; var urls: any = ["do not exist", "resources/res/fighter/fighter.png", "resources/res/legend/map.jpg"]; Laya.loader.load(urls, Laya.Loader.IMAGE, this.onLoading).then(() => { this.o...
来源: Laya_社区 发布时间: 20240705
...(){ //创建舞台 Laya.init(600, 300);//舞台默认背景色是黑色的 var txt:Text = new Text(); txt.text = "Hello, World!"; //设置文本颜色 txt.color = '#FF0000'; //设置文本字体大小,单位是像素 txt.fontSize = 66; //设置字体描边 txt.stroke = 5; //描边为5像素 txt.st...
来源: Laya_社区 发布时间: 20180914