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

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

401. laya阴影问题 [ 74%]

...03; var pos = new Laya.Vector3(0,0.08,0.05);// new Laya.Vector3(0,0,0.05); if(index == 0){ a = 0.0001; b = 0.4 c = 0.2; pos = new Laya.Vector3(0,0,0); } // 创建Box对象 var cardOne = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(b, a, c)); var boxCollider: Laya.PhysicsCollider = cardOne.getC...

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

402. 给Dictionary添加个长度 [ 74%]

.../ public function set(key:*, value:*):void { var index:int = indexOf(key); if (index >= 0) { _values[index] = value; return; } _keys.push(key); _values.push(value); ++_lenght; } /** * 获取指定对象的键名索引。 * @param key 键名对象。 * @return 键名索引。 */ public function in...

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

403. shader报错 [ 74%]

shader报错 报错信息 Uncaught Precisions of uniform 'u_ShadowBias' differ between VERTEX and FRAGMENT shaders. 附件 : --> 2021-11-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_zhang 赞同来自:...

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

404. UI-Label [ 74%]

...ei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } Laya.stage.addChild(label); return label; } })();module laya { import Stage = Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL...

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

405. TS setExternalLinkEx問題 [ 74%]

...estAnimationFrame(render); document.addEventListener('touchstart',()=>{ if(Browser.window.conch){ var l = 50; var t = 50; var w = window.innerWidth-l*2; var h = window.innerHeight-t*2; Browser.window.conch.setExternalLinkEx('http://www.layabox.com',l,t,w,h,true); //conch.setExternalLink('http://w...

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

406. ShurikenParticleInstanceSystem内存统计错误 [ 74%]

...码漏了,导致内存面板显示会不断增长:   // 原始源码 if (this._instanceParticleVertexBuffer) { this._instanceParticleVertexBuffer._byteLength; this._instanceParticleVertexBuffer.destroy(); } // 更新代码 if (this._instanceParticleVertexBuffer) { memorySize += this._instancePa...

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

407. 在绘制扇形CD进度条时会在IOS上百分百出现绘制不完全的BUG(有必现Demo) [ 74%]

...新蓄力进度圈 updatePowerProgressTest() { //是否为增加进度条 if (this.isIncPower) { //蓄力速度 this.currentPower += 5; if (this.currentPower >= this.powerTotal) { this.currentPower = this.powerTotal; // this.NodePowerProgressBg.skin = this.powerProgressRedSprite; this.isIncPower ...

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

408. 火狐花屏问题 [ 74%]

...ion (imageData) {                 clear();                 if (imageData) {                     var image = imageData;                     if (type !== "nativeimage") {                         image = new Texture2D();                       ...

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

409. 遍历相关问题 [ 74%]

...           console.debug("pairID"+pair.id);            if(pair.id.indexOf(11)){                arr1.push(pair );               }          if(pair.id.indexOf(22)){                arr2.push(pair );               } .........

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

410. UI-Label [ 74%]

...ei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } return label; } } new UI_Label();module laya { import Stage = Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL; export class U...

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