大约有 532 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0035 秒)
Laya_社区(171) Laya2.0_示例(114) Laya2.0_api(91) Laya3.0_文档(65) laya_api(48) Laya_示例(24) Laya2.0_文档(16) Laya3.0_api(3)
...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
...语言、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_示例 发布时间: 20241001
...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_文档 发布时间: 20230927
...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
...发语言、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_示例 发布时间: 20241001
...目开发更高效。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_示例 发布时间: 20241001
...项目开发更高效。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_示例 发布时间: 20241001
...性了,例如,给Sprite添加纹理等,示例代码如下所示: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type : Laya.Sprite}) public spr: Laya.Sprite; onAwake(): void { this.spr.size(512, 313); //设置Sprite大小 this.spr.lo...
来源: Laya3.0_文档 发布时间: 20240809
...asses | Index | Frames No Frames IndexBuffer3DProperties | Methods | Constants Packagelaya.d3.graphicsClasspublic class IndexBuffer3DInheritanceIndexBuffer3D Buffer laya.resource.Resource IndexBuffer3D 类用于创建索引缓冲。 Public Properties Hide Inherited Public Properties Show Inhe...
来源: laya_api 发布时间: 20170929
...开发语言、LayaAirIDE让项目开发更高效。class UI_ProgressBar { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.A...
来源: Laya2.0_示例 发布时间: 20241001