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

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

41. laya.ui.TextArea_API3.0 [ 64%]

...tPoint updateZOrder fromImage Constructors constructor new TextArea(text?: string): TextArea Overrides TextInput.constructor Defined in laya/ui/TextArea.ts:94 创建一个新的 TextArea 示例。 Parameters Optional text: string 文本内容字符串。 Returns TextArea Properties Optional _extra _...

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

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

...化引擎 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

43. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 52%]

...始化引擎 Laya.init(600, 400); Laya.stage.bgColor ="#cccccc"; var data:String= "data:image/svg+xml,"+'' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp:Sprite = new Sprite(); sp.loadImage(data,0,0,200,200); Laya.stage.addChild(sp); } } } ``` 通过data来当做url传递给loadImage...

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

44. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

...显示这个img。我们新建个项目。代码如下所示: var data: string = "data:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:4...

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

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

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

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