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

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

1. DOM元素-视频 [ 100%]

...= Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; // 创建Video元素 var videoElement = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElement); // 设置Video元素地样式和属性 videoElement.style.zInddex = Laya.Render.canvas.style.zInd...

来源: Laya_示例 发布时间: 20241002

2. 加载-销毁Texture使用的图片资源 [ 98%]

...ow(); } /** * 初始化场景 */ GameMain.prototype.init = function () { //创建背景 this.spBg = Sprite.fromImage(this.PathBg); Laya.stage.addChild(this.spBg); //创建动画 this.aniFly = new Animation(); this.aniFly.loadAtlas(this.PathFly); this.aniFly.play(); this.aniFly.pos(250, 100); Laya.st...

来源: Laya_示例 发布时间: 20241002