大约有 3,974 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0083 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(48)
...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
...变化量由 x 和 y 参数指定。 MatrixProperty Detailapropertypublic var a:Number缩放或旋转图像时影响像素沿 x 轴定位的值。bproperty public var b:Number旋转或倾斜图像时影响像素沿 y 轴定位的值。cproperty public var c:Number旋转或倾斜图像时影响像...
来源: laya_api 发布时间: 20170929
...长。 GeolocationProperty DetailenableHighAccuracypropertypublic static var enableHighAccuracy:Boolean = false 如果enableHighAccuracy为true,并且设备能够提供一个更精确的位置,则会获取最佳可能的结果。 请注意,这可能会导致较慢的响应时间或增加电量...
来源: laya_api 发布时间: 20170929
...长。 GeolocationProperty DetailenableHighAccuracypropertypublic static var enableHighAccuracy:Boolean = false 如果enableHighAccuracy为true,并且设备能够提供一个更精确的位置,则会获取最佳可能的结果。 请注意,这可能会导致较慢的响应时间或增加电量...
来源: Laya2.0_api 发布时间: 20190513
...独面进行处理, 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
...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
...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
... 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
...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
... 在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