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

大约有 6,956 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0247 秒)

2441. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 67%]

...);         } 2.color="#0"程序崩溃              var _mDown:Sprite=new Sprite();             _mTop.graphics.drawRect(0,0,1,1,"#0");     3.叠加效果 BlendMode.ADD,apk中无效   4.MouseManager.as 运行 时报错,“ touchemoves is undefined”               ...

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

2442. iOS环境浏览器使用mask黑屏 [ 67%]

...,在GameControl onEnable中执行如下代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2. 使用iphone手机的s...

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

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

... = 1; let txArray = ; for (let i = 0; i <20; ++i) { let list = new Laya.Sprite(); list.width = 600 ; list.height = 155; list.loadImage('xxx.png'); //此处无论是这样给 list.on(Laya.Event.CLICK, this, () => { console.log(413132131) }) //还是在handler中去渲染,都会滚动不了 tx...

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

2444. 在 tiledmap 插入一个精灵在上面 [ 67%]

...是格子 class GameInfo{ private tiledMap: Laya.TiledMap; private sp:Laya.Sprite;   constructor(){   console.info("start");   this.init(); } init():void{   Laya.init(800, 700, Laya.WebGL);   Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLA...

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

2445. 调试辅助工具打开以后,运行是黑屏,有人知道咋回事吗 [ 67%]

...被折叠 要回复问题请先登录 发起人 156*****130 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的定义!导致运行时 找不到类的定义!这是为什么? ...

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

2446. 某些机型drawToCanv绘图颜色变深 [ 67%]

...精灵显示试试呢,不要用浏览器的 var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture  var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位...

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

2447. 一个LayaAir moveout target 设计上的疑问? [ 67%]

...  for (var j = 0; j < 10; j++) {         sp[j + i * 10] = new Laya.Sprite();         Laya.stage.addChild(sp[j + i * 10]);         sp[j + i * 10].graphics.drawRect(0, 0, 50, 50, "black");         sp[j + i * 10].size(50, 50);         sp[j + i * 10].pos(i * 60, j * 60);      ...

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

2448. unity导出的3D动画模型,导入 laya环境报错: node._setParent is not a function [ 67%]

...入 laya环境报错: node._setParent is not a function var role3D: Laya.Sprite3D = Laya.loader.getRes("res/lk4.lh") as Laya.Sprite3D; //加载到场景 scene.addChild(role3D);  //此处报错 var ani = role3D.getComponent(Laya.Animator) as Laya.Animator; //播放攻击状态 ani.play(); chrome ...

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

2449. 关于Graphics中drawPath方法使用arcTo的bug [ 67%]

...圆弧,绘制出来   尝试了一下,这个参数 let sp = new Laya.Sprite(); Laya.stage.addChild(sp);   var dx = 0; var dy = 0; var x0 = 100 + dx; var y0 = 100 + dy; var x1 = x0 + 100; var y1 = y0; var x2 = x0; var y2 = y0 + 100;   var r = 50; let path = [ ["moveTo", x0, y0], ["arcTo", x1, ...

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

2450. 环形进度条 [ 67%]

...Update中一直调用才行? Laya_Aaron • 2017-12-11 20:44 先new一个sprite sp,再画,注意是sp.graphic.drawCircle(参数); 颜色用十六进制代码类似"#D2691E" 建议认真看一下如何绘制矢量图,以及调整参数,也可以用ide 直接 拖拽出圆和扇形...

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