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

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

81. laya.display.Animation [ 86%]

...mation AnimationPlayerBase Sprite Node EventDispatcher Object Animation 是Graphics动画类。实现了基于Graphics的动画创建、播放、控制接口。 本类使用了动画模版缓存池,它以一定的内存开销来节省CPU开销,当相同的动画模版被多次使用时,相比...

来源: laya_api 发布时间: 20170929

82. 小图集内存较大,且不能清理掉 [ 85%]

...图集能清除掉么? private function onLoad(tex:Texture):void { var g:Graphics = new Graphics(); g.drawTexture(tex, 0, 0); _s.graphics = g;        Laya.timer.once(2000, this, onClear); } private function onClear():void { _s.graphics.clear(); _s.destroy(true); _s.removeSelf(); _s...

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

83. laya.display.Animation [ 85%]

...nceAnimation AnimationBase Sprite Node EventDispatcher Object Animation 是Graphics动画类。实现了基于Graphics的动画创建、播放、控制接口。 本类使用了动画模版缓存池,它以一定的内存开销来节省CPU开销,当相同的动画模版被多次使用时,相比...

来源: Laya2.0_api 发布时间: 20190513

84. WebGL下透明度的问题 [ 85%]

WebGL下透明度的问题 我在WebGL模式下的一个View里用Graphics画了黑色的底色 然后上面有一张图片 对View设置了alpha为0.9,这时graphics绘的底色透明度生效了,可以隐约看见背后的内容,但是图片完全没有透明值,请问下是什么原因...

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

85. 半透明的矩形鼠标穿透问题 [ 85%]

...鼠标穿透问题 //画矩形 this.addLabel = new Sprite(); this.addLabel.graphics.drawRect(0, 730, 1440, 170, "#000000"); this.addLabel.alpha = 0.6; this.addLabel.mousethrough = false; this.addLabel.mouseEnabled = true; sp.addChild(this.addLabel); 仍然能够点击下面的按钮.这个要怎么...

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

86. hitArea用法问题 [ 85%]

...,点击则可正常关闭); 请指教!  // 写法一 let g:Laya.Graphics = new Laya.Graphics(); g.drawRect(this.closeBtn.x-10,this.closeBtn.y-10,this.closeBtn.width+20,this.closeBtn.height+20,"#FF0000"); let hitA:Laya.HitArea = new Laya.HitArea(); hitA.hit = g; this.closeBtn.hitArea = hitA;...

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

87. scrollrect的bug? [ 83%]

...人 jacksing888 • 2017-03-30 11:20 var containr = new Sprite(); containr.graphics.drawRect(0,0,200,200,'#ff0000') containr.size(200,200); containr.pivot(100,100); containr.x = 200 containr.y = 200 senceLayer.addChild(containr); var rect = new Rectangle(0,0,200,200); containr.scrollRect = rect; var...

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

88. Sprite.loadImage();问题 [ 82%]

...链接 提交 2 个回复 Monica - 知识达人 赞同来自: 应该是sp.graphics.clear(); 2017-10-19 0 2 分享 微博 QZONE 微信 laya21126 赞同来自:         /**          * 初始化 地图          */         public function initMap(texture:Texture, bgID:int):void{ ...

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

89. 自动旋转后残影 [ 82%]

...:void{ ChangeSize(); if(_tip) _tip.destroy();   _tip = new Sprite(); _tip.graphics.drawRect(0,0,100,100,"#FFFFFF"); _tip.size(100,100); Laya.stage.addChild(_tip);   Tween.to(_tip,{y:Browser.height - _tip.height,x:Browser.width-_tip.width},2000,null); } } }     附件 : --> 2019-05-20 添加评...

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

90. WebGL 绘制图形报错 [ 82%]

...下: Laya.init(1136, 640, WebGL ); var mask :Sprite = new Sprite(); mask.graphics.save(); mask.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height, 0xff0000 ); mask.graphics.restore(); mask.x = 0; mask.y = 0; Laya.stage.addChild( mask ); 麻烦看下是什么问题。   附件 : --> 2017...

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