大约有 1,237 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0101 秒)
Laya_社区(706) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(76) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
..._childs.length; i < n; i++) this.setCustomMaterial(spirit3D._childs[i]); } private initShader(): void { var attributeMap = { 'a_Position': Laya.VertexElementUsage.POSITION0, 'a_Normal': Laya.VertexElementUsage.NORMAL0, 'a_Texcoord0': Laya.VertexElementUsage.TEXTURECOORDINATE0, 'a_Texcoord1': Laya.Ve...
来源: Laya_示例 发布时间: 20260303
...示: /* ……省略若干代码 */ /**增加圆锥形刚体碰撞器 */ private addCone(): void { //生成随机值半径和高 let raidius = Math.random() * 0.2 + 0.2; let height = Math.random() * 0.5 + 0.8; //创建圆锥形3D模型节点对象 let cone = new Laya.Sprite3D; let coneMesh = cone....
来源: Laya3.0_文档 发布时间: 20251010
...script /* ……省略若干代码 */ /**增加圆锥形刚体碰撞器 */ private addCone(): void { //生成随机值半径和高 let raidius = Math.random() * 0.2 + 0.2; let height = Math.random() * 0.5 + 0.8; //创建圆锥形3D模型节点对象 let cone = new Laya.MeshSprite3D(Laya.PrimitiveMes...
来源: Laya2.0_文档 发布时间: 20210715
...]; /** 纪录鼠标按下状态,true为已按下,用于状态判断 */ private mouseDown: boolean = false; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(1334, 750, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode =...
来源: Laya2.0_示例 发布时间: 20260303
....bgColor = "#efefef";//设置画布的背景颜色。 init();//初始化 } private function init():void { var animation:Animation = new Animation();//创建一个 Animation 类的实例对象 animation 。 animation.loadAtlas("resource/ani/fighter.json");//加载图集并播放 animation.x = 200;//...
来源: Laya3.0_api 发布时间: 20231115
...法用于绘制九宫格纹理。该方法的详细说明如下: /** * @private * 绘制带九宫格的图片 * @param texture * @param x * @param y * @param width * @param height * @param sizeGrid * @param color */ draw9Grid(texture: Texture, x: number = 0, y: number = 0, width: number = 0, heigh...
来源: Laya3.0_文档 发布时间: 20251010
...aya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var text:Text = new Text();//创建一个 Text 类的实例对象 text 。 text.text = "这个是一个 Text 文本示例。"; text.color = "#008fff";//设置 text 的文本颜色。 text.font...
来源: Laya3.0_api 发布时间: 20231115