大约有 9 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0073 秒)
...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_文档 发布时间: 20251010
...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_文档 发布时间: 20251010
...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_文档 发布时间: 20250104
..., 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
...象上的第一个缓动 let tween = Tween.getTween(aSprite); if (tween != null) tween.kill(); //获取对象上的全部缓动 let tweens = Tween.getTweens(sSprite); tweens.forEach(tween => tween.kill()); kill()方法有一个可选参数complete,这个参数表示当调用kill()方法提前...
来源: Laya3.0_文档 发布时间: 20251010
...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_文档 发布时间: 20251010
...of Component) { let comp = sprite.getComponent(componentType); if (comp != null) { lists.push(comp); } for (var i = 0; i < sprite.numChildren; i++) { let child = sprite.getChildAt(i) as Sprite; this.findCompents(lists, child, componentType); } } //组件被激活后执行,此时所有节点和...
来源: Laya3.0_文档 发布时间: 20251010
...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_文档 发布时间: 20251010
...为: import { MyDialog } from "./MyDialog"; Editor.showDialog(MyDialog, null); 八、扩展内置菜单 支持对编辑器现有菜单的扩展。如以下代码,在应用程序菜单栏的工具菜单下,新增了一个test的菜单,并且点击菜单会调用test函数。 class AnyName { @...
来源: Laya3.0_文档 发布时间: 20251010