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

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

131. 启动画面LoadingView · LayaAir3.0文档 · LAYABOX [ 74%]

...adingView){ nPercent+=33; window.loadingView.loading(nPercent); } } image1.src = "a.png"; var image2 = document.createElement('img'); image2.onload=function() { if(window.loadingView){ nPercent+=33; window.loadingView.loading(nPercent); } } image2.src = "b.png"; var image3 = document.createElement('...

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

132. 分享:Laya开发TS项目使用pomelo客户端SDK(pomelo-jsclient-websocket) [ 74%]

...们之间的依赖关系和引用顺序<script type="text/javascript" src="libs/pomelo/index.js"></script> <script type="text/javascript" src="libs/pomelo/protocol.js"></script> <script type="text/javascript" src="libs/pomelo/protobuf.js"></script> <script type...

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

133. 淘宝创意互动发布指南(TypeScript-小游戏适配文档-淘宝创意互动) [ 74%]

... module.def 分包,例如: ``` module:"a" path:"../../libs/subpackageA/src" module:"b" path:"../../libs/subpackageB/src" ``` 在外部包引用这两个分包里的代码时,会编译生成以下引用代码: ```javascript //编译生成 var TestA=Laya.TestA,TestB=Laya.TestB,TestGame=game.Test...

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

134. 透明模型重叠的问题 [ 74%]

... Laya.RenderState.BLEND_ENABLE_ALL;         this.pass.renderState.srcBlend = Laya.RenderState.BLENDPARAM_SRC_ALPHA;         this.pass.renderState.dstBlend = Laya.RenderState.BLENDPARAM_ONE_MINUS_SRC_ALPHA;         this.renderQueue = Laya.Material.RENDERQUEUE_TRANSPAREN...

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

135. 为什么动态设置聚光灯朝向无效呢 [ 74%]

...无效呢 var tar = new Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLight.direction = dir; 目的是让聚...

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

136. 为什么动态设置聚光灯朝向无效呢 [ 74%]

...无效呢 var tar = new Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLight.direction = dir; 目的是让聚...

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

137. android运行器版本裁剪问题 [ 74%]

...剪没有问题,在打成apk版本就会有问题。 进度条代码在 /src/progress_bar.js 例子工程在附件,麻烦看看 附件 : --> testProgress.zip 2017-01-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...

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

138. 富文本使用图集 [ 74%]

...w HTMLDivElement();             appendHtml.innerHTML="aa==<ani src='res/1.png'></ani>";             Laya.stage.addChild(appendHtml);       }   2018-03-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

139. 一个打包问题 [ 74%]

...t ReferenceError: Cannot access 'HtmlVideo' before initialization   我在src/index.ts中按照官方示例的逻辑写的,为啥会报这个错   把src/GameConfig.ts中第一行改为import { GameUI } from './versions/sss'就不会有这个错误,请问我是哪里初始化没初始化对吗...

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

140. DOM元素-视频 [ 74%]

...eoElement.style.zIndex = Laya.Render.canvas.style.zIndex + 1; videoElement.src = "res/av/mov_bbb.mp4"; videoElement.controls = true; // 阻止IOS视频全屏 videoElement.setAttribute("webkit-playsinline", true); videoElement.setAttribute("playsinline", true); // 设置画布上的对齐参照物 le...

来源: Laya2.0_示例 发布时间: 20241001