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

大约有 1,766 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0077 秒)

911. 动画编辑修改任意一组其中一帧导致所有帧都被默认相同 [ 63%]

...锁定, 无法添加新回复 发起人 as_luck 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 请问laya有没有地图编辑器工具? Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的...

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

912. 技术文档中的示例js运行报错 [ 63%]

...s', Handler.create(this, onLoaded)) })() function onLoaded() { var cMask = new maskDemoUI() Laya.stage.addChild(cMask) } })()   附件 : --> 2018-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron ...

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

913. 请问ts版本下的Combobox组件,下拉框层级问题,是不打算改了吗? [ 63%]

...建一个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

914. LayaAir.exe IDE 资源打包问题 [ 63%]

...辑了图片 执行代码说加载不出来资源 这个是怎么回事? new Laya.Sprite();绘制图形以后,怎么删除释放资源? 分享:LayaAir下如何获取图集下的小图资源? 为什么有的图片打包,有的图片不打包? 如图 关于apk打包动画卡的问题 问...

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

915. graphics颜色填充fillColor问题 [ 63%]

...始化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

916. 切换位图,点击图片距离容器的区域也会触发点击事件 [ 63%]

...; //地址 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

917. layacmd 报错 [ 63%]

...=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

918. 屏幕方向:自动横屏与自动竖屏的设置详解(ActionScript-LayaAir基础篇(AS3)-屏幕适配) [ 63%]

...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

919. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 63%]

...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

920. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 63%]

...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