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

大约有 1,654 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0147 秒)

631. 当屏幕尺寸,缩放模式,横竖屏 发生改变时会报错Uncaught TypeError: Cannot read property 'length' of null [ 69%]

...决,当destroy函数调用时会把子节点销毁,所以public function get numChildren(){} 被调用时child为空 所以报错,算是引擎的bug吧,将原函数改为public function get numChildren():int {             trace(this);             if (!this._childs){         ...

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

632. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 69%]

...;} this._padding = v; if(this.text){ this.createFnt(this.text); } } public get padding(): number{ return this._padding; } /** * 文本内容 */ public set text(v: string) { if (v === this._text) { return; } this._text = v; this.createFnt(v); } public get text(): string { return this._text; } /** * ...

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

633. laya.d3.core.scene.Scene [ 69%]

...据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图像,...

来源: laya_api 发布时间: 20170929

634. 截屏无法实现 [ 69%]

截屏无法实现 View gameView = mPlugin.game_plugin_get_view(); this.setContentView(gameView); 这个gameView应该就是游戏显示视图,但获取出来是空的,屏幕保存成文件全是黑的 现在不知道用什么方法进行截屏了 2017-04-23 添加评论 免费帖 --> 分享 ...

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

635. laya.media.SoundChannel_API3.0 [ 68%]

...efined in laya/media/SoundChannel.ts:12 声音地址。 Accessors duration get duration(): number Defined in laya/media/SoundChannel.ts:51 获取总时间,单位是秒。 Returns number position get position(): number Defined in laya/media/SoundChannel.ts:44 获取当前播放时间,单位是秒...

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

636. layacmd 安装不成功 [ 68%]

... that this fails on your system: npm ERR! node install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs electron npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls electron npm ERR! There is likely additional log...

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

637. SCALE_FIXED_WIDTH适配屏幕的问题 [ 68%]

...ame(Laya.stage);                 if (!this._roomId && this.getGets()["roomId"]) {                     this._roomId = parseInt(this.getGets()["roomId"]);                 }                 if (this._roomId) {                     game.enterRoom(this._...

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

638. laya.display.Node [ 68%]

...一次某函数(基于帧率)。功能同Laya.timer.frameOnce()。 Node  getChildAt(index:int):Node 根据子节点的索引位置,获取子节点对象。 Node  getChildByName(name:String):Node 根据子节点的名字,获取子节点对象。 Node  getChildIndex(node:Node):int 根据子...

来源: Laya2.0_api 发布时间: 20190513

639. laya.ui.Panel [ 68%]

...据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的...

来源: laya_api 发布时间: 20170929

640. laya.d3.core.particleshuriken.module.TextureSheetAnimation_API3.0 [ 68%]

...Animation.ts:18 类型,0为whole sheet、1为singal row。 Accessors frame get frame(): FrameOverTime Defined in laya/d3/core/particleShuriKen/module/TextureSheetAnimation.ts:31 获取时间帧率。 Returns FrameOverTime startFrame get startFrame(): StartFrame Defined in laya/d3/core/particleShuriK...

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