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

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

1221. parameter 2 is not of type 'WebGLTexture' [ 78%]

parameter 2 is not of type 'WebGLTexture'   var htmlC:HTMLCanvas = btn_edit.drawToCanvas(btn_edit.width, btn_edit.height, 0, 0); var interceptT:Texture = new Texture(htmlC); var img:Sprite = new Sprite; img.graphics.drawImage(interceptT, 0, 0, btn_edit.width, btn_edit.height); Laya.stage.addChild(...

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

1222. 使用HTMLIframeElement加载html网页的问题。 [ 78%]

...标签不支持直接使用,你可以直接用js原生的写法,如下 var table = document.getElementById("tb1");//获取第一个表格 var child = table.getElementsByTagName("tr")[rowIndex - 1];//获取行的第一个单元格 var text = child.firstChild.innerHTML; window.alert("表格第" + ...

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

1223. ts继承后,代码压缩的问题 [ 78%]

... 我用uglify-js对代码进行压缩有,会有很多重复的一下语句 var __extends = this && this.__extends || function() { var extendStatics = Object.setPrototypeOf || { __proto__: [] }instanceof Array && function(d, b) { d.__proto__ = b } || function(d, b) { for (var p in b) ...

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

1224. 为什么调用封装的原生画线api不显示? [ 78%]

...on drawLine(layaCvs,startX,startY,toX,toY,lineWidth,strokeStyle,lineCap) { var layaCanvas = layaCvs; var oContext = layaCanvas.getContext("2d"); oContext.beginPath(); oContext.moveTo(startX, startY); oContext.lineTo(toX, toY); oContext.lineWidth = lineWidth; oContext.strokeStyle = strokeStyle; oCont...

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

1225. laya.device.geolocation.Geolocation [ 78%]

...长。 GeolocationProperty DetailenableHighAccuracypropertypublic static var enableHighAccuracy:Boolean = false 如果enableHighAccuracy为true,并且设备能够提供一个更精确的位置,则会获取最佳可能的结果。 请注意,这可能会导致较慢的响应时间或增加电量...

来源: laya_api 发布时间: 20170929

1226. laya.device.geolocation.Geolocation [ 78%]

...长。 GeolocationProperty DetailenableHighAccuracypropertypublic static var enableHighAccuracy:Boolean = false 如果enableHighAccuracy为true,并且设备能够提供一个更精确的位置,则会获取最佳可能的结果。 请注意,这可能会导致较慢的响应时间或增加电量...

来源: Laya2.0_api 发布时间: 20190513

1227. 如何获得box单独每个面的material [ 78%]

...独面进行处理, threejs做起来这个很简单, 这个就搞晕我了 var mesh = new Laya.BoxMesh(ConstValue.boxWidth, ConstValue.boxWidth, ConstValue.boxHeight); var box = this.parent.addChild(new Laya.MeshSprite3D(mesh)); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.tra...

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

1228. 如何用Tween 给graphics.drawLine 设置缓动 [ 78%]

...package { import laya.display.Sprite; public class LayaAirDemo { private var sp:Sprite; private var endX:Number; private var endY:Number; public function LayaAirDemo() { Laya.init(600,600); sp=new Sprite(); Laya.stage.addChild(sp); endX=0; endY=0; sp.graphics.drawLine(10,10,endX,endY,'#FF0000'); Lay...

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

1229. 用Unity插件导出的模型渲染报错 [ 78%]

...mationNode[index]这个值是undefined的 155*****924 • 2019-05-16 15:21 var meshBoneNames=this._cacheMesh._boneNames; for (var i=0;i < innerBindPoseCount;i++){ var node=nodeMap[meshBoneNames[bindPoseIndices[i]]]; this._cacheAnimationNode[i]=node; } 然后_getCacheAnimationNodes这个函数里 ...

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

1230. layacmd命令行问题 [ 78%]

... 在layaair-cmd模块的layaair-cmd-publish第165行: if (!isAsProj) { var result = UglifyJS.minify([path.join(workspace, "release", "layaweb", versionName, "main.min.js")]); fs.writeFileSync(path.join(workspace, "release", "layaweb", versionName, ...

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