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

大约有 1,122 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)

1011. 图集打包后使用Texture不显示,项目整个已经传上来了 [ 52%]

...xture = Laya.loader.getRes("start/sg.png"); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); Laya.stage.addChild(sp); var ani: Laya.Animation = new Laya.Animation(); ani.loadAtlas("res/start.json"); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ...

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

1012. HTMLDivElement 垂直居中的问题 还没解决么? [ 52%]

....8 json图集加载问题 我这样载入场景问题出现在哪呢?? graphics alpha 问题 HTMLDivElement 2.0 排版问题 问题状态 最新活动: 2018-08-03 11:19 浏览: 1150 关注: 2 人 清水煮豆 • 2018-08-06 21:10 let str ="   <span style='color...

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

1013. ide创建的.ani文件中的属性pivotX和pivotY,代码中animation实例中要怎么获取 [ 52%]

...ar ani:Animation = new Animation(); ani.loadAnimation("role.ani"); var gra:Graphics = ani.frames[0]; var texture:Texture = gra._one[0];//取得纹理 //如何取得纹理的pivotX和pivotY 如何取得role.ani配置中的pivotX和pivotY 2018-02-03 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

1014. 不规则图形遮罩 显示出来的内容与画的遮罩图形不相同 [ 52%]

...);             maskSP = new Sprite();             maskSP.graphics.drawPath(0, 0,maskSPArr, {fillStyle: "#00ffff"});             bg.mask = maskSP; Laya.stage.addChild(maskSP); 显示出来的遮罩比画的图形多了一块 在线等答复   各个大大们   附件 : -...

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

1015. TypeError: Cannot read property 'GetType' of null [ 52%]

... TypeError: Class constructor Sprite cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function Cannot read property 'events' of undefined 引擎SWF动画示例,提示 TypeError: MovieClip is not a constructor Uncaught TypeErro...

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

1016. 移动Sprite时,边缘闪烁 [ 52%]

...tion () { function tankSprite() { this.speed_x = 3; this.speed_y = 4; this.graphics.drawRect(0, 0, 90, 90, '#aabbcc', '#bbccdd', 1); Laya.stage.addChild(this); var lastTimestamp = 0; var count = 0; var totale = 0; Laya.timer.frameLoop(1, this, function test() { var deltaTime = new Date().getTime() -...

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

1017. 新手引导 混合模式在浏览器全屏有问题 会显示黑框 blendMode = "destination-out" [ 52%]

...-06-04 13:30 浏览: 1598 关注: 3 人 ryan • 2018-12-17 19:28 应该是graphics 的大小一旦超过2016,混合模式就不起作用了。 sean • 2018-12-18 15:34 暂时没解决,直接判断超过这个像素就不画这个blendMode了 ryan • 2018-12-21 09:33 @Sean:另辟蹊径解决...

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

1018. 【分享】圆形进度条上图片跟随进度并旋转角度 [ 52%]

...百分比 */ private onLoading(percent: number): void { this.view.box_mark.graphics.drawPie(216, 216, 216, -90, (-90 + Math.floor(percent * 360)), "#ff0000"); //画进度 let point: { x: number, y: number, hudu: number } = this.cal(216, 216, 205, Math.abs(Math.floor(percent * 360) ) - 90); //现在...

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

1019. import自己写的类,new出来后为什么一片漆黑 [ 52%]

...{ export class BaseNPC extends Laya.Sprite { constructor() { super(); this.graphics.drawCircle(0, 0, 10, "#ff0000"); } } }   然后在我的主文件中import,并new出来。代码如下:import BaseNPC = npc.BaseNPC; var npcc:BaseNPC = new BaseNPC(); 只要我new它,都没addChild到舞台上...

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

1020. LayaAir复杂数据对象 预加载 [ 52%]

...预加载后获取到的是一个Texture类型对象,可以直接通过graphics.drawTexture显示   2016-05-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Jackevent 相关问题 两个对象new了一个相同的对象,调用第...

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