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

大约有 44 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0037 秒)

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

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

43. 和原生Dom交互 · LayaAir3.0文档 · 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_文档 发布时间: 20230629

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