大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0072 秒)
...set(0,__proto,'zOrder',function(){ return this._zOrder; },function(value){ if (this._zOrder !=value){ if(this.name.length > 0){ console.debug("zOrder:"+this.name+" order:"+value); } this._zOrder=value; this.conchModel && this.conchModel.setZOrder && this.conchModel.setZOrder(value...
来源: Laya_社区 发布时间: 20180412
...,里面的bounds即为图片最大矩形框,直接获取其属性: if(imageA.bounds.intersects(imageB.bounds)) { trace("撞到了"); } 在layaAir中也找到了intersects方法,不过用法好像不太一样,public function intersects(rect:Rectangle):Boolean 问题一:是不是也...
来源: Laya_社区 发布时间: 20161202
... 以下两个Obj区别是什么?有点不太明白用意, MiniFileMgr.filesListObj = {}; MiniFileMgr.fakeObj = {}; static copyFile(tempFilePath, readyUrl, callBack, encoding = "", isAutoClear = true) { var temp = tempFil...
来源: Laya_社区 发布时间: 20200529
...ction destroyUnusedResources(group:String = null):void { var res:Resource; if (group) { var resouList:Vector.<Resource> = _groupResourcesMap[group]; if (resouList) { var tempResouList:Vector.<Resource> = resouList.slice(); for (var i:int, n:int = tempResouList.length; i < n; i++) { re...
来源: Laya_社区 发布时间: 20190126
...in); } changeSkin() { mCurrSkinIndex++; let skinLength = mSkinList.length; if (mCurrSkinIndex >= skinLength) { mCurrSkinIndex = 0; } mArmature.showSkinByName(mSkinList[mCurrSkinIndex]); } completeHandler() { this.play(); } play() { mCurrIndex++; let aniNum = mArmature.getAnimNum(); if (mCurrIndex >=...
来源: Laya2.0_示例 发布时间: 20260303
...mation(physicTransformOut, force) { var transform = this.owner._transform; if (force || this._getTransformFlag(Laya.Transform3D.TRANSFORM_WORLDPOSITION)) { var shapeOffset = this._colliderShape.localOffset; var position = transform.position; var btPosition = CannonPhysicsComponent._btVector30; if (s...
来源: Laya_社区 发布时间: 20210904
... segments.length; i Laya.stage.width) targetPosition.x = Laya.stage.width; if (targetPosition.y Laya.stage.height) targetPosition.y = Laya.stage.height; } function checkEatFood() { var food; for (var i = foods.length - 1; i >= 0; i--) { food = foods[i]; if (food.hitTestPoint(targetPosition.x, target...
来源: Laya_示例 发布时间: 20260303
... // 查看当前对象池内对象数量 console.log( bulletPool.length ); if( bulletPool.length == 0 ) { // 把子弹放入对象池 pool.push( new Bullet() ); } 2.2 清理一个对象池 /** * 清除对象池的对象。 * @param sign 对象类型标识字符。 */ static clearBySign(sign: string)...
来源: Laya3.0_文档 发布时间: 20251010
...ya.stage.addChild(spr); Laya.stage.on(Event.CLICK, this, function():void { if (Laya.stage.screenMode == Stage.SCREEN_HORIZONTAL) { if (Browser.window.conchConfig) { Browser.window.conchConfig.setScreenOrientation(1); } Laya.stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage.scaleMode = Stage.SCALE...
来源: Laya_社区 发布时间: 20170801
...age.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInput(); } else { this.AroundByMouseInput(); } if (!this.canRotation_X) this.targetAngles.y = 0; if (!this.canRotation_Y) this.targetAngles.x = 0; //Lerp. this.CurrentAngles = t...
来源: Laya_社区 发布时间: 20170714