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

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

271. 学会编写d.ts声明文件(TypeScript-IDE篇(TS)-代码模式基础) [ 63%]

... d.ts类型定义文件主要有以下几种语法: - `declare var\let\const ` 声明全局变量或常量 - `declare enum` 声明全局枚举类型 - `declare function` 声明全局函数 - `declare class` 声明全局类 - `declare module`声明全局模块 - `declare namespace` 声明全局对...

来源: Laya2.0_文档 发布时间: 20210715

272. [LayaAir3]LayaAir3.3使用Fairygui开发UI,滤镜效果对不上 [ 63%]

...irygui.UIPackage.loadPackage("resources/LayaBUG", (pkgs) => { const view = pkgs[0].createObject("View"); console.log(view); this.owner.addChild(view.displayObject); }); } 我提出的問題是,Fairygui編輯器和Laya編輯器,使用BlendMode和濾鏡的效果不相同。 ...

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

273. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 63%]

...laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:Rectangle = new Rectangle(0,0,BarCell.WID,BarCell.WID); private var pos:int = BarCell.WID*...

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

274. Sprite-显示图片 [ 63%]

...语言、LayaAirIDE让项目开发更高效。class Sprite_DisplayImage { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 2D场景不显示时打开 Laya.Config.isAntialias = true; // 2D场景显示错乱时打开 Laya.Config.useWebGL2 = false; // 不支持We...

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

275. laya.d3.graphics.IndexBuffer3D [ 63%]

...asses | Index | Frames No Frames IndexBuffer3DProperties | Methods | Constants Packagelaya.d3.graphicsClasspublic class IndexBuffer3DInheritanceIndexBuffer3D Buffer Object IndexBuffer3D 类用于创建索引缓冲。 Public Properties Hide Inherited Public Properties Show Inherited Public Pro...

来源: Laya2.0_api 发布时间: 20190513

276. 文本-复杂的文本样式 [ 63%]

...发语言、LayaAirIDE让项目开发更高效。class Text_ComplexStyle { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIG...

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

277. UI-ComboBox [ 63%]

...目开发更高效。let skin = "res/ui/combobox.png"; class UI_ComboBox { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.A...

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

278. [LayaAir3]Laya3.3废弃了filters,如何设置sprite滤镜,添加PostProcess2D,再给Process添加ColorEffect2D也不生效 [ 63%]

...bject.addChild(spirit);     spirit.x = 360;     spirit.y = 640;     const url = "lang/zh-cn/spine/hero/zhujue_attack/zhujue_attack.skel"     Laya.loader.load(url).then(()=>{         let spine = spirit.addComponent(Laya.Spine2DRenderNode)         spine.source = url;        ...

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

279. 文本-位图字体 [ 63%]

...项目开发更高效。let fontName = "diyFont"; class Text_BitmapFont { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN...

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

280. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...1.2.4 设置数据源 必须要在代码中给List组件设置数据源。 const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { @property({ type: Laya.List }) list: Laya.List constructor() { super(); } // 组件被启用后执行,例如节点被添加到舞台...

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