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

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

621. 请问更新遮罩的最优方式 [ 72%]

...,需要遮罩宽度随着进度变化而变化   _mask.size(_barImage.width * _percent, _barImage.height); _mask.graphics.clear(); _mask.graphics.drawRect(0, 0, _mask.width, _mask.height, "#FF0000");                      _barImage.mask = null; _barImage.mask = _mask;   试过需...

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

622. TextInput 在panle里滚动后输入位置错乱,求解 [ 72%]

...WebGL时自动切换至Canvas             Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL);                          Laya.stage.alignV = Stage.ALIGN_MIDDLE;             Laya.stage.alignH = Stage.ALIGN_CENTER;                          L...

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

623. 骨骼动画-橡胶人 [ 72%]

...re; var mCurrSkinIndex = 0; var mFactory2; (function() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes4/stretchyman.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, t...

来源: Laya_示例 发布时间: 20251209

624. ComboBox显示问题 [ 72%]

...static var uiView:Object = {"type": "View", "props": {"x": "0", "y": "0", "width": 388, "height": 376}, "child": [{"type": "ComboBox", "props": {"var": "combox", "stateNum": "1", "x": 7, "y": 146, "width": 91, "height": 23, "skin": "MainHead/combobox1.png", "labels": "hihihi,hihihi2,hihihi2"}}]}; ov...

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

625. 其他引擎的Demo-Example_05 [ 72%]

... (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Stat.show(); Laya.stage.scaleMode = Stage.SCALE_FULL; setup(); })(); function setup() { Laya.stage.on(Event.RESIZE, this, onResize); makeObject(0); for (var i = 0; i objs) { current = 0; } makeO...

来源: Laya_示例 发布时间: 20251209

626. 其他引擎的Demo-Example_05 [ 72%]

... (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Stat.show(); Laya.stage.scaleMode = Stage.SCALE_FULL; setup(); })(); function setup() { Laya.stage.on(Event.RESIZE, this, onResize); makeObject(0); for (var i = 0; i objs) { current = 0; } makeO...

来源: Laya2.0_示例 发布时间: 20251209

627. laya.ui.List [ 72%]

...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite  elasticEnabled : Boolean是否开启橡皮筋效果List filters : Array滤镜集合。可以设置多个...

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

628. 微信小游戏iphone适配,舞台上对齐 [ 72%]

...回复 Laya_Aaron 赞同来自: Laya.stage.scaleMode = Stage.SCALE_FIXED_WIDTH 这样试试 还有其他适配方式也试一下 2018-06-26 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 范文 相关问题 关...

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

629. laya.physics.PhysicsDebugDraw_API3.0 [ 72%]

...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY g...

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

630. 2.3微信截图分享问题 [ 72%]

...做分享。 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