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

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

521. 小图集内存较大,且不能清理掉 [ 71%]

...的图集而且清不掉,大的可以,小的图集能清除掉么? private function onLoad(tex:Texture):void { var g:Graphics = new Graphics(); g.drawTexture(tex, 0, 0); _s.graphics = g;        Laya.timer.once(2000, this, onClear); } private function onClear():void { _s.graphic...

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

522. 华为手机SoundManage.playSound有问题 [ 71%]

...[aa,bb])); 没有音效  上面执行完毕后 不会 执行soundComplete private function soundComplete(aa,bb):void { //执行代码 }   2018-03-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 qian 赞同来...

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

523. SCALE_FIXED_WIDTH适配屏幕的问题 [ 71%]

...rowser/6.2 T     代码如下,另附上demo  class Main {         private _roomId = 0;         constructor(roomId?: number) {             this._roomId = roomId;             Laya.init(750, 1218, Laya.WebGL);             Laya.Browser.document.title = 'GG游戏;       ...

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

524. 网格像素线 · LayaAir3.4 · 引擎文档 · LAYABOX [ 71%]

...Tool工具类,方便转换使用: //Tool工具类 export class Tool { private static transVertex0: Laya.Vector3 = new Laya.Vector3(); private static transVertex1: Laya.Vector3 = new Laya.Vector3(); private static transVertex2: Laya.Vector3 = new Laya.Vector3(); private static corners: Laya.Vecto...

来源: Laya3.0_文档 发布时间: 20251010

525. matter 2d 碰撞检测 [ 71%]

...is.Matter.Events.on(this._engine, 'collisionActive', this.onCollision);   private onCollision(event): void { for(var i = 0; i < event.pairs.length; i++) {  var pair = event.pairs[i];  if(pair.bodyA.label === 'gun' && pair.bodyB.label == "gameover") { this.onGameOver(); }  } }   priva...

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

526. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 71%]

...擎不兼容呢,还是代码写的不完善  class Main {         private _roomId = 0;         constructor(roomId?: number) {             this._roomId = roomId;             Laya.init(750, 1218, Laya.WebGL);             Laya.Browser.document.title = 'GG游戏;        ...

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

527. Panel初始化BUG [ 71%]

...改:这里改为取了一下当前scrollbar的值     /**      * @private      * 设置内容的宽度、高度(以像素为单位)。      * @param width 宽度。      * @param height 高度。      */     private setContentSize(width: number, height: number): void {    ...

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

528. layaAir1.3.1版本SWF组件播放速度异常 [ 71%]

...mport laya.ani.swf.MovieClip; import laya.events.Event; public class AAA { private var swf:MovieClip; public function AAA() { Laya.init(550,400); swf=new MovieClip(); swf.load("data.swf"); swf.on(Event.LOADED,this,onLoaded); Laya.stage.addChild(swf); } private function onLoaded():void { // TODO Auto...

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

529. UI-Image [ 71%]

...ode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var dialog: Image = new Image("../../res/ui/dialog (3).png"); dialog.pos(165, 62.5); Laya.stage.addChild(dialog); } } } new laya.UI_Image();package { import laya.display.Stage; import laya.ui.Image; im...

来源: Laya_示例 发布时间: 20260303

530. Laya2.0文件模式下var变量怎么引用? [ 71%]

...交 1 个回复 大光电KID 赞同来自: 爱的誓言 this["xxx"]或者 private xxx;this.xxx; 2019-05-19 1 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 爱的誓言 相关问题 2.0一不小心删了bin目录下的某个场景json文...

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