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

大约有 1,732 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0056 秒)

251. 文本-禁止编辑 [ 76%]

...ya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Editable { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya...

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

252. laya.d3.utils.Size_API3.0 [ 76%]

...l Inherited Externals Only exported Menu Globals "laya/d3/utils/Size" Size Class Size Hierarchy Size Index Constructors constructor Accessors height width fullScreen Constructors constructor new Size(width: number, height: number): Size Defined in laya/d3/utils/Size.ts:33 创建Size实例 Parameters...

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

253. 滤镜-发光滤镜 [ 76%]

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

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

254. laya.display.css.SpriteStyle_API3.0 [ 76%]

...nals Only exported Menu Globals "laya/display/css/SpriteStyle" SpriteStyle Class SpriteStyle 元素样式 Hierarchy SpriteStyle Index Constructors constructor Properties alpha blendMode dragging hitArea pivotX pivotY rotation scaleX scaleY scrollRect skewX skewY viewport EMPTY Methods recover reset ...

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

255. 加载-销毁Texture使用的图片资源 [ 76%]

...效。let PathBg = "res/bg2.png", PathFly = "res/fighter/fighter.atlas"; class Loader_ClearTextureRes { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWi...

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

256. UI-ComboBox [ 76%]

...ComboBox; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ComboBox { private skin: string = "../../res/ui/combobox.png"; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.A...

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

257. Sprite-遮罩-放大镜 [ 76%]

....Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sprite_MagnifyingGlass { private maskSp:Sprite; private bg2:Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(1136, 640, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stag...

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

258. laya.resource.HTMLCanvas [ 76%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames HTMLCanvasProperties | Methods | Constants Packagelaya.resourceClasspublic class HTMLCanvasInheritanceHTMLCanvas laya.resource.Bitmap HTMLCanvas 是 Html Canvas 的代理类,封装了 Canvas 的属性和方法。。...

来源: laya_api 发布时间: 20170929

259. UI-Dialog [ 76%]

...ya.Image; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Dialog { private DIALOG_WIDTH: number = 220; private DIALOG_HEIGHT: number = 275; private CLOSE_BTN_WIDTH: number = 43; private CLOSE_BTN_PADDING: number = 5; private assets: Array; constructor() { // 不支持WebGL...

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

260. 2D物理-仿生机器人 [ 76%]

...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Physics_Physics_Strandbeests { constructor() { this.scale = 2.5; this.pos = [500, 400]; this.m_offset = [0, -80 * this.scale]; this.pivot = [0, 8 * this.scale]; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, ...

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