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

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

101. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 75%]

...createChars(v: string): void { if (!v) { return; } let charNum = v.length; for (let i = 0; i < charNum; i++) { let char = v.charAt(i); let resName = this.getResName(char); let sp: Laya.Sprite = this.getSprite(); let tx = Laya.Loader.getRes(resName); if (!tx) { console.warn(TipConfig.tips.haveNoTh...

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

102. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 75%]

...mes;             let anies = this.anies;             for (let name in ani_names) {                 anies[name] = AnimationTemplet.load(ani_names[name]);             }         }         private ani_names = {                 ...

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

103. 构建版本中的Socket 字节不能超过4096字节 [ 75%]

...相关结果 已邀请: 与内容相关的链接 提交 1 个回复 young for your 赞同来自: 要石沉大海 2020-08-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 young for your 相关问题 LayaAir3D UnityPlugin 使用须知-版...

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

104. Sprite的destroy [ 75%]

Sprite的destroy destroyChildren() { if (this._children) { for (var i = 0, n = this._children.length; i < n; i++) { this._children[0].destroy(true); } } 这几行代码来自laya.core.js的12544行开始的,for循环里的this._children[0]是不是应该是this._children[i]?还是我的使用...

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

105. When asking questions, remember these two tips: [ 75%]

... the problem at hand. Stating the problem gives more context and less bias for a correct answer. In case things are not working as expected, please include as much information as you can in your report, for example: your LayaBox version, the code snippet and the error message alongside the error sta...

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

106. 怎麼支援原生的Websocket ssl? [ 75%]

...生的websocket 連線連到wss會出現 ERR: libwebsockets not configured for ssl 2016-11-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: LayaAir的socket本身封装的就是js下的we...

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

107. 苹果上架问题, [ 75%]

苹果上架问题, 2017年12月8日 上午9:53 发件人 Apple2. 5 Performance: Software Requirements 4. Design: Preamble Guideline 2.5.2 - Performance - Software Requirements Your app, extension, or linked framework appears to contain code designed explicitly with the capability to change you...

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

108. ios 报错 [ 75%]

...微博 QZONE 微信 a8181405c 赞同来自:  估计是在代码里写了 for (var key:int in obj)  这样的AS转成JS会有问题。要改为 for (var key:String in obj)    2018-02-03 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

109. laya换行符 [ 74%]

... 2018-01-24 17:18 浏览: 720 关注: 2 人 dandanqin • 2018-01-24 17:27 for(var i=0;i<5;i++) { this._basicAttr.text +="换行\n" }我用了一个for循环来测试换行,实际应该有五行,但是并没有实现我想要的效果,他是到达了文本规定的宽度后换行 ...

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

110. 高级应用-渲染纹理 [ 74%]

...); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3(-10, 0, 0), true, false); camera.addComponent(CameraMoveScript); var renderTargetCamera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); re...

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