大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...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
...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
...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
...; 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
...主要原因是如下代码执行出现问题private function loadconfig():void{ trace("---------------loadBaseConfAfterGame"); Laya.loader.load( temploaArr, Handler.create(this,loadAllBaseConfFun,[_afterGameConfigArr])/*,progressHandler*/); } private function loadAllBaseConfFun(configURLArr:Array):...
来源: Laya_社区 发布时间: 20170804
...{ onPreprocessImage(aassetImporter: IEditorEnv.IImageAssetImporter): void | Promise<void> { if (aassetImporter.settings.textureType != 2) { aassetImporter.settings.textureType = 2; } } } 2024-06-21 2 1 分享 微博 QZONE 微信 为什...
来源: Laya_社区 发布时间: 20240620
...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
...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
...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
...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