大约有 7,515 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0164 秒)
Laya_社区(6799) Laya2.0_文档(183) Laya3.0_api(118) laya_api(102) Laya2.0_api(90) Laya_示例(86) Laya3.0_文档(80) Laya2.0_示例(57)
....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_示例 发布时间: 20251209
...er = 1):void 绘制一系列曲线。 富文本下划线绘制bug new Laya.Sprite();绘制图形以后,怎么删除释放资源? 使用滤镜、遮罩、或者绘制频率很高的时候回出现黑屏闪烁 如何给Sprite的graphics绘制的线条添加发光滤镜? 用sprite.graphics绘制...
来源: Laya_社区 发布时间: 20201214
...,然后修改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
... 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
viewport 的用法 var Sprite = Laya.Sprite; var HitArea = Laya.HitArea; var Graphic = Laya.Graphics; var Event = Laya.Event; var Layer = Laya.Layer; var Rectangle = Laya.Rectangle; function layaSlot(info){ layaSlot.__super.call(this); this.size(200,200); ...
来源: Laya_社区 发布时间: 20170323
drawToTexture截大图有问题,会丢失 private nsp:Laya.Sprite; init(): void { this.nsp=new Laya.Sprite(); this.nsp.graphics.drawRect(0,0,1600,1600,"#ff0000"); this.nsp.mouseThrough=true; Laya.stage.addChild(this.nsp); this.nsp....
来源: Laya_社区 发布时间: 20220809