大约有 284 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0059 秒)
...示背景图 this.bg2.loadImage("ui/BG/play-bg.png", 0, 0, 720, 5120); //更改背景2的位置,放在背景1的上边 this.bg1.pos(0, -3840); this.bg2.pos(0, -8960); //把背景图显示在容器内 this.addChild(this.bg2); //创建一个帧循环,更新容器的位置 Laya.timer.frameLoop(1, t...
来源: Laya_社区 发布时间: 20181105
...进行碰撞检测和排版,并不影响显示图像大小,如果需要更改显示图像大小,请使用 scaleX , scaleY , scale。 Sprite 默认不接受鼠标事件,即mouseEnabled=false,但是只要对其监听任意鼠标事件,会自动打开自己以及所有父对象的mouseE...
来源: Laya2.0_api 发布时间: 20190513
...e alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pi...
来源: Laya2.0_api 发布时间: 20190513
...e alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并且不会随着绘制内容的变化而变化,如果想根据绘...
来源: Laya2.0_api 发布时间: 20190513
...段加入到 index.html body 标签中的最下面,图片路径请自行更改,用到的图片我也会放到附件 --> <!-- 请用LayaAir IDE 自行创建窗口 并且放入一枚按钮,目前只对 矩形 挖洞 其他形状请参考我提供的 API 地址自行参考 --> <!-- ...
来源: Laya_社区 发布时间: 20200604
...y alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite aniSpriteArray : Array当前GRID包含的动画GridSprite autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并且...
来源: laya_api 发布时间: 20170929
...y alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX轴锚点,值为0-1Component anchorY : NumberY轴锚点,值为0-1Component autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false ...
来源: laya_api 发布时间: 20170929
...y/Sprite.ts:1026 透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。 Returns number Inherited from Text.alpha Defined in laya/display/Sprite.ts:1030 透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。 Parameters value:...
来源: Laya3.0_api 发布时间: 20231115
...数 laya 发布成微信小游戏 怎么获取从分享中进入的参数 更改资源路径的URL 点击按钮打开对话框的时候能往对话框中传一个参数吗 Dispather.event参数传的是数组,为什么收到的参数却是个int类型? 子节点的 getChildIndex(node:Node):int ...
来源: Laya_社区 发布时间: 20170614
...ay/Sprite.ts:925 透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。 Returns number Inherited from AnimationBase.alpha Defined in laya/display/Sprite.ts:929 透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。 Parameter...
来源: Laya3.0_api 发布时间: 20231102