大约有 1,766 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0077 秒)
Laya_社区(1394) Laya2.0_文档(82) Laya3.0_api(68) Laya2.0_api(57) Laya3.0_文档(53) laya_api(53) Laya_示例(32) Laya2.0_示例(27)
...锁定, 无法添加新回复 发起人 as_luck 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 请问laya有没有地图编辑器工具? Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的...
来源: Laya_社区 发布时间: 20171204
...s', Handler.create(this, onLoaded)) })() function onLoaded() { var cMask = new maskDemoUI() Laya.stage.addChild(cMask) } })() 附件 : --> 2018-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron ...
来源: Laya_社区 发布时间: 20180810
...建一个Dialog,然后放一个combobox在里面,然后再代码中,new 这个 DialogUI , popup出来,就会发现list无法点击了 romeo211 • 2017-04-25 22:47 let img = new Laya.Image('comp/bg.png'); let cbx = new Laya.ComboBox('comp/combobox.png', 'label1,label2'); cbx.selectedIndex = ...
来源: Laya_社区 发布时间: 20170425
...辑了图片 执行代码说加载不出来资源 这个是怎么回事? new Laya.Sprite();绘制图形以后,怎么删除释放资源? 分享:LayaAir下如何获取图集下的小图资源? 为什么有的图片打包,有的图片不打包? 如图 关于apk打包动画卡的问题 问...
来源: Laya_社区 发布时间: 20170205
...始化LayaAIR环境 Laya.init(1000, 800); //创建精灵 var sp:Sprite = new Sprite(); //创建渐变 var gradient=Browser.context.createLinearGradient(0,0,80,0); gradient.addColorStop(0,"white"); gradient.addColorStop(1,"red"); sp.graphics.drawRect(0, 0, 150, 150, gradient); sp.graphics.loadImage("...
来源: Laya_社区 发布时间: 20160725
...; //地址 this.img2 = "../laya/assets/comp/haoyuobang-hui.png"; var img = new Laya.Sprite(); //实例 img.width = 300; //宽高 img.height = 200; switchImg(); img.on(Laya.Event.CLICK, this, switchImg) //点击事件 Laya.stage.addChild(img); function switchImg() { img.graphics.clear(); //清除绘...
来源: Laya_社区 发布时间: 20180502
...=true', 'releasemode=normal' ] stdout: type: Linux stderr: path.js:7 throw new TypeError('Path must be a string. Received ' + inspect(path)); ^ TypeError: Path must be a string. Received undefined at assertPath (path.js:7:11) at Object.join (path.js:1211:7) at Function.FileTools.getPath (/usr/lib/no...
来源: Laya_社区 发布时间: 20170406
...wScreen(); } private function showScreen():void { //图片 var img:Image = new Image(); img.centerX = 0; img.centerY = -70; img.skin = "res/monkey2.png"; Laya.stage.addChild(img); //文字 var text:Label = new Label(); text.text = "游戏的水平方向"; text.color = "gray"; text.fontSize = 100; te...
来源: Laya2.0_文档 发布时间: 20210714
...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
...tends ui.test.TestSceneUI { private mat1: Laya.BlinnPhongMaterial; private newScene: Laya.Scene3D; private sMapRes = "remote/model/res/Conventional/map1.ls" private sBullRes = "remote/model/res/Conventional/bull.lh" private sEnemyRes = "remote/model/res/Conventional/man_1.lh" constructor() { super()...
来源: Laya_社区 发布时间: 20200720