大约有 6 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0040 秒)
...y: number, width: number, height: number, fillColor: any, lineColor: any = null, lineWidth: number = 1, percent?: boolean): DrawRectCmd { return this.addCmd(DrawRectCmd.create(x, y, width, height, fillColor, lineColor, lineWidth, percent)); } 代码示例: let sp = new Laya.Sprite(); //画矩形 s...
来源: Laya3.0_文档 发布时间: 20241014
...Sprite3D { private _isInited: boolean = false; private _filePath: string = null; private _particle: Laya.Sprite = null; private _shuriKenParticle3D: Array<ShuriKenParticle3D>= []; private _shurikenParticleSystem: Array<ShurikenParticleSystem>= []; constructor() { super(); } //通过传...
来源: Laya3.0_文档 发布时间: 20241014
..., texture: Texture2D, minHeight: number, maxHeight: number, name: string = null): MeshTerrainSprite3D { var meshTerrainSprite3D: MeshTerrainSprite3D = new MeshTerrainSprite3D(mesh, null, name); meshTerrainSprite3D._initCreateFromMeshHeightMap(texture, minHeight, maxHeight); return meshTerrainSprite3...
来源: Laya3.0_文档 发布时间: 20230303
...ool, default: false } }, styles: { RAIN : { caption: "下雨", inspector : null }, //inspector为null,不显示在属性面板 SNOWY : { caption: "下雪"}, // 定义不属于uniform和define的属性 weather : { caption:"天气", inspector: RadioGroup, options: { members: [RAIN, SNOWY] }} }, RAIN...
来源: Laya3.0_文档 发布时间: 20241119
...ool, default: false } }, styles: { RAIN : { caption: "下雨", inspector : null }, //inspector为null,不显示在属性面板 SNOWY : { caption: "下雪"}, // 定义不属于uniform和define的属性 weather : { caption:"天气", inspector: RadioGroup, options: { members: [RAIN, SNOWY] }} }, RAIN...
来源: Laya3.0_文档 发布时间: 20241014
...为: import { MyDialog } from "./MyDialog"; Editor.showDialog(MyDialog, null); 八、扩展内置菜单 支持对编辑器现有菜单的扩展。如以下代码,在应用程序菜单栏的工具菜单下,新增了一个test的菜单,并且点击菜单会调用test函数。 class AnyName { @...
来源: Laya3.0_文档 发布时间: 20241014