大约有 3,008 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0063 秒)
Laya_社区(1073) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(100)
...ay, caller, method, args, coverBefore); } 使用示例如下: const { regClass } = Laya; import { RuntimeScriptBase } from "./RuntimeScript.generated"; @regClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { //60帧后,图片的透明度变为0.5 Laya.timer.frameOnce...
来源: Laya3.0_文档 发布时间: 20240910
... Only exported Menu Globals "laya/d3/graphics/VertexElement" VertexElement Class VertexElement VertexElement 类用于创建顶点结构分配。 Hierarchy VertexElement Index Constructors constructor Accessors elementFormat elementUsage offset Constructors constructor new VertexElement(offset: numb...
来源: Laya3.0_api 发布时间: 20231102
...Menu Globals "laya/components/AnimatorState2DScript" AnimatorState2DScript Class AnimatorState2DScript Hierarchy AnimatorState2DScript Index Methods onStateEnter onStateExit onStateUpdate Methods onStateEnter onStateEnter(): void Defined in laya/components/AnimatorState2DScript.ts:5 动画状态开...
来源: Laya3.0_api 发布时间: 20231115
...nals Only exported Menu Globals "laya/display/cmd/ClipRectCmd" ClipRectCmd Class ClipRectCmd 裁剪命令 Hierarchy ClipRectCmd Index Properties height width x y ID Methods recover Properties height height: number Defined in laya/display/cmd/ClipRectCmd.ts:26 高度。 width width: number Defined in...
来源: Laya3.0_api 发布时间: 20231115
...项目开发更高效。const WID = 373, HEI = 85; const Box = Laya.Box; class Item extends Box { constructor(){ super(); const Image = Laya.Image; this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); } setImg(src) { this.img.skin = src; } } class UI_List { constructor() { const Bro...
来源: Laya2.0_示例 发布时间: 20250222
...xternals Only exported Menu Globals "laya/net/BatchProgress" BatchProgress Class BatchProgress Hierarchy BatchProgress Implements IBatchProgress Index Constructors constructor Accessors itemCount Methods createCallback reset update Constructors constructor new BatchProgress(callback: ProgressCallbac...
来源: Laya3.0_api 发布时间: 20231115
...AtlasAniDemo.ts,并编写代码如下: ```typescript // 程序入口 class AtlasAniDemo{ private roleAni:Laya.Animation; constructor() { //初始化舞台 Laya.init(1334,750,Laya.WebGL); //创建动画实例 this.roleAni = new Laya.Animation(); //加载动画图集,加载成功后执行回调...
来源: Laya2.0_文档 发布时间: 20210715
...enu Globals "laya/d3/graphics/Batch/RenderElementBatch" RenderElementBatch Class RenderElementBatch Hierarchy RenderElementBatch Index Constructors constructor Properties instance Methods batch recoverData Constructors constructor new RenderElementBatch(): RenderElementBatch Defined in laya/d3/graph...
来源: Laya3.0_api 发布时间: 20231115
...d3/RenderObjs/RenderObj/RenderGeometryElementOBJ" RenderGeometryElementOBJ Class RenderGeometryElementOBJ Hierarchy RenderGeometryElementOBJ Implements IRenderGeometryElement Index Accessors indexFormat mode Accessors indexFormat get indexFormat(): IndexFormat set indexFormat(value: IndexFormat): vo...
来源: Laya3.0_api 发布时间: 20231115
...rted Menu Globals "laya/spine/SpineSkeletonRenderer" SpineSkeletonRenderer Class SpineSkeletonRenderer Hierarchy SpineSkeletonRenderer Index Constructors constructor Properties premultipliedAlpha templet vertexEffect Methods draw Constructors constructor new SpineSkeletonRenderer(templet: SpineTempl...
来源: Laya3.0_api 发布时间: 20231115