大约有 7,546 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0162 秒)
Laya_社区(6825) Laya2.0_文档(183) Laya3.0_api(118) laya_api(102) Laya2.0_api(90) Laya_示例(86) Laya3.0_文档(85) Laya2.0_示例(57)
...DEMO) 如题的mask动画,播放的方式是,在每帧创建不同的Sprite,并在Sprite上用graphic画上扇形,然后再设置到mask属性上。 导致的问题是 1. 在Chrome的Memory分页,看到虚拟机内存持续增加 2. 在Chrome的Memory分页截取不同时间的快照...
来源: Laya_社区 发布时间: 20190306
... y); } tick += 0.1; } } new PerformanceTest_Maggots();module laya { import Sprite = Laya.Sprite; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat; import Rectangle = Laya.Rectangle; import WebGL = Laya.WebGL; export class PerformanceTest_Maggots { private texture...
来源: Laya2.0_示例 发布时间: 20260303
....width = 800; panel.y = 30; panel.hScrollBarSkin = null; var sp = new Laya.Sprite(); panel.addChild(sp); sp.x = 0; sp.y = 0; // 用下面这组数据是可显示的 // sp.y = 1; // sp.x = 1; sp.graphics.drawRect(0, 0, 200, 200, "#00FF00"); Laya.stage.addChild(panel); 这个是我的代码,sp是...
来源: Laya_社区 发布时间: 20170217
...tat.show(); this.setup(); } setup() { const Event = Laya.Event; this.createSprite(); Laya.stage.on(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, this.onMouseUp); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; let w = 300, h = 300; this.sp = new Sprit...
来源: Laya2.0_示例 发布时间: 20260303
...,然后修改scale属性,进行拉伸!package { import laya.display.Sprite; public class LayaAirDemo { private var sp:Sprite; private var endX:Number; private var endY:Number; public function LayaAirDemo() { Laya.init(600,600); sp=new Sprite(); Laya.stage.addChild(sp); endX=0; endY=0; sp.graph...
来源: Laya_社区 发布时间: 20170418
...hildren(); var root = cell.getChildByName('root'); if (!root) { root = new Sprite(); root.pos(0, 0); root.name = "root"; cell.addChild(root); } 。。。。。 生成的 图片 从一个场景中回来在生成 他的 子物体 Sprite 在切换场景再回来 在生成 如此多次 自后 我的 lis...
来源: Laya_社区 发布时间: 20170324
...er = 1):void 绘制一系列曲线。 富文本下划线绘制bug new Laya.Sprite();绘制图形以后,怎么删除释放资源? 使用滤镜、遮罩、或者绘制频率很高的时候回出现黑屏闪烁 如何给Sprite的graphics绘制的线条添加发光滤镜? 用sprite.graphics绘制...
来源: Laya_社区 发布时间: 20201214
... laya.ani.bone.Skeleton; import laya.ani.bone.Templet; import laya.display.Sprite; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class ASDemo { private var mAniPath:String; private var mFactory:Templet; private var mCurrIndex:int = 0; pr...
来源: Laya_社区 发布时间: 20170406
...estory join报错? 使用box2d物理系统 在destory被collider绑定的sprite时会报错 Error preload.js:55 at Object.box2d.b2Assert (file:///D:/develop/layaspace/smallballs/bin/libs/laya.physics.js:38:57) at box2d.b2World.DestroyJoint (file:///D:/develop/layaspace/smallballs/bin...
来源: Laya_社区 发布时间: 20181106
...getAnimatorResource Methods Static getAnimatorResource getAnimatorResource(sprite: Sprite3D, propertyKey: string): Component Defined in laya/d3/component/Animator/AnimatorResource.ts:8 Parameters sprite: Sprite3D propertyKey: string Returns Component Globals "laya/d3/component/Animator/AnimatorResou...
来源: Laya3.0_api 发布时间: 20231115