大约有 1,102 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0057 秒)
Laya_社区(444) Laya3.0_api(292) Laya_示例(112) Laya2.0_示例(80) Laya2.0_文档(61) Laya3.0_文档(51) Laya2.0_api(35) laya_api(27)
...,本例为10000): ```typescript 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 (图1) 当我们对文字所在的容器设置为cacheAs之后,如下面的例子所示,性能获得较大的...
来源: Laya2.0_文档 发布时间: 20210714
...,代码如下 export default class SettingDialog extends Laya.Dialog { constructor() { super(); this.loadScene('assets/scenes/dialogs/SettingDialog.scene'); } }{ "x":0, "type":"Dialog", "selectedBox":2, "selecteID":3, "searchKey":"Dialog", "props":{"width":1624,"sceneColor":"#000000","runtime":"sc...
来源: Laya_社区 发布时间: 20200417
2.2.0 Html使用img标签解析错误 TypeError: Illegal constructor preload.js:55 at Function.getInstance (file:///D:/LayaTest/TestHtml2.2.0/bin/libs/laya.core.js:11687:24) at Function.getInstance (file:///D:/LayaTest/TestHtml2.2.0/bin/libs/laya.html.js:1213:39) at Function._parseXML (file:/...
来源: Laya_社区 发布时间: 20191028
...aya.WebGL; export class UI_ProgressBar { private progressBar: ProgressBar; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgCo...
来源: Laya_示例 发布时间: 20250225
...; 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.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgCo...
来源: Laya2.0_文档 发布时间: 20210715
...Hierarchy Material PBRMaterial PBRStandardMaterial Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock name renderQueue url uuid ALPHATESTVALUE DEBUG RENDERQUEUE_ALPHATEST RENDERQUEUE_OPAQUE RENDERQUEUE_TRANSPARENT SHADERDEFINE_ADDTIVEFOG SHADERDEFINE_ALPHATEST ...
来源: Laya3.0_api 发布时间: 20231115
...nstance():DdzLandlordAni{ return this.instance(DdzLandlordAni); } public constructor(){ super(); this.initTemplet(); } public static destoryInstance(){ if(this.mInstance){ (<DdzLandlordAni>this.mInstance).destory(); this.mInstance = null; } } public initTemplet(){ this.mFactory = new Lay...
来源: Laya_社区 发布时间: 20190821
... Stage = Laya.Stage; export class TexasMain{ private balls:Laya.Sprite = ; constructor(){ Config.isAntialias = true // alert("宽"+Laya.Browser.clientWidth+"高"+Laya.Browser.clientHeight ); // Laya.init(Laya.Browser.clientWidth,Laya.Browser.clientHeight, Laya.WebGL ); Laya.init(720,1280,Laya.WebGL)...
来源: Laya_社区 发布时间: 20180226
...span> </span>" constructor() { super() this.width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this._createBg() this._createView() this.on(Laya.Event.UNDISPLAY,this,this.stop) this.on(Laya.Event.DISPLAY,...
来源: Laya_社区 发布时间: 20180314
...TempletBinary; private skeleton:SpineSkeleton; private index: number = -1; constructor() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private startFun(): void { //创建动画模板 this...
来源: Laya2.0_文档 发布时间: 20210715