大约有 8 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0026 秒)
...nction onMouseDown() { isDown = true; color = colors[colorCount++ % colors.length]; path.length = 0; } function onMouseMove() { if (!isDown) return; path.push(Laya.stage.mouseX); path.push(Laya.stage.mouseY); } function onMouseUp() { isDown = false; canvasGraphics.drawPoly(0, 0, path.concat(), color...
来源: Laya_示例 发布时间: 20241118
...nAniUrl[0]); skinAni.player.play(); } for (var i = 0, n = spirit3D._childs.length; i = [ "../../res/threeDimen/skinModel/Zombie/old/Assets/Zombie/Model/z@walk-walk.lsani", "../../res/threeDimen/skinModel/Zombie/old/Assets/Zombie/Model/z@attack-attack.lsani", "../../res/threeDimen/skinModel/Zombie/ol...
来源: Laya_示例 发布时间: 20241118
...rite = spirit3D; for (var i = 0; i < meshSprite.meshRender.sharedMaterials.length; i++) { var mat = meshSprite.meshRender.sharedMaterials[i]; mat.disableLight(); } } for (var i = 0; i < spirit3D._childs.length; i++) setMaterials(spirit3D._childs[i]); }class RenderTextureDemo { private scene: Laya.Sc...
来源: Laya_示例 发布时间: 20241118
...ew Laya.Vector3(0.002, 0.002, 0.002); for (var i = 0; i < monster2._childs.length; i++) { var meshSprite3D = monster2._childs[i]; var material = meshSprite3D.meshRender.material; //法线贴图 material.normalTexture = Laya.Texture2D.load(this.normalMapUrl[i]); } Laya.timer.frameLoop(1, this, functi...
来源: Laya_示例 发布时间: 20241118
...ction():void { var str:String = ""; for (var i:int = 0; i < _outHitAllInfo.length; i++) { str += _outHitAllInfo[i].sprite3D.name + " "; } if (_outHitAllInfo.length == 0){ str = "点击选取的几何体"; } label.text = str; }); } } }
来源: Laya_示例 发布时间: 20241118
...; } private function loopfun():void { if (_everyPath && index < _everyPath.length) { //AStar寻路位置 _position.x = _everyPath[index][0]; _position.z = _everyPath[index++][1]; //HeightMap获取高度数据 _position.y = terrainSprite.getHeight(_position.x, _position.z); if (isNaN(_position.y)){ _...
来源: Laya_示例 发布时间: 20241118
...shCollider检测出物体的3角面 for (var i:int = 0; i < _outHitAllInfo.length; i++) { var trianglePositions = _outHitAllInfo[i].trianglePositions; phasorSpriter3D.line(trianglePositions[0], _color, trianglePositions[1], _color); phasorSpriter3D.line(trianglePositions[1], _color, trianglePosition...
来源: Laya_示例 发布时间: 20241118
...er.sharedMaterial = customMaterial; } for (var i = 0, n = spirit3D._childs.length; i < n; i++) setCustomMaterial(spirit3D._childs[i]); } function initShader() { var attributeMap = { 'a_Position': Laya.VertexElementUsage.POSITION0, 'a_Normal': Laya.VertexElementUsage.NORMAL0, 'a_Texcoord0': Laya.Vert...
来源: Laya_示例 发布时间: 20241118