大约有 1,873 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0069 秒)
Laya_社区(1137) Laya3.0_api(242) Laya2.0_文档(103) Laya2.0_示例(94) Laya_示例(91) Laya2.0_api(82) laya_api(76) Laya3.0_文档(48)
...ssvalue.anchorY = 0.5; this.progressvalue.pos(15, 15); //记录宽度 this.width_x = this.progress.width + 3; this.vmask = new Laya.Sprite(); this.vmask.pos(15,15); this.vmask.graphics.drawPie(0, 0, 20, -90, 270, "#000000"); this.progress.addChild(this.progressvalue); this.progressvalue.mask = th...
来源: Laya_社区 发布时间: 20180725
...lider() { var hs = new HSlider(); hs.skin = "../../res/ui/hslider.png"; hs.width = 300; hs.pos(50, 170); hs.min = 0; hs.max = 100; hs.value = 50; hs.tick = 1; hs.changeHandler = new Handler(this, onChange); Laya.stage.addChild(hs); } function placeVSlider() { var vs = new VSlider(); vs.skin = "../.....
来源: Laya_示例 发布时间: 20251209
...n(0,-(Math.max(0,m_info.ability.mExp / m_info.ability.mMaxExp)*m_mcExpMask.width)) : -m_mcExpMask.width; 经验条动态设置遮罩,用X轴来做移动可以实现经验条的遮罩效果,而用scaleX来设置怎么设置,动态附值怎么也改变不了。只默认第一次设置的值...
来源: Laya_社区 发布时间: 20170412
...么,获取界面组件的宽高吗,你可以试下用getBounds().width去获取试试! 2017-07-20 0 5 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 peterz3g 相关问题 两个对象new了一个相同的对象,调用第一个的...
来源: Laya_社区 发布时间: 20170720
...preload readyState referenceCount seekable seeking source videoHeight videoWidth volume width wrapModeU wrapModeV wrapModeW cpuMemory gpuMemory Methods _addReference _clearReference _getSource _removeReference _setCPUMemory _setCreateURL _setGPUMemory canPlayType destroy event gpuCompressFormat hasL...
来源: Laya3.0_api 发布时间: 20231115
...nt; var rect = new Laya.Sprite(); rect.graphics.drawRect(0, 0, this.contentWidth, this.contentHeight, "#000000"); content.hitArea = new Laya.HitArea(); content.hitArea.hit = rect.graphics; } 然后分别在panel的“setContentSize”和“changeScroll”方法的最后一行添加 this.setContent...
来源: Laya_社区 发布时间: 20170610
...INGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalSc...
来源: Laya3.0_api 发布时间: 20231115
...0;//设置 shape 对象相对于父容器的垂直方向坐标值。 shape.width = 100;//设置 shape 对象的宽度。 shape.height = 100;//设置 shape 对象的高度。 shape.pivotX = 50;//设置 shape 对象的水平方法轴心点坐标。 shape.pivotY = 50;//设置 shape 对象的垂直方...
来源: Laya3.0_api 发布时间: 20231115
...ad-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-on...
来源: Laya2.0_api 发布时间: 20190513
...用设置成true sprite.graphics.drawTexture(texture, 0, 0,texture.width,texture.height); this.addChild(sprite); } LayaUISample.max.js:19468 Uncaught TypeError: Cannot read property 'width' of undefined at Texture.moveUV (LayaUISample.max.js:19468) at GraphicsGL.__proto....
来源: Laya_社区 发布时间: 20180725