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

大约有 3,084 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0069 秒)

1051. popupEffect 有谁能告诉我dialog的这个东西要怎么用啊? [ 78%]

... dialog.scale(1, 1);             Tween.from(dialog, {x: Laya.stage.width / 2, y: Laya.stage.height / 2, scaleX: 0, scaleY: 0}, 300, Ease.backOut, Handler.create(this, this.doOpen, [dialog]));         } 2018-06-21 0 2 分享 微博 QZONE 微信 1553745787用户 赞同来自: clas...

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

1052. webgl文字显示不齐 [ 78%]

...t txt; txt = new Laya.Text(); txt.text = "abcde"; txt.fontSize = 100; Laya.stage.addChild(txt); txt = new Laya.Text(); txt.text = "我们是最好的"; txt.fontSize = 50; txt.x = 0; txt.y = 300; txt.scale(2,2); Laya.stage.addChild(txt);在laya2.0版本里,上面第二个文字显示不齐, log...

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

1053. laya.ui.ColorPicker [ 78%]

...设置为true后,会变灰并且禁用鼠标。UIComponent displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像...

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

1054. 请问有没有方法能够获取“鼠标是否处于按下状态”? [ 78%]

...没有方法能够获取“鼠标是否处于按下状态”? 比如Laya.stage.XXXXX()之类的 2017-04-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 189*****192 赞同来自: zhang92tong 、cuixueying 、Za...

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

1055. bitmapFont.loadFont()加载多个地址导致位图输出重 [ 78%]

...; txt.text=value1; txt.font =this.fontName; txt.leading = 30; txt.pos(Laya.stage.width - txt.width >> 1, Laya.stage.height - txt.height >> 1); Laya.stage.addChild(txt); } 附件 : --> 2019-07-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

1056. 发布Oppo小游戏屏幕适配bug [ 78%]

...函数重置ui。注释掉就好了。自问自答,希望有用。 Laya.stage.on(Laya.Event.RESIZE, this, this.resize);     static resize(): void { // let w = this.config.width; // let h = this.config.height; // let screen_wh_scale = Laya.Browser.clientWidth / Laya.Browser.clientHeight; // if (L...

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

1057. 请问2.0射线到底如何使用呢? [ 78%]

...线)   function 构造函数() { // 添加鼠标点击事件 Laya.stage.on( Event.MOUSE_DOWN, this, onMouseDown ); // 射线初始化 ray = new Ray( new Vector3(0,0,0), new Vector3(0,0,0) ); } // 鼠标点击方法 function onMouseDown(){     // 获取鼠标在屏幕点击的位置   ...

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

1058. laya中js 如何实现Sprite类继承 [ 78%]

...ole = new Role(); this.RoleMap = new Laya.Sprite(); this.RoleMap.size(Laya.stage.width, Laya.stage.height/2); Laya.stage.addChild(this.RoleMap); this.RoleMap.addChild(this.Role); this.Role.pivot(16,24);// 图片32x48 this.Role.pos(100, 200);   Role.js基础代码: var Role = ( function ( _super )...

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

1059. [LayaAirIDE3]2d相机打包后问题 [ 78%]

...ndEvents();                 // 监听全局事件         Laya.stage.on("DIALOG_SHOW", this, this.disable);         Laya.stage.on("DIALOG_HIDE", this, this.enable);     }      onDestroy() {         // 移除事件监听         Laya.stage.off("DIALOG_SHOW", this, this.di...

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

1060. parameter 2 is not of type 'WebGLTexture' [ 78%]

...raphics.drawImage(interceptT, 0, 0, btn_edit.width, btn_edit.height); Laya.stage.addChild(img);     如图和代码(一个按钮点击后draw图然后加入stage) 只要添加至stage后,随后就会出现这个错误,跟踪查到传入的不是WebGLTexture而是一个canvas,应该是渲...

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