大约有 1,720 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0056 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
... * <p>影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。</p> * @default false 不可穿透,此对象的鼠标响应区域由width、height、hitAr...
来源: Laya_社区 发布时间: 20180426
...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); } priva...
来源: Laya2.0_文档 发布时间: 20210715
...Area(dom:Object, coordinateSpace:Sprite, x:Number, y:Number, width:Number, height:Number):void[static] 使DOM元素使用舞台内的某块区域内。 Utils getGID():int[static] 获取一个全局唯一ID。Utils getGlobalPosAndScale(sprite:Sprite):Rectangle[static] 计算传入的显示对...
来源: Laya2.0_api 发布时间: 20190513
...种适配模式,有一些困惑 我分别用noscale, fixedwidth, fixedheight进行试验, 代码如下:var rect; (function() { Laya.init(550, 400); // Laya.stage.scaleMode = Stage.SCALE_SHOWALL; // Laya.stage.scaleMode = "noscale"; // Laya.stage.scaleMode = "fixedwidth"; Laya.stage.scaleMod...
来源: Laya_社区 发布时间: 20170206
... m_Role.pos((Laya.stage.width - 27)/2,(Laya.stage.height - 75)/2); } else{ m_Role.pos((Laya.stage.width - 14)/2 + 15,(Laya.stage.height - 75)/2); } m_mapLayer.pos(...
来源: Laya_社区 发布时间: 20170921
...; var renderTexture = RenderTexture.createFromPool(viewPort.width,viewPort.height,RenderTextureFormat.R8G8B8A8,RenderTextureDepthFormat.DEPTHSTENCIL_NONE); //将RenderTexture设置为渲染目标 buf.setRenderTarget(renderTexture); //清楚渲染目标的颜色为黑色,不清理深度 buf.clearRe...
来源: Laya_社区 发布时间: 20201218
...air显示一半,跟tranform有关 <canvas id="layaCanvas" width="760" height="650" style="position: absolute; left: 0px; top: 110px; background-color: rgb(255, 237, 118); transform-origin: 0px 0px 0px; transform: matrix(0.5, 0, 0, 0.5, 311, 0);"></canvas> 其他电脑上: <canvas ...
来源: Laya_社区 发布时间: 20190401
...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; //这里是我注释掉的代码 //Laya.loader.load(this.ApePat...
来源: Laya_社区 发布时间: 20171106
...rs value: number Returns void Methods getBoundPoints getBoundPoints(sp?: { height?: number; width: number }): number[] Defined in laya/display/cmd/DrawPieCmd.ts:97 Parameters Optional sp: { height?: number; width: number } Optional height?: number width: number Returns number[] recover recover(): vo...
来源: Laya3.0_api 发布时间: 20231115
....WebGL; var SWFPath = "../../res/swf/dragon.swf"; var MCWidth = 318; var MCHeight = 406; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.sca...
来源: Laya_示例 发布时间: 20251209