大约有 332 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)
Laya_社区(177) Laya2.0_文档(62) Laya3.0_api(37) Laya2.0_api(27) laya_api(14) Laya3.0_文档(12) Laya_示例(2) Laya2.0_示例(1)
...TER ; //垂直对齐方式 Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE ; //设置适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; //屏幕适配(横屏还是竖屏) Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL ; //隐藏默认的虚拟键 conch.showAssistantTouch(false); //屏...
来源: Laya_社区 发布时间: 20170228
...源面板里选择拖入一个 Label 组件,到编辑区的界面里,设置 Label 属性 name 的值为 m_label。另外再设置一下 Label 的显示相关属性使它更好看一些。 **b.**选中 Label 对象,使用快捷键 Ctrl +B 或选择 **菜单栏->编辑->转换为容器** 选...
来源: Laya2.0_文档 发布时间: 20210715
...ure): void { this._setTexture(CustomMaterial.DIFFUSETEXTURE_ID, value); } }设置材质 mesh.meshRender.sharedMaterials = mats; 设置了材质后,动作就静止了 2017-08-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...
来源: Laya_社区 发布时间: 20170815
...tue = this.statue.getBounds(); var boundAngel = this.angel.getBounds(); // 设置位置 this.pos(42,399); this.tower.pos((boundBall.width - boundTower.width)/2+data.tower[towerLel].c1, -data.tower[towerLel].h+data.tower[towerLel].c2); this.aeroboat.pos((boundBall.width - boundTower.width)/2+data.tow...
来源: Laya_社区 发布时间: 20170720
...内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显...
来源: Laya2.0_api 发布时间: 20190513
...Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //2.设置舞台背景色为空 Laya.stage.bgColor = null; this.scene = new Laya.Scene3D(); this.camera = new Laya.Camera(0, 0.1, 100); Laya.stage.addChild(this.scene); this.scene.addChild(this.camera); this.camera.transform.tran...
来源: Laya_社区 发布时间: 20200903
...alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponent autoSize : Boolean = false 指定...
来源: Laya2.0_api 发布时间: 20190513
...alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponent autoSize : Boolean = false 指定...
来源: Laya2.0_api 发布时间: 20190513
...alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponent autoSize : Boolean = false 指定...
来源: Laya2.0_api 发布时间: 20190513
...显示异常。(通常电脑上显示正常,在一些移动端因缺少设置的字体而显示异常)。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By align : String 表示文本的水平显示方式。 取值: "left": 居左对齐...
来源: laya_api 发布时间: 20170929