大约有 449 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0089 秒)
Laya3.0_api(153) laya_api(104) Laya2.0_api(96) Laya_社区(57) Laya3.0_文档(22) Laya2.0_文档(12) Laya2.0_示例(3) Laya_示例(2)
...d(msg: any): void { console.log("接收到消息:"); if (typeof msg === "string") { console.log("文本数据:", msg); } else { console.log("接收到非字符串数据", msg); } // 清除输入缓存,避免残留数据 this.socket.input.clear(); } /** 连接关闭回调 */ private onSocketClo...
来源: Laya3.0_文档 发布时间: 20251010
...teLabel, [cb]); this.updateLabel(cb); } } } } private createCheckBox(skin: string): Laya.CheckBox { let cb: Laya.CheckBox = new Laya.CheckBox(skin); this.owner.addChild(cb); cb.labelColors = "white"; cb.labelSize = 20; cb.labelFont = "Microsoft YaHei"; cb.labelPadding = "3,0,0,5"; return cb; } priva...
来源: Laya3.0_文档 发布时间: 20251010
...ameLoop(1, this, this.onLoop) } /** * 播放动作对应的动画 * action String 动作名称 */ _proto.playAction = function(action){ //如果是重复的动作 不执行 if(this.action == action)return; this.action = action; this.body.play(0, true, this.action); } _proto.onLoop = function(){ //...
来源: Laya_社区 发布时间: 20160801
...载完成回调。 * @return 返回精灵对象本身。 */ loadImage(url: string, complete?: Handler): Sprite; 我们来看看代码示例: let sprite = new Laya.Sprite(); // 加载并显示一个图片,居中显示 sprite.loadImage("atlas/comp/image.png", null); sprite.pos(Laya.stage.width >...
来源: Laya3.0_文档 发布时间: 20251010
... 示例如下: var htmlDiv:HTMLDivElement=new HTMLDivElement(); var html:string = "<span color='#e3d26a'>使用</span>"; html += "<span style='color:#FFFFFF;font-weight:bold'>HTMLDivElement</span>"; html += "<span color='#6ad2e3'>创建的</span><br/>"; ht...
来源: Laya3.0_文档 发布时间: 20230303
...8-02-05 14:27 public static void loadImageViewLodingSize(Context mContext, String path, int width, int height, ImageView mImageView, int lodingImage, int errorImageView) { Glide.with(mContext).load(path).override(width, height).placeholder(lodingImage).error(errorImageView).into(mImageView); } 150**...
来源: Laya_社区 发布时间: 20180205
...esh: Mesh, texture: Texture2D, minHeight: number, maxHeight: number, name: string = null): MeshTerrainSprite3D { var meshTerrainSprite3D: MeshTerrainSprite3D = new MeshTerrainSprite3D(mesh, null, name); meshTerrainSprite3D._initCreateFromMeshHeightMap(texture, minHeight, maxHeight); return meshTerra...
来源: Laya3.0_文档 发布时间: 20230303
... * @param normalizedTime 归一化的播放起始时间。 */ play(name: string | null = null, layerIndex: number = 0, normalizedTime: number = Number.NEGATIVE_INFINITY) 这是动画状态机里最基本的播放动画方式,通过下面的代码: //动画状态机,直接播放Run动画状态 ...
来源: Laya3.0_文档 发布时间: 20251010
...av/h suim:1 s.237} 08-14 10:57:51.382 3194-3563/? E/Parcel: Reading a NULL string not supported here. Reading a NULL string not supported here. 08-14 10:57:51.390 3526-5095/? W/WindowState: Failed to report 'resized' to the client of Window{58e6240 u0 SurfaceView}, removing this window. 08-14 ...
来源: Laya_社区 发布时间: 20180814