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

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

61. laya.maths.Rectangle_API3.0 [ 81%]

... in laya/maths/Rectangle.ts:27 创建一个 Rectangle 对象。 Parameters Default value x: number = 0 矩形左上角的 X 轴坐标。 Default value y: number = 0 矩形左上角的 Y 轴坐标。 Default value width: number = 0 矩形的宽度。 Default value height: number = 0 矩形的高度...

来源: Laya3.0_api 发布时间: 20231115

62. laya.ani.AnimationPlayer_API3.0 [ 81%]

...void Defined in laya/ani/AnimationPlayer.ts:463 播放动画。 Parameters Default value index: number = 0 动画索引。 Default value playbackRate: number = 1 播放速率。 Default value overallDuration: number = 2147483647 Default value playStart: number = 0 播放的起始时间位置。 Defa...

来源: Laya3.0_api 发布时间: 20231115

63. 2.0里面的组件(Laya.Script)的prop其中几个类型应该怎么设置 [ 81%]

...例 我这里提供一下其他的类型的范例供大家参考   export default class TestScript extends Laya.Script { /** @prop {name:intType, tips:"整数类型示例", type:Int, default:1000}*/ public intType: number = 1000; /** @prop {name:numType, tips:"数字类型示例", type:Number, defa...

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

64. (layabox2.0) layaUI.max.all.ts里的module ui前为什么要加export [ 80%]

...ayaair2-cmd.js LayaMaxUI的导出能不能采用ES6 module的方式 export default 这种方式太痛苦了 2.2.0版本用命令行发布包报出异常 Error: Cannot find module 'gulp' 问题状态 最新活动: 2019-02-28 16:45 浏览: 3263 关注: 5 人 151*****601 • 2018-10-02 21:29 能不能...

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

65. laya.d3.core.particleshuriken.module.shape.BoxShape_API3.0 [ 80%]

...eters position: Vector3 粒子位置。 direction: Vector3 粒子方向。 Default value rand: Rand = null Default value randomSeeds: Uint32Array = null Returns void Globals "laya/d3/core/particleShuriKen/module/shape/BoxShape" BoxShape constructor enable randomDirection shapeType x y z clone cloneT...

来源: Laya3.0_api 发布时间: 20231115

66. laya.display.Graphics_API3.0 [ 79%]

...id Defined in laya/display/Graphics.ts:94 清空绘制命令。 Parameters Default value recoverCmds: boolean = true 是否回收绘图指令数组,设置为true,则对指令数组进行回收以节省内存开销,建议设置为true进行回收,但如果手动引用了数组,不建议回...

来源: Laya3.0_api 发布时间: 20231115

67. laya.d3.math.Plane_API3.0 [ 79%]

...efined in laya/d3/math/Plane.ts:16 创建一个 Plane 实例。 Parameters Default value normal: Vector3 = new Vector3 平面的向量 Default value d: number = 0 平面到原点的距离 Returns Plane Properties Static PlaneIntersectionType_Back PlaneIntersectionType_Back: number = 0 Defined in lay...

来源: Laya3.0_api 发布时间: 20231115

68. 2.0 beta UI Button无法获取 [ 79%]

...); } } } 扩展UI代码:   import { ui } from "../ui/layaMaxUI"; export default class AttackView extends ui.AttackUI { constructor() { super(); this.btn_attack.on("click", this, this.onAttack); } private onAttack(): void { // TODO } } 上面代码,btn_attack 按钮是 undefined 对象,没有...

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

69. 使用typescript开发项目,解决文件引用顺序问题 [ 79%]

...new Laya.Text(); txt.text = "Hello Layabox"; txt.color = "#ffffff"; export default txt  二、发布 安装工具,在ide上使用快捷键【ctrl+` 】打开终端,输入下面指令安装打包需要的node.js工具,因为之前已经安装过typescript,所以下面指令就不重复安装...

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

70. laya.ani.bone.BoneSlot_API3.0 [ 79%]

...画到Graphics上 Parameters graphics: GraphicsAni boneMatrixArray: any[] Default value noUseSave: boolean = false 不使用共享的矩阵对象 _tempResultMatrix,只有实时计算的时候才设置为true Default value alpha: number = 1 Returns void drawBonePoint drawBonePoint(graphics: Graphic...

来源: Laya3.0_api 发布时间: 20231115