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

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

201. 2.0label不改变文本内容,label颜色无法直接改变,1.0可以 [ 85%]

...    private OpenLabel() {             this.label.visible = true;             this.label.on(Laya.Event.MOUSE_OVER, this, this.ChangeLabelColor);             this.label.on(Laya.Event.MOUSE_OUT, this, this.ChangeLabelColor);         } 附件 : --> Test1.z...

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

202. 高级应用-渲染纹理 [ 85%]

...种开发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/Arena/Arena.ls")); var camera = scene.addChild(new...

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

203. rigidBody.applyForce 物体不会移动 [ 85%]

...2)); // this.character.transform.translate(this.translateW); haskeyShift = true; } else { this.playWalk(); this.rigidBody.applyForce(new Laya.Vector3(0, 0, 0.2)); // this.character.transform.translate(this.translateW); haskeyW = true; } } if (keyS) { if (keyShift) { this.playRun(); this.rigidBody.ap...

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

204. laya.ui.Image [ 85%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容...

来源: laya_api 发布时间: 20170929

205. 文本-复杂的文本样式 [ 85%]

...宽度,高度自动匹配 txt.width = 400; //自动换行 txt.wordWrap = true; txt.align = "center"; txt.fontSize = 40; txt.font = "Microsoft YaHei"; txt.color = "#ff0000"; txt.bold = true; txt.leading = 5; //设置描边属性 txt.stroke = 2; txt.strokeColor = "#ffffff"; txt.borderColor = "#00ff0...

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

206. Laya2.2问题,有没有遇到的? [ 85%]

...t = false; GameConfig.physicsDebug = false; GameConfig.exportSceneToJson = true; GameConfig.init();  class Main { constructor() { Laya.isWXOpenDataContext = true; Laya.isWXPosMsg = true; if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameCon...

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

207. laya.ui.Component [ 85%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite  bottom : Number 从组件底边到其内...

来源: laya_api 发布时间: 20170929

208. PBR标准材质实时阴影渲染问题 [ 85%]

...ght') as Laya.DirectionLight; //灯光开启阴影 directionLight.shadow = true; //可见阴影距离 directionLight.shadowDistance = 20; directionLight.shadowResolution = 2048; var receiveShadowgroup = (scene_360 as Laya.Node).getChildByName('PuCheng').getChildByName('receiveShadow'); var castShado...

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

209. laya.ui.ProgressBar [ 85%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite  bar : Image[read-only] 获取进度条对象。 ProgressBar  bg : Image[read-only] 获取背景条对象。 ProgressBar blend...

来源: laya_api 发布时间: 20170929

210. laya.particle.Particle2D [ 85%]

...透明。更改alpha值会影响drawcall。Sprite  autoPlay : Boolean = true是否自动播放Particle2D autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并且不会随着绘制内容的变化而变化,如果想根据绘制内容...

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