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

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

981. 使用Laya.loader.load加载服务上的图片资源,为什么会停顿几秒中才显示 [ 52%]

...load("http://www.xxxxxxx.com/gold.png",Laya.Handler.create(this,this.aa)); private aa(){ let img = new Laya.Image("http://www.xxxxxxx.com/gold.png"); Laya.stage.addChild(img); } 请问下,这样写有声明不对么 ? 2018-04-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

982. ts定义数组,执行shift方法报红,但是效果没问题 [ 52%]

...行shift方法报红,但是效果没问题,谢谢指教 数组定义 private showArr:Array<any> = []; 附件 : --> 2017-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 你...

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

983. 加载图片显示为黑屏(附代码),为什么? [ 52%]

...t laya.ui.Panel; import laya.utils.Handler; public class LayaSample { private var rule_ct; public function LayaSample() { Laya.init(640, 1136, WebGL); Laya.stage.bgColor = "#CCBBAA"; var panel = new Panel(); Laya.stage.addChild(panel); panel.size(460, 704); rule_ct = new Sprite...

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

984. laya.spine.js问题以及spine.core.js问题 [ 52%]

...,因为parseSpineAni会报错,导致ERROR事件也抛不出去。   private loop() { if (this.assetManager.isLoadingComplete()) { this.parseSpineAni(); return; } if (this.assetManager.hasErrors()) { this.event(Event.ERROR, "load failed:" + this.assetManager.getErrors()); return; } Laya.timer.fr...

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

985. 动画状态脚本(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 52%]

...t default class AnimatorStateScriptTest extends Laya.AnimatorStateScript { private _text:Laya.Text; constructor() { super(); } get text():Laya.Text { return this._text; } set text(value) { this._text = value; } /** * 动画状态开始时执行。 */ onStateEnter() { console.log("动画开始播放...

来源: Laya2.0_文档 发布时间: 20210715

986. 为什么SOCKET接收数据BYTE内存会越来越大 [ 51%]

...数据大小是一致的; 但在google监视内存发现内存越来越大 private receiveHandler(msg: any = null): void { ///接收到数据触发函数 this._msgByte.clear(); this._msgByte.writeArrayBuffer(msg);//把接收到的二进制数据读进byte数组便于解析。 this._msgByte.pos = 0;/...

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

987. Laya引擎bug [ 51%]

...bug laya分析文本换行源码内有bug laya.core.js内。 /**     *@private     *分析文本换行。     */     __proto.parseLines=function(text){         var needWordWrapOrTruncate=this.wordWrap || this.overflow==Text.HIDDEN;         if (needWordWrapOrTruncate){...

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

988. 1.7.18beta下转换3D坐标不正确 [ 51%]

... Laya.Stage.SCALE_SHOWALL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; private animate(): void {    this._position.x = Math.sin(this.scaleDelta += 0.01);    this.layaMonkey3D.transform.position = this._position;    this.camera.viewport.project(this.layaMonkey3D.transform.position, this.cam...

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

989. 发布到微信小游戏后Timer的getHandler报错了 [ 51%]

...的code.js, 是在Timer的这个函数中,获取$_TID时报错了 /**@private */ __proto._getHandler=function(caller,method){ var cid=caller ? caller.$_GID || (caller.$_GID=Utils.getGID()):0; var mid=method.$_TID || (method.$_TID=(this._mid++)*100000); return this._map[cid+mid]; } 请教一下...

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

990. 2.0 beta UI Button无法获取 [ 51%]

...nstructor() { super(); this.btn_attack.on("click", this, this.onAttack); } private onAttack(): void { // TODO } } 上面代码,btn_attack 按钮是 undefined 对象,没有被初始化的,是我做法不对么?? 另外,试了其他UI,加入Button组件,都是没有被初始化的,...

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