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

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

51. 我想把flex项目转为laya ts项目,转换过程 mx.containers.Canvas报错 [ 81%]

..."?> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="144" height="590" mouseEnabled="true">                 <mx:Canvas width="144" height="590" x="0" y="0" horizontalScrollPolicy="off" verticalScrollPolicy="off">                     <!-- left b...

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

52. 为什么谷歌浏览器调试可以显示这些文字打包后却没有了 [ 81%]

...set():void { gRoomView.chatBox.innerHTML = ""; gRoomView.chatBox.height = 1; } public SysSay(txt:string):void { this.AddChat(0, "法官", txt); } public PlayerSay(msg:any):void { this.AddChat(msg['from_client_seatsno'], msg['from_client_name'], msg['content']); } private AddChat(...

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

53. laya.ui.WXOpenDataViewer_API3.0 [ 80%]

...centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right ro...

来源: Laya3.0_api 发布时间: 20231102

54. laya.ui.FontClip [ 80%]

...垂直方向中心线的距离(以像素为单位)。 UIComponent clipHeight : Number 竖向分割时每个切片的高度,与 clipY 同时设置时优先级高于 clipY 。 Clip clipWidth : Number 横向分割时每个切片的宽度,与 clipX 同时设置时优先级高于 clipX 。 Clip...

来源: Laya2.0_api 发布时间: 20190513

55. drawToCanvas绘制显示不全 [ 80%]

....visibility = 'hidden';         style.zIndex = 9999;         style.height = screen.height + 'px';         style.width = Math.floor(screen.height / Laya.stage.height * Laya.stage.width) + 'px';         document.body.appendChild(this.nativeImg)     }     onEnable() {         La...

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

56. textInput的单行输入&多行输入(TypeScript-LayaAir基础篇(TS)-文本) [ 80%]

...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"; this.createSingleInput(); this.createMultiInput(); } private cr...

来源: Laya2.0_文档 发布时间: 20210715

57. laya.ui.Clip [ 80%]

...每个切片的宽度 clipWidth 、竖向分割每个切片的高度 clipHeight , 从左向右,从上到下,分割组合为一个切片动画。 Image和Clip组件是唯一支持异步加载的两个组件,比如clip.skin = "abc/xxx.png",其他UI组件均不支持异步加载。 Public Pro...

来源: Laya2.0_api 发布时间: 20190513

58. 2.3微信截图分享问题 [ 80%]

... var tempFilePath = canvas.toTempFilePathSync( { x: 0, y: 0, width: 100, height: 100, destWidth: 100, destHeight: 100, fileType: 'jpg', quality: 1.0 });   var canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0).getCanvas();   这是第二种写法。翻了几次论坛据说...

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

59. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 80%]

...化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya["Physics"] && Laya["Physics"].enable(); Laya["DebugPanel"] && Laya["DebugPanel"].enable(); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stag...

来源: Laya2.0_文档 发布时间: 20210715

60. laya.ui.OpenDataContextView_API3.0 [ 80%]

...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOpt...

来源: Laya3.0_api 发布时间: 20231115