• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 70 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)

1. laya.d3.graphics.StaticBatchManager_API3.0 [ 100%]

...BatchManager Class StaticBatchManager StaticBatchManager 类用于静态批处理管理的父类。 Hierarchy StaticBatchManager Index Constructors constructor Methods combine Constructors constructor new StaticBatchManager(): StaticBatchManager Defined in laya/d3/graphics/StaticBatchManager.ts:71 ...

来源: Laya3.0_api 发布时间: 20231102

2. laya.utils.Handler_API3.0 [ 95%]

...d Menu Globals "laya/utils/Handler" Handler Class Handler Handler 是事件处理器类。 推荐使用 Handler.create() 方法从对象池创建,减少对象创建消耗。创建的 Handler 对象不再使用,可以使用 Handler.recover() 将其回收到对象池,回收不要再使用...

来源: Laya3.0_api 发布时间: 20231115

3. laya.d3.core.render.PostProcessRenderContext_API3.0 [ 91%]

...ass PostProcessRenderContext PostProcessRenderContext 类用于创建处理渲染上下文。 Hierarchy PostProcessRenderContext Index Properties camera command compositeShaderData deferredReleaseTextures destination indirectTarget source Methods createRTByContextReleaseTexture Properties came...

来源: Laya3.0_api 发布时间: 20231115

4. laya.net.URL_API3.0 [ 86%]

...有,则使用URL.basePath或者URL.rootPath。 Returns string 格式化处理的地址。 Static getFileName getFileName(url: string): string Defined in laya/net/URL.ts:220 获取指定 URL 的文件名。 Parameters url: string 地址。 Returns string 返回文件名。 Static getPath getPath...

来源: Laya3.0_api 发布时间: 20231115

5. laya.gltf.glTFResource_API3.0 [ 53%]

...dler: Handler): void Defined in laya/gltf/glTFResource.ts:247 注册 extra 处理函数 Parameters context: string extraName: string handler: Handler Returns void unregisterExtra unregisterExtra(context: string, extraName: string, recoverHandler?: boolean): void Defined in laya/gltf/glTFResource.ts:...

来源: Laya3.0_api 发布时间: 20231102

6. laya.device.motion.Gyroscope_API3.0 [ 48%]

...取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提供绝对方位数据(指向地球坐标系),或者设备决定的任意坐标...

来源: Laya3.0_api 发布时间: 20231115

7. laya.device.motion.Accelerator_API3.0 [ 47%]

...唯一的Accelerator引用,请勿调用构造函数。 listen()的回调处理器接受四个参数: acceleration: 表示用户给予设备的加速度。 accelerationIncludingGravity: 设备受到的总加速度(包含重力)。 rotationRate: 设备的自转速率。 interval: 加速度获...

来源: Laya3.0_api 发布时间: 20231115

8. laya.ui.Button_API3.0 [ 46%]

...= new Handler(this, onClickButton,[button]);//设置 button 的点击事件处理器。 Laya.stage.addChild(button);//将此 button 对象添加到显示列表。 } private function onClickButton(button:Button):void { trace("按钮button被点击了!"); } } } example Laya.init(640, 800);//设置...

来源: Laya3.0_api 发布时间: 20231115

9. laya.ui.CheckBox_API3.0 [ 46%]

... = new Handler(this, onClick, [checkBox]);//设置 checkBox 的点击事件处理器。 Laya.stage.addChild(checkBox);//将此 checkBox 对象添加到显示列表。 } private function onClick(checkBox:CheckBox):void { trace("输出选中状态: checkBox.selected = " + checkBox.selected); } } } exa...

来源: Laya3.0_api 发布时间: 20231115

10. laya.media.SoundChannel_API3.0 [ 45%]

...pleteHandler: Handler Defined in laya/media/SoundChannel.ts:28 播放完成处理器。 isStopped isStopped: boolean = false Defined in laya/media/SoundChannel.ts:24 表示声音是否已暂停。 loops loops: number Defined in laya/media/SoundChannel.ts:16 循环次数。 startTime startTime: numbe...

来源: Laya3.0_api 发布时间: 20231115