大约有 2,916 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0106 秒)
Laya_社区(1723) Laya3.0_api(672) Laya2.0_文档(152) Laya2.0_api(128) laya_api(122) Laya3.0_文档(92) Laya2.0_示例(16) Laya_示例(11)
...(必读)二、刚体 RigidBody2.1 添加刚体组件2.2 刚体类型 type2.3 重力2.4 角速度 angularVelocity2.5 角阻尼 angularDampin2.6 线性速度 linearVelocity2.7 线性阻尼 linearDamping2.8 子弹 bullet2.9 刚体休眠2.10 允许旋转 allowRotation2.11 碰撞相关的属性三、...
来源: Laya3.0_文档 发布时间: 20251010
...Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Button, caption: "切换按钮" }) public btn: Laya.Button; spine: Laya.Spine2DRenderNode; //外部皮肤 weaponSkin: Laya.ExternalSkin = new Laya.ExternalSkin(); //外部皮肤列表项 weaponSkinItem: Laya.Extern...
来源: Laya3.0_文档 发布时间: 20260131
...组件。如下图1所示。  (图1) ##### 刚体类型 `type` 基于理论力学的理论基础,box2D物理引擎的刚体类型(type)分为:静力学类型`static`、动力学类型`dynamic`、运动学类型`kinematic`,IDE里默认为`dynamic`。 如图2-1所示。 ![图2-...
来源: Laya2.0_文档 发布时间: 20210714
...Box extends Laya.Script { /**盒子爆炸动画的预制体 */ @property({ type: Laya.Prefab, caption: "爆炸动画" }) private burstAni: Laya.Prefab; /**等级文本对象引用 */ private _text: Laya.Text; /**盒子等级 */ private _level: number; constructor() { super(); } //组件被启用后...
来源: Laya3.0_文档 发布时间: 20251010
...e Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(type){ //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } //在地板上面添加物品 _proto.addItem = function(){ } _proto.onLoop = function(){ } })(); 因为是...
来源: Laya_社区 发布时间: 20160728
..._mapHeightHalf = this._map.height / 2; switch (layerData.type) { case "tilelayer": break; case "objectgroup": var tArray = layerData.objects; if...
来源: Laya_社区 发布时间: 20220627
...onMessageReceived(msg: any): void { console.log("接收到消息:"); if (typeof msg === "string") { console.log("文本数据:", msg); } else { console.log("接收到非字符串数据", msg); } // 清除输入缓存,避免残留数据 this.socket.input.clear(); } /** 连接关闭回调 */ pri...
来源: Laya3.0_文档 发布时间: 20251010
...ttps://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=display&class=laya.display.Animation)。
来源: Laya2.0_文档 发布时间: 20210715
...动画主要分为三步。 第一步:加载动画所需的图集。 ```typescript //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```typescript //创建...
来源: Laya2.0_文档 发布时间: 20210715
...ttps://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=display&class=laya.display.Animation)。
来源: Laya2.0_文档 发布时间: 20210715