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

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

231. 怎么绘制sprite的内容到texture上 [ 94%]

怎么绘制sprite的内容到texture上 2018-11-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 柒汐夜 赞同来自: new Laya.Texture(sprite.drawToCanvas(w,h,x,y)) 2018-11-28 0 0 分享 微博 QZONE 微信 ...

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

232. 为什么list被sprite遮住,list还是可以滑动 [ 94%]

为什么list被sprite遮住,list还是可以滑动 创建一个全屏半透明的sprite遮住list,mouseThrough默认是false,被遮住的list还是可以滑动 2017-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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

233. laya.d3.core.light.SpotLight [ 94%]

...kagelaya.d3.core.lightClasspublic class SpotLightInheritanceSpotLight LightSprite Sprite3D ComponentNode Node EventDispatcher Object SpotLight 类用于创建聚光。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自...

来源: laya_api 发布时间: 20170929

234. APP打包后运行效果与调试效果不一致(sprite,child) [ 94%]

APP打包后运行效果与调试效果不一致(sprite,child) Laya.timer.frameLoop(1,this,this.run()); public run():void{    var childs:Array<Laya.Sprite> = this._childs;    childs.sort(this.sortHandler); } public sortHandler(left:Laya.Sprite,right:Laya.Sprite):number{    return left.y...

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

235. laya.ui.Box_API3.0 [ 94%]

...eChildren?: boolean): Box Inherited from UIComponent.constructor Overrides Sprite.constructor Defined in laya/ui/UIComponent.ts:24 创建一个新的 Component 实例。 Parameters Default value createChildren: boolean = true Returns Box Properties Optional _extra _extra: INodeExtra Inherited from N...

来源: Laya3.0_api 发布时间: 20231115

236. 关于对象池Laya.Pool的用法 [ 94%]

...化的教程中内存优化,关于对象池的用法有些疑问,var SPRITE_SIGN = 'spriteSign'; var sprites = []; function initialize() { for (var i = 0; i < 1000; i++) { var sp = Pool.getItemByClass(SPRITE_SIGN, Sprite) sprites.push(sp); Laya.stage.addChild(sp); } } initialize(); Laya.stage...

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

237. laya.ui.Panel_API3.0 [ 94%]

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

238. 大量sprite如何优化性能 [ 94%]

大量sprite如何优化性能 目前在做一个贪吃蛇大作战的游戏,地图上显示的豆子有500个左右,在canvas模式下,有约500个drawcall,该如何优化?通过chrome浏览器性能分析,大部分时间消耗在渲染这块儿。 2017-09-02 添加评论 免费帖 -->...

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

239. laya.ui.TipManager_API3.0 [ 94%]

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

240. 获取sprite对象的 width和height为0 [ 94%]

获取sprite对象的 width和height为0  /** * 船 */ class Boat extends Laya.Sprite { private bt:Laya.Sprite; constructor() { super() this.bt = new Laya.Sprite() this.bt.loadImage("res/boat.png") this.addChild(this.bt) } } /** * 游戏背景 */ class BackGround extends Laya.Sprite { //背景图 ...

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