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

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

131. 代码更新没有同步到bin目录去 [ 75%]

...新没有同步到bin目录去 版本:1.7.12 今天改了2个ts,然后src下的js有改动,而bin下的没有,后来重启了IDE,再切换了一下项目再切回来,js就更新了,但是ui那个不行:layaUI.max.all.js src下是新的,但是bin没有同步到最新的,请问怎...

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

132. 打进APP的时候,不能动态加载js [ 75%]

...bute("type","text/javascript");             fileref.setAttribute("src", filename);             trace(fileref);             if (typeof fileref!="undefined")Browser.document.getElementsByTagName("head")[0].appendChild(fileref);         } 上面是加载js的方法,...

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

133. laya.d3.resource.DataTexture2D [ 74%]

... BaseTexture source : *[read-only] 获取纹理资源。 BaseTexture  src : String[read-only] 获取文件路径全名。 DataTexture2D width : int[read-only] 获取宽度。 BaseTexturePublic Methods  MethodDefined By  DataTexture2D() 创建一个 Texture2D 实例。 DataTexture2D  create(...

来源: laya_api 发布时间: 20170929

134. HTMLDivElement img 标签问题 [ 74%]

HTMLDivElement img 标签问题 做聊天图文混排 <img src='image/chat/face15.png' width='30px' height='30px'></img> 原图为81*81,第一次发,显示是81*81,第2次发就是30*30 图片非要预加载一次吗 附件 : --> 2017-03-29 添加评论 免费帖 --> 分享 微博...

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

135. 启动画面LoadingView(TypeScript-LayaNative原生服务-LayaNative基础文档) [ 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('...

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

136. 分享: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

137. 淘宝创意互动发布指南(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

138. 透明模型重叠的问题 [ 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

139. 为什么动态设置聚光灯朝向无效呢 [ 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

140. 为什么动态设置聚光灯朝向无效呢 [ 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