大约有 386 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0049 秒)
Laya_社区(176) Laya3.0_api(65) Laya2.0_api(59) laya_api(54) Laya2.0_文档(10) Laya3.0_文档(8) Laya2.0_示例(8) Laya_示例(6)
...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
...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
...态修改子容器宽高并刷新显示! 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
...,在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
...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
... 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
...: 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
...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
...录宽度 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
...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