大约有 37 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0046 秒)
Laya_社区(21) Laya3.0_文档(4) Laya_示例(3) Laya2.0_示例(3) Laya2.0_api(3) laya_api(1) Laya3.0_api(1) Laya2.0_文档(1)
... private mDecorate:Decorate;//装饰器 private mHost: string; private mPort: number; private mConnected: boolean; /** 开启*/ public static OPEN: string = "open"; /** 关闭*/ public static CLOSE: string = ...
来源: Laya_社区 发布时间: 20161109
...debugSubShader._owner; var deugDefines = ShaderPass._debugDefineString; //将defineDatas抓换成宏定义数组 Shader3D._getNamesByDefineData(compileDefine, deugDefines); if (!Config3D._config._multiLighting) { var index = deugDefines.indexO...
来源: Laya_社区 发布时间: 20200606
...rawLine(fromX: number, fromY: number, toX: number, toY: number, lineColor: string, lineWidth: number = 1): DrawLineCmd { return this.addCmd(DrawLineCmd.create(fromX, fromY, toX, toY, lineColor, lineWidth)); } 代码示例: let sp = new Laya.Sprite(); //画直线 sp.graphics.drawLine(10, 58, 146, 5...
来源: Laya3.0_文档 发布时间: 20241014
...esh: Mesh, texture: Texture2D, minHeight: number, maxHeight: number, name: string = null): MeshTerrainSprite3D { var meshTerrainSprite3D: MeshTerrainSprite3D = new MeshTerrainSprite3D(mesh, null, name); meshTerrainSprite3D._initCreateFromMeshHeightMap(texture, minHeight, maxHeight); return meshTerra...
来源: Laya3.0_文档 发布时间: 20230303
...显示这个img。我们新建个项目。代码如下所示: var data: string = "data:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:4...
来源: Laya3.0_文档 发布时间: 20241014
...ath(scene:Scene):void { for (var i:int = 0; i < pointCount; i++) { var str:String = "path" + i; path.push((scene.getChildByName('Scenes').getChildByName('Area').getChildByName(str) as MeshSprite3D).transform.localPosition); } } } }
来源: Laya_示例 发布时间: 20241118
...reate a new message var message = AwesomeMessage.create( { openid: "AwesomeString" }); console.log(message.openid) // Verify the message if necessary (i.e. when possibly incomplete or invalid) var errMsg = AwesomeMessage.verify(message); if (errMsg) throw Error(errMsg); // Encode a message to an...
来源: Laya_社区 发布时间: 20180704