大约有 1,253 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0049 秒)
...e = Laya.Sprite; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class PIXI_Example_21 { private colors:Array = ["#5D0776", "#EC8A49", "#AF3666", "#F6C84C", "#4C779A"]; private colorCount:number = 0; private isDown:Boolean = false; private path:Array = []; private color:String = thi...
来源: Laya_示例 发布时间: 20250220
...题,就是ios有问题。代码如下:附件是两个音频文件 export default class GameMain extends Laya.Scene { constructor() { super(); //设置单例的引用方式,方便其他类引用 GameMain.instance = this; ...
来源: Laya_社区 发布时间: 20200925
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/render/PostEffect/BloomEffect" BloomEffect Class BloomEffect BloomEffect 类用于创建泛光效果。 Hierarchy PostProcessEffect BloomEffect Index Constructors constructor Accessors acti...
来源: Laya3.0_api 发布时间: 20231115
...dler = Laya.Handler; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Tween_EaseFunctionsDemo { private character: Sprite; private duration: number = 2000; private tween: Tween; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV ...
来源: Laya_示例 发布时间: 20250220
...Laya.Keyboard; import TimeLine = Laya.TimeLine; import WebGL = Laya.WebGL; export class Tween_TimeLine { private target:Sprite; private timeLine:TimeLine = new TimeLine(); constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; La...
来源: Laya2.0_示例 发布时间: 20250220
...nst { regClass, property } = Laya; /** * 使用视频纹理 */ @regClass() export class Script extends Laya.Script { declare owner: Laya.Sprite3D; @property(Laya.Scene3D) private scene: Laya.Scene3D; private videoPlane: Laya.Sprite3D; private videoTexture = new Laya.VideoTexture(); onAwake(): void {...
来源: Laya3.0_文档 发布时间: 20250214
...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
... = 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_示例 发布时间: 20250220
...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
...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