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

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

1221. 为什么调用封装的原生画线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

1222. laya.maths.Matrix [ 78%]

...变化量由 x 和 y 参数指定。 MatrixProperty Detailapropertypublic var a:Number缩放或旋转图像时影响像素沿 x 轴定位的值。bproperty public var b:Number旋转或倾斜图像时影响像素沿 y 轴定位的值。cproperty public var c:Number旋转或倾斜图像时影响像...

来源: laya_api 发布时间: 20170929

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

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

来源: laya_api 发布时间: 20170929

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

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

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

1225. 如何获得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

1226. 如何用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

1227. 用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

1228. 父元素,子元素,兄弟元素 [ 78%]

... parent:Laya.Sprite = child.parent;//父 let len = parent.numChildren; for(var i = 0; i < len; i++){ let value = parent.getChildAt(i); if(value != child) { //兄弟 } else{ //自己 } } 2018-09-01 0 1 分享 微博 QZONE 微信 谢春 赞同来自: 可能你所说的是点击事件穿透问题,...

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

1229. 自定义格式模型创建&渲染问题 [ 78%]

...Format.Color, Laya.VertexElementUsage.COLOR0); Stride += 16; Index += 1; } var VertDecal = new Laya.VertexDeclaration(Stride, VerElement); NewMesh._vertexBuffers[0] = new Laya.VertexBuffer3D(VertDecal, TriSpaheData.VertexCount(), /*laya.webgl.WebGLContext.STATIC_DRAW*/0x88E4, false); var Mesh:Laya.M...

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

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