大约有 215 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0050 秒)
问下加载大量的sprite,但是同一个资源,会有性能开销不? 现在我战场上1000个小兵 如果每个小兵要新加一个阴影片,同屏的spite数会加1000...好恐怖的数字。。。 但是drawcall应该只加1 这种情况下性能会有影响不? 2016-08-19 1 条...
来源: Laya_社区 发布时间: 20160819
...鼠标mouseOver和mouseOut的问题 很简单的一个功能,创建2个sprite,一个画100*100的红色,一个画100*100蓝色,sp1的位置(0,0),sp2的位置(110,0),然后鼠标不停的通过sp1,间隙,sp2,mouseOver,mouseOut时间的顺序会出现问题导致鼠标指到sp1或sp2上的时候...
来源: Laya_社区 发布时间: 20170429
...: 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
...es/atlas/comp.json', Handler.create(this, function(){ container = new Laya.Sprite(); var x = 0,y =80; Laya.stage.addChild(container); for(var i=0;i<1200;i++){ var role = new Laya.Sprite(); x = x+0.1; y = y+0.1 role.x = x; role.y = y; role.loadImage('comp/bg.png'); container.addChild(role); var ro...
来源: Laya_社区 发布时间: 20180122
...他后添加的图片要放在先添加到舞台的层中,层就是一个sprite variation8 • 2017-12-29 10:32 我的box是存在的只是隐藏了,显示的时候如果添加了图像就会在box上方 Laya_Aaron • 2017-12-29 10:35 @variation8:逻辑问题自己设计咯
来源: Laya_社区 发布时间: 20171229
...ethods | Events Packagelaya.displayClasspublic class TextInheritanceText Sprite Node EventDispatcher ObjectSubclasses Input Text 类用于创建显示对象以显示文本。 注意:如果运行时系统找不到设定的字体,则用系统默认的字体渲染文字,从而导致显示异常...
来源: laya_api 发布时间: 20170929
...关的问题 放着不动,而且是在没逻辑的主界面,stat里的sprite数量1000个/s的速度上涨 LayaAir runtime 运行时的逻辑类 为什么laya的Button渲染逻辑顺序是先渲染,再获取素材切片? 我的项目用到了swf,swf文件内涉及到逻辑代码(链接...
来源: Laya_社区 发布时间: 20180628
...什么? 已上传 Demo 附件 TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale LayaAirIDE下如何使用mask? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏如何使用ttf字体...
来源: Laya_社区 发布时间: 20190802
...nts | Constants Packagelaya.displayClasspublic class TextInheritanceText Sprite Node EventDispatcher ObjectSubclasses Input Text 类用于创建显示对象以显示文本。 注意:如果运行时系统找不到设定的字体,则用系统默认的字体渲染文字,从而导致显示异常...
来源: Laya2.0_api 发布时间: 20190513
...entationAll Packages | All Classes | Index | Frames No Frames TileAniSpriteProperties | Methods | Events Packagelaya.mapClasspublic class TileAniSpriteInheritanceTileAniSprite Sprite Node EventDispatcher Object TildMap的动画显示对象(一个动画(TileTexSet),可以绑定多个...
来源: laya_api 发布时间: 20170929