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

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

2791. laya.media.SoundManager_API3.0 [ 38%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/media/SoundManager" SoundManager Class SoundManager SoundManager 是一个声音管理类。提供了对背景音乐、音效的播放控制方法。 引擎默认有两套声音方案:WebAudio和...

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

2792. 滤镜-颜色滤镜 [ 38%]

... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Filters_Color { private ApePath: string = "res/apes/monkey2.png"; private apeTexture: Texture; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL)...

来源: Laya2.0_示例 发布时间: 20260824

2793. laya.effect.FadeOut_API3.0 [ 38%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/effect/FadeOut" FadeOut Class FadeOut 淡出效果 Hierarchy EffectBase FadeOut Index Constructors constructor Properties _extra _singleton autoDestroyAtComplete delay duration ease eventName owner...

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

2794. laya.effect.FadeIn_API3.0 [ 38%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/effect/FadeIn" FadeIn Class FadeIn 淡入效果 Hierarchy EffectBase FadeIn Index Constructors constructor Properties _extra _singleton autoDestroyAtComplete delay duration ease eventName owner rep...

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

2795. [BUG]刚体约束问题,移动后约束混乱! [ 38%]

...,功能单一,建议用脚本方式实现,比如子弹脚本。  */ export default class GameUI extends ui.test.TestSceneUI {   private newScene:Laya.Scene3D;   private boxA: Laya.MeshSprite3D;   constructor() {     super();     Laya3D.init(0, 0);     Laya.stage.s...

来源: Laya_社区 发布时间: 20210103

2796. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 37%]

...,而是对摄相机进行。因此务必保持与摄相机相同。 **/ export default class ExtCullingMask { public static enableLightCullingMask(scene: Laya.Scene3D) { //var proto = Laya.Scene3D.prototype as any; (scene as any).lightCullingMask = function (scene, camera) { //灯光处理开始 ...

来源: Laya_社区 发布时间: 20200110

2797. 计时器-延迟执行 [ 37%]

...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_DelayExcute { private button1: Sprite; private button2: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Sta...

来源: Laya_示例 发布时间: 20260824

2798. laya.components.AnimatorState2D_API3.0 [ 37%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/components/AnimatorState2D" AnimatorState2D Class AnimatorState2D Animator 类用于创建动画组件。 Hierarchy EventDispatcher AnimatorState2D Implements IClone Index Properties clipEnd clipSt...

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

2799. laya.d3.component.hlod.HLOD_API3.0 [ 37%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/component/HLOD/HLOD" HLOD Class HLOD Hierarchy Component HLOD Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Accessors awaked bounds destroyed enabled h...

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

2800. 压缩纹理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 37%]

...,示例代码如下: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onAwake(): void { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500,100); img.skin = "resources/layabox.png"; //纹理压缩的图片的路径 } onStart() { Laya.Stat.show(...

来源: Laya3.0_文档 发布时间: 20251010