大约有 1,795 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0062 秒)
Laya_社区(852) Laya3.0_api(323) Laya2.0_api(248) laya_api(179) Laya2.0_文档(142) Laya3.0_文档(45) Laya2.0_示例(4) Laya_示例(2)
...): Matrix3x3 Defined in laya/maths/Matrix3x3.ts:166 创建一个 Matrix3x3 实例。 Parameters Default value createElement: boolean = true Returns Matrix3x3 Properties elements elements: Float32Array Defined in laya/maths/Matrix3x3.ts:166 矩阵元素数组 Static Readonly DEFAULT DEFAULT: Readonly...
来源: Laya3.0_api 发布时间: 20231115
... Matrix3x3 Defined in laya/d3/math/Matrix3x3.ts:166 创建一个 Matrix3x3 实例。 Parameters Default value createElement: boolean = true Returns Matrix3x3 Properties elements elements: Float32Array Defined in laya/d3/math/Matrix3x3.ts:166 矩阵元素数组 Static Readonly DEFAULT DEFAULT: Readon...
来源: Laya3.0_api 发布时间: 20231102
.../physicsCannon/CannonPhysicsComponent.ts:309 创建一个 PhysicsComponent 实例。 Parameters collisionGroup: number 所属碰撞组。 canCollideWith: number 可产生碰撞的碰撞组。 Returns CannonPhysicsComponent Properties Optional _extra _extra: IComponentExtra Inherited from Component._...
来源: Laya3.0_api 发布时间: 20231102
...设置一个Rectangle区域作为点击区域,或者设置一个HitArea实例作为点击区域,HitArea内可以设置可点击和不可点击区域。 如果不设置hitArea,则根据宽高形成的区域进行碰撞。 Sprite hitTestPrior : Boolean = false 指定鼠标事件检测是优先...
来源: laya_api 发布时间: 20170929
...较简单,通常只需要几个步骤,加载资源、创建一个Button实例、将Button添加到当前场景上,最后设置Button组件的属性。具体实现可以参考下面的代码与注释: const { regClass, property } = Laya; @regClass() export class UI_Button extends Laya.Script ...
来源: Laya3.0_文档 发布时间: 20251010
... null Defined in laya/components/Widget.ts:11 一个已初始化的 Widget 实例。 Accessors awaked get awaked(): boolean Inherited from Component.awaked Defined in laya/components/Component.ts:86 Returns boolean bottom get bottom(): number set bottom(value: number): void Defined in laya/component...
来源: Laya3.0_api 发布时间: 20231115
...点测试代码 如下 function onLoaded(){ console.log("onLoaded"); //实例化RunGame // var runGame = new RunGame(); // Laya.stage.addChild(runGame); var sp = new laya.display.Sprite(); sp.x = 100; sp.y = 100; var texture = Laya.loader.getRes('player/chara_01.png'); sp.graphics.drawTexture(tex...
来源: Laya_社区 发布时间: 20160801
...laya/d3/component/Animator/AnimatorState.ts:157 创建一个 AnimatorState 实例。 Returns AnimatorState Properties _isLooping _isLooping: 0 | 1 | 2 = 0 Defined in laya/d3/component/Animator/AnimatorState.ts:49 是否循环播放,为0时则使用_clip.islooping,1为循环,2为不循环 clipEnd...
来源: Laya3.0_api 发布时间: 20231115
...tructor Defined in laya/d3/component/Volume/Volume.ts:42 创建一个Volume实例 Returns Volume Properties Optional _extra _extra: IComponentExtra Inherited from Component._extra Defined in laya/components/Component.ts:36 Optional _singleton _singleton: boolean = true Inherited from Component._sing...
来源: Laya3.0_api 发布时间: 20231115
...g) (图9-1) 项目代码里,通过创建一个`CylinderColliderShape`实例的方式,传入半径和高,即可返回一个圆柱形碰撞形状对象,将这个对象添加给碰撞器的colliderShape属性即可。API说明如图9-2所示。  (图9-2) ###### 圆锥...
来源: Laya2.0_文档 发布时间: 20210715