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

大约有 1,720 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0056 秒)

351. view和panel关于mouseThrough的区别 [ 77%]

...   * <p>影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。</p>          * @default false    不可穿透,此对象的鼠标响应区域由width、height、hitAr...

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

352. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 77%]

...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

353. laya.utils.Utils [ 77%]

...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

354. 关于适配有点疑惑 [ 77%]

...种适配模式,有一些困惑   我分别用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

355. 动画不显示 [ 77%]

...               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

356. 3d 轮廓描边示例改描边颜色无效 [ 77%]

...; var renderTexture = RenderTexture.createFromPool(viewPort.width,viewPort.height,RenderTextureFormat.R8G8B8A8,RenderTextureDepthFormat.DEPTHSTENCIL_NONE); //将RenderTexture设置为渲染目标 buf.setRenderTarget(renderTexture); //清楚渲染目标的颜色为黑色,不清理深度 buf.clearRe...

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

357. 苹果笔记本下Safari中显示一半 [ 77%]

...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

358. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 77%]

...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

359. laya.display.cmd.DrawPieCmd_API3.0 [ 77%]

...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

360. 动画-SWF动画 [ 77%]

....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