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

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

1491. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 69%]

...create(this, __loadImageHandler)); } private function __loadImageHandler():void { _colorSpr = new Sprite(); _colorTex = Laya.loader.getRes("assets/images/color1.png"); _colorSpr.graphics.drawTexture(_colorTex); _colorSpr.cacheAs = "bitmap"; _colorSpr.pos((1024 - _colorTex.width) >> 1, (768 - _...

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

1492. sprite之bug [ 69%]

...g/post/qykings/sprite%E4%B9%8Bbug public function set scaleX(value:Number):void {  var style:Style = getStyle();    if(!style)  {  trace("----sprite--")  return;  }    if(!style._tf)  {  trace("----sprite--_tf is null--");  return;  }    if (style._tf.scaleX !== value) {  style.setSc...

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

1493. 射线检测-点击行走 [ 69%]

...er.frameLoop(1, this, this.checkHit); this.loadUI(); } private checkHit(): void { this.box.transform.position = this._position; this.box.transform.rotation = this._quaternion; //从屏幕空间生成射线 this.point.elements[0] = Laya.MouseManager.instance.mouseX; this.point.elements[1] = Laya.Mous...

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

1494. Handler.create的回收问题 [ 69%]

...; Laya.loader.load("res/img/1.png", this.h1); } private loadPicComplete(): void { Laya.timer.once(2000, this, this.actT); } private actT(): void { this.h2 = Laya.Handler.create(this, this.loadPicComplete, null, true); console.log(this.h1 == this.h2);//为什么是false } } } new laya.Test(); 2017-12...

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

1495. layabox打包有问题用cordova打包没问题 [ 69%]

...主要原因是如下代码执行出现问题private function loadconfig():void{ trace("---------------loadBaseConfAfterGame"); Laya.loader.load( temploaArr, Handler.create(this,loadAllBaseConfFun,[_afterGameConfigArr])/*,progressHandler*/); } private function loadAllBaseConfFun(configURLArr:Array):...

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

1496. [LayaAir3]LayaAir3.1.4中使用Spine3.8的动画资源显示异常 [ 69%]

...{     onPreprocessImage(aassetImporter: IEditorEnv.IImageAssetImporter): void | Promise<void> {          if (aassetImporter.settings.textureType != 2) {             aassetImporter.settings.textureType = 2;         }     } }   2024-06-21 2 1 分享 微博 QZONE 微信 为什...

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

1497. 有震屏的算法吗 [ 69%]

...llBack:Function = null, times:uint = 2, offset:uint = 12, speed:uint = 32):void   {    if(_isShake) return;        _isShake = true;    var num:int = 0;    var offsetArr:Array = [0, 0];    var point:Point = new Point(this.x, this.y);    Laya.stage.timerLoop(speed, this, shakeOb...

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

1498. Animation创建和销毁的问题 [ 69%]

...KEY_DOWN, this, this.onKeydown); } private function onKeydown(event:Event):void { var self:* = this; if(event.keyCode === Keyboard.SPACE) { //移除动画 if(testAnim1) { testAnim1.clear(); testAnim1.removeSelf(); testAnim1 = null; testAnim2.clear(); testAnim2.removeSelf(); testAnim2 = null; Loader....

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

1499. 分享:TiledMap设置viewport后黑屏问题! [ 69%]

...rt=new Rectangle(0,0,300,300); createMap(); } private function createMap():void { tiledMap = new TiledMap(); tiledMap.createMap("res/tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoaded)); } //切记:设置tiledMap的宽...

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

1500. laya.display.cmd.DrawTextureCmd_API3.0 [ 69%]

...efined in laya/display/cmd/DrawTextureCmd.ts:13 Methods recover recover(): void Defined in laya/display/cmd/DrawTextureCmd.ts:85 回收到对象池 Returns void Globals "laya/display/cmd/DrawTextureCmd" DrawTextureCmd alpha blendMode color height matrix texture uv width x y ID recover Legend Object ...

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