大约有 417 项符合查询结果, 库内数据总量为 30,937 项。 (搜索耗时: 0.0114 秒)
Laya3.0_api(292) Laya3.0_文档(51) Laya2.0_api(35) laya_api(27) Laya_社区(8) Laya2.0_文档(2) Laya2.0_示例(1) Laya_示例(1)
...ab = laya.ui.Tab; import Handler = laya.utils.Handler; class Tab_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/tab.png"], Handler.create(this, this.onLoadComplete));//加载...
来源: Laya3.0_api 发布时间: 20231115
...此 image 对象添加到显示列表。 } example class Image_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { var bg: laya.ui.Image = new laya.ui.Image("resource/ui/...
来源: Laya3.0_api 发布时间: 20231115
...aya.utils.Handler; class Dialog_Example { private dialog: Dialog_Instance; constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, this.onLoadComplete));//加...
来源: Laya3.0_api 发布时间: 20231115
... 获得所属场景。 Implementation public function get scene():*Constructor DetailNode()Constructorpublic function Node()Method DetailaddChild()method public function addChild(node:Node):Node 添加子节点。 Parameters node:Node — 节点对象 ReturnsNode — 返回添加的节点 ad...
来源: Laya2.0_api 发布时间: 20190513
....TextInput; import Handler = laya.utils.Handler; class TextInput_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, this.onLoadComp...
来源: Laya3.0_api 发布时间: 20231115
...择网页或者native两个平台 * @param dccurl dcc的服务器地址 */ constructor(dccurl:string, frw:new ()=>IGitFSFileIO|null, logger:ICheckLog=null) enableLog(b:boolean) /** * 初始化,下载必须信息 * @param headfile dcc根文件,这个文件作为入口,用来同步本地缓...
来源: Laya3.0_文档 发布时间: 20250103
...ui.TextArea; import Handler = laya.utils.Handler; class TextArea_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, this.onLoadComp...
来源: Laya3.0_api 发布时间: 20231115
...egClass() export class DemoPreviewPlugin extends IEditorEnv.AssetPreview { constructor() { super(); this.sprite.graphics.drawCircle(100, 100, 50, "#ffff00"); this.sprite.size(100, 100); } async setAsset(asset: IEditorEnv.IAssetInfo): Promise<any> { this.renderTarget = this.sprite; } } 显示...
来源: Laya3.0_文档 发布时间: 20250310
...ty Detailelementspropertypublic var elements:Float32Array矩阵元素数组Constructor DetailMatrix4x4()Constructorpublic function Matrix4x4(m11:Number = 1, m12:Number = 0, m13:Number = 0, m14:Number = 0, m21:Number = 0, m22:Number = 1, m23:Number = 0, m24:Number = 0, m31:Number = 0, m32:Number = 0,...
来源: Laya2.0_api 发布时间: 20190513
...脑性能而定,本例为10000): class Test { private text:Laya.Text; constructor() { Laya.init(550,400,Laya.WebGL); Laya.Stat.show(); var textBox=new Laya.Sprite(); for(var i=0;i<10000;i++) { this.text=new Laya.Text(); this.text.text=(Math.random()*100).toFixed(0); this.text.color="#CCCCCC";...
来源: Laya3.0_文档 发布时间: 20240910