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

大约有 253 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0062 秒)

241. 人物行走图动画 [ 54%]

...回图集json信息(并创建图集内小图Texture)。      load(url:String, type:String = null, cache:Boolean = true):void 加载资源。 Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS);   这里的load只有三个参数,而事实上用到4个,不...

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

242. WebSocket通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

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

243. laya.display.Graphics_API3.0 [ 53%]

... Texture, x?: number, y?: number, width?: number, height?: number, color?: string): DrawImageCmd | null Defined in laya/display/Graphics.ts:225 绘制单独图片 Parameters texture: Texture 纹理。 Default value x: number = 0 (可选)X轴偏移量。 Default value y: number = 0 (可选)Y...

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

244. laya.ani.GraphicsAni_API3.0 [ 52%]

... Texture, x?: number, y?: number, width?: number, height?: number, color?: string): DrawImageCmd | null Inherited from Graphics.drawImage Defined in laya/display/Graphics.ts:225 绘制单独图片 Parameters texture: Texture 纹理。 Default value x: number = 0 (可选)X轴偏移量。 Default ...

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

245. 单选框组容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

... + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: string): Laya.RadioGroup { let rg: Laya.RadioGroup = new Laya.RadioGroup(); rg.skin = skin; rg.space = 70; rg.direction = "vertical"; rg.labels = "Item1, Item2, Item3"; rg.labelColors = "#787878,#d3d3d3,#FFFFFF"; rg.labelSize...

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

246. laya.ui.AutoBitmap_API3.0 [ 51%]

...n laya/display/Graphics.ts:54 Returns AutoBitmap Properties _color _color: string = "#ffffff" Defined in laya/ui/AutoBitmap.ts:31 uv uv: number[] = null Defined in laya/ui/AutoBitmap.ts:29 Accessors cmds get cmds(): any[] set cmds(value: any[]): void Inherited from Graphics.cmds Defined in laya/disp...

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

247. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 49%]

....text.BitmapFontUI { //给自己注册的字体起个名 private fontName: string = "diyFont"; constructor() {super();} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** * 实例化位图字体类,并加载位图字体 */ loadBitmapFont(): void { let bitmapFont: Laya.BitmapFon...

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

248. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 40%]

...化引擎 Laya.init(600, 400); Laya.stage.bgColor = "#ffcccc"; var data: string = "data:image/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); } } new LayaUISample; ``` 通过dat...

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

249. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 40%]

...      private mDecorate:Decorate;//装饰器         private mHost: string;         private mPort: number;         private mConnected: boolean;         /** 开启*/         public static OPEN: string = "open";         /** 关闭*/         public static CLOSE: string = ...

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

250. 预制体模块 · LayaAir3文档 · LAYABOX [ 37%]

...} /** * 当报错时打印错误 * @param err 报错信息 */ onError(err: string): void { console.log("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): void { //接近完成加载时,让显示进度比实际进度慢一点,这是为打开场景时的自动加载...

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