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

大约有 6,906 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0172 秒)

881. drawToTexture截大图有问题,会丢失 [ 87%]

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

882. 使用mask动画出现内存泄露问题(附重现示例DEMO) [ 87%]

...DEMO) 如题的mask动画,播放的方式是,在每帧创建不同的Sprite,并在Sprite上用graphic画上扇形,然后再设置到mask属性上。   导致的问题是 1. 在Chrome的Memory分页,看到虚拟机内存持续增加 2. 在Chrome的Memory分页截取不同时间的快照...

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

883. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 87%]

...,总是报这个错,大神帮我看下 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

884. laya.d3.component.animator.AnimatorResource_API3.0 [ 87%]

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

885. 分享:销毁龙骨动画! [ 87%]

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

886. Box2D使用Destory join报错? [ 87%]

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

887. List组件如何提升性能 [ 87%]

...有变化,可能是缓存为位图后影响显示效果,此时显示的sprite数量和drawcall数量都很小,滑动起来后sprite和drawcall数量飙升,设为normal后显示正常,滑动起来后sprite数量也是飙升,滑动结束恢复正常。 cacheContent,API中描述是否缓...

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

888. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 87%]

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

889. sprite 的getBounds()方法怎么回事,我怎么获取不出来啊 [ 87%]

sprite 的getBounds()方法怎么回事,我怎么获取不出来啊 其中list是一个view.list是一个列表可以获取getBounds(),但是test1和test2两张图片怎么回事,宽带都能打印出来就是获取不到getBounds(),获取出来都是0,这到底怎么回事   附...

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

890. DialogManager怎么添加遮罩层 [ 87%]

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