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

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

71. 关于适配noborder模式(个人适配分享及建议) [ 49%]

...tage.scaleMode != "noscale") { scaleY = divH / desH; scaleX = divW / desW; switch (Laya.stage.scaleMode) { case "noborder": if (scaleX > scaleY) { scaleY = scaleX; } else { scaleX = scaleY; } break; case "showall": if (scaleX < scaleY) { scaleY = scaleX; } else { scaleX = scaleY; } break; case...

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

72. 引擎 TiledMap 居然不支持图块翻转 [ 49%]

...         this._mapHeightHalf = this._map.height / 2;             switch (layerData.type) {                 case "tilelayer":                     break;                 case "objectgroup":                     var tArray = layerData.objects;          ...

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

73. canvas下资源清理的问题 [ 48%]

...rivate function onClick(e:Event):void         {             switch(e.currentTarget)             {                 case btn1:                     show();                     break;                 case btn2:         ...

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

74. [LayaAirIDE3]时间轴动画调了材质引用类型的属性,调用play()接口切状态的时候调用_revertDefaultKeyframeNodes报材质属性空 [ 47%]

...      if (property instanceof Material) {                     switch (node.type) {                         case KeyFrameValueType.Float:                             property = property.getFloat(node.getPropertyByIndex(i));                          ...

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

75. 分享,扩展Laya.Text组件实现简单的富文本 [ 47%]

...awUnderline(align, x, y, lineIndex) { var lineWidth = this.underLineWidth; switch (align) { case 'center': x -= lineWidth / 2; break; case 'right': x -= lineWidth; break; case 'left': default: break; } y += this._charSize.height; this._graphics.drawLine(x, y, x + lineWidth, y, this.underColor || thi...

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

76. unity彩色文件导出到程序编程黑色 [ 47%]

...n • 2018-01-18 16:38 我这里可以显示 那个导出插件有有一个switch to 3Dlayashader 你点一下 layali • 2018-01-18 16:45 @qian:好 layali • 2018-01-18 16:47 @qian:能加下qq吗,这里有点说不清楚的感觉 layali • 2018-01-18 16:48 @qian:我qq834777406 layali • 2018-0...

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

77. 动画不显示 [ 46%]

...                var name1:String ;                 switch(dir1){                     case 0:name1 = "stand4";break;                     case 1:name1 = "stand5";break;                     case 2:name1 = "stand6";break;        ...

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

78. 关于缓动函数from的一些问题记录 [ 45%]

...onsole.log("update"); var c = Math.floor(Math.random()*4); console.log(c); switch(c) { case 0:text.color='red';break; case 1:text.color="blue";break; case 2:text.color ='black';break; case 3:text.color = 'green';break; case 4:text.color = "yellow";break; } console.log(text.color); } ```注意Props...

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

79. sprite点击事件 位置便宜 [ 45%]

...seHandler); } /** * 鼠标响应事件处理 */ function mouseHandler(e) { switch (e.type) { case Event.MOUSE_DOWN: appendText("\n————————\n左键按下"); break; case Event.MOUSE_UP: appendText("\n左键抬起"); break; case Event.CLICK: appendText("\n左键点击\n—————...

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

80. socket大型项目回调 [ 44%]

... for (var name in msg) { if (protos[name]) { var proto:any = protos[name]; switch (proto.option) { case "optional": case "required": buffer.writeArrayBuffer(this.encodeTag(proto.type, proto.tag)); this.encodeProp(msg[name], proto.type, protos, buffer); break; case "repeated": if (!!msg[name] &&a...

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