大约有 692 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0077 秒)
Laya_社区(333) Laya3.0_api(89) Laya2.0_api(69) Laya2.0_文档(65) laya_api(61) Laya3.0_文档(41) Laya2.0_示例(19) Laya_示例(15)
...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] ...
来源: Laya2.0_api 发布时间: 20190513
...AStart网格 */ private createGridFromAStarMap(texture): any { var textureWidth = texture.width; var textureHeight = texture.height; var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; for (var w = 0; w < textureWidth; w++) { var colaStarArr = aStarArr[w] = []; for (var h = 0;...
来源: Laya3.0_文档 发布时间: 20230303
... var renderTexture = Laya.RenderTexture.createFromPool(viewPort.width,viewPort.height,Laya.RenderTextureFormat.R8G8B8A8,Laya.RenderTextureDepthFormat.DEPTHSTENCIL_NONE); //将RenderTexture设置为渲染目标 buf.setRenderTarget(renderTexture); ...
来源: Laya_社区 发布时间: 20210203
...skArea); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000"); // 绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); guideContainer.addChild(interactionArea); // 设置叠加模式 interacti...
来源: Laya2.0_示例 发布时间: 20251130
...Graphics(); g.drawRect(this.closeBtn.x-10,this.closeBtn.y-10,this.closeBtn.width+20,this.closeBtn.height+20,"#FF0000"); let hitA:Laya.HitArea = new Laya.HitArea(); hitA.hit = g; this.closeBtn.hitArea = hitA; // 写法二 this.closeBtn.graphics.drawRect(this.closeBtn.x-10,this.closeBtn.y-10,this.clos...
来源: Laya_社区 发布时间: 20170920
...* @en Draws the current object to a RenderTexture2D object. * @param canvasWidth The width of the canvas. * @param canvasHeight The height of the canvas. * @param offsetX The X-axis offset for drawing. * @param offsetY The Y-axis offset for drawing. * @param rt The render target. * @param isDrawRend...
来源: Laya_社区 发布时间: 20250827
...gLimit triggerUpDragLimit upButton drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters...
来源: Laya3.0_api 发布时间: 20231115
...gLimit triggerUpDragLimit upButton drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters...
来源: Laya3.0_api 发布时间: 20231115
...orld(input:Laya.Vector2):Laya.Vector2 { let ratioX = (input.x / Laya.stage.width); let ratioY = (input.y / Laya.stage.height); let clientWidth = Laya.stage.clientScaleX * Laya.stage.width let clientHeight = Laya.stage.clientScaleY * Laya.stage.height let singleX = (Laya.Browser.width - clientWidth)/...
来源: Laya_社区 发布时间: 20180530
...gLimit triggerUpDragLimit upButton drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters...
来源: Laya3.0_api 发布时间: 20231115