大约有 6,906 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0172 秒)
Laya_社区(6235) Laya2.0_文档(147) Laya3.0_api(118) laya_api(102) Laya2.0_api(90) Laya_示例(86) Laya3.0_文档(71) Laya2.0_示例(57)
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
...DEMO) 如题的mask动画,播放的方式是,在每帧创建不同的Sprite,并在Sprite上用graphic画上扇形,然后再设置到mask属性上。 导致的问题是 1. 在Chrome的Memory分页,看到虚拟机内存持续增加 2. 在Chrome的Memory分页截取不同时间的快照...
来源: Laya_社区 发布时间: 20190306
...,总是报这个错,大神帮我看下 package view { import laya.display.Sprite; import laya.renders.Render; import laya.utils.Browser; public class Retitution extends Sprite { private const stageWidth:int = 800; private const stageHeight:int = 600; private var Matter:Object = Browser.window.Matter...
来源: Laya_社区 发布时间: 20171214
...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
... 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
...有变化,可能是缓存为位图后影响显示效果,此时显示的sprite数量和drawcall数量都很小,滑动起来后sprite和drawcall数量飙升,设为normal后显示正常,滑动起来后sprite数量也是飙升,滑动结束恢复正常。 cacheContent,API中描述是否缓...
来源: Laya_社区 发布时间: 20170227
...ic title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat = new Laya.StandardMaterial(); sprite3DMat.cull = Laya.BaseMaterial.CULL_NONE; var imageData = this.canvasWrapText({c...
来源: Laya_社区 发布时间: 20180814
sprite 的getBounds()方法怎么回事,我怎么获取不出来啊 其中list是一个view.list是一个列表可以获取getBounds(),但是test1和test2两张图片怎么回事,宽带都能打印出来就是获取不到getBounds(),获取出来都是0,这到底怎么回事 附...
来源: Laya_社区 发布时间: 20180118
...ogManager怎么添加遮罩层 var dialogManager =new DialogManager(); var sprite1=new Laya.Sprite(); sprite1.loadImage("scdlb/首充大礼包通用素材/通用素材/背景黑色蒙版.png",0,0,1600,1080); this.scTipsPg= new ScTpisUI(); console.log(this.scTipsPg.manager); this.scTipsPg.manager=dia...
来源: Laya_社区 发布时间: 20191031