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

大约有 3,517 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0095 秒)

201. 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

202. 文本-复杂的文本样式 [ 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_示例 发布时间: 20240930

203. laya.ui.Image [ 85%]

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

来源: laya_api 发布时间: 20170929

204. 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

205. laya.ui.Component [ 85%]

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

来源: laya_api 发布时间: 20170929

206. 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

207. 如何为灯光添加阴影(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 85%]

...影属性。 **receiveShadow:**是否接受阴影,当模型此属性为true时,计算出的阴影会在此模型上显示出来。在游戏中,我们可以把场景的地面,及场景中可走动区域中的模型castShadow属性设置为true。 **castShadow:**是否产生阴影,当模...

来源: Laya2.0_文档 发布时间: 20210715

208. laya.ui.ProgressBar [ 85%]

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

来源: laya_api 发布时间: 20170929

209. laya.particle.Particle2D [ 85%]

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

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

210. 实体组件系统 · LayaAir3.0文档 · LAYABOX [ 85%]

...仅可以使得下划线属性显示,也可以通过将private设置为true,使得不带下划线的属性,不在IDE的属性面板出现。 这里,我们将前文的弧度转换示例稍作修改,代码如下: const { regClass, property } = Laya; @regClass() export class Main extends La...

来源: Laya3.0_文档 发布时间: 20240528