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

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

161. ios升级到15.4后游戏会一直闪屏,可重现demo见附件 [ 59%]

...n:设置mask后会走Canvas,到_checkCanvasEnable方法走bitmap,RenderSprite里面,到_canvas_repaint方法后,if (_cacheStyle.staticCache) 这一段注释掉,每次都把reCache=false可以减缓闪烁的频率...还会闪。 c416288806 • 2022-03-25 12:12 @Laya_Yan:@c416288806:@Laya_Ya...

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

162. 怎么实现一个Timer的loop的delay时间越来越短? [ 59%]

...a.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; sp=new Sprite(); sp.graphics.drawRect(0,0,200,200,"#FF0000"); Laya.stage.addChild(sp); Laya.timer.loop(delay,this,onLoop); } private function onLoop():void { delay-=50; sp.x+=20; Laya.timer.clear(this,onLoop); Laya.timer.loop(delay,...

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

163. 分享:Panel下动态修改子容器宽高并刷新显示! [ 59%]

...态修改子容器宽高并刷新显示! package { import laya.display.Sprite; import laya.events.Event; import laya.ui.Button; import laya.ui.Panel; import laya.utils.Browser; import laya.utils.Handler; public class LayaUISample { public function LayaUISample() { // 不支持WebGL时自动切换...

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

164. iOS环境浏览器使用mask黑屏 [ 59%]

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

165. destory方法怎么用? [ 58%]

...ive 2.8.0 js 调用 oc 同步方法,有返回值的时候崩溃 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 问题状态 最新活动: 2018-06-05 20:42 浏览: 971 关注: 2 人 嘿哈 • 2018-06-05 17:55 我是用js写的,ctrl+鼠标...

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

166. 【简单跑酷--JS版】---Lv.6 终篇 [ 58%]

... Hp.HP_TYPE_SPEED = "hp_type_speed"; //Hp Laya.class(Hp,"Hp", laya.display.Sprite); var _proto = Hp.prototype; _proto.init = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.l...

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

167. laya.display.FrameAnimation_API3.0 [ 58%]

...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...

来源: Laya3.0_api 发布时间: 20231115

168. laya.ui.FrameClip [ 58%]

...lic class FrameClipInheritanceFrameClip FrameAnimation AnimationPlayerBase Sprite Node EventDispatcher Object 关键帧动画播放类 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值为0-1,默认值为1,表示...

来源: laya_api 发布时间: 20170422

169. 求绘制遮罩会引起黑屏的解决办法 [ 58%]

...录宽度 this.width_x = this.progress.width + 3;   this.vmask = new Laya.Sprite(); this.vmask.pos(15,15); this.vmask.graphics.drawPie(0, 0, 20, -90, 270, "#000000"); this.progress.addChild(this.progressvalue); this.progressvalue.mask = this.vmask;   this.changevalue = function(value) { this.targe...

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

170. 使用发光滤镜后的第一个遮罩效果无效 [ 58%]

...yObject.filters = [glowFilter];         var ui_hpBarMask = new Laya.Sprite();         ui_hpBarMask.graphics.clear();         ui_hpBarMask.graphics.drawRect(0, 0, 154, 12, 0xffffff);         this.txt_pro.displayObject.mask = ui_hpBarMask; 附件 : --> 2022-05-31 添加评...

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