大约有 240 项符合查询结果, 库内数据总量为 30,962 项。 (搜索耗时: 0.0077 秒)
...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
...der see laya.ui.VSlider Hierarchy UIComponent Slider HSlider VSlider Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize changeHandler hitTestPrior isVertical mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInH...
来源: Laya3.0_api 发布时间: 20231115
...,本例为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
...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_文档 发布时间: 20250314
...tTestMaterial Hierarchy Material UnlitTestMaterial Implements IClone Index Constructors constructor Properties destoryedImmediately lock name renderQueue url uuid ALPHATESTVALUE DEBUG RENDERQUEUE_ALPHATEST RENDERQUEUE_OPAQUE RENDERQUEUE_TRANSPARENT SHADERDEFINE_ADDTIVEFOG SHADERDEFINE_ALPHATEST SHAD...
来源: Laya3.0_api 发布时间: 20231102
...。 see laya.ui.RadioGroup Hierarchy Button Radio Implements ISelect Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anc...
来源: Laya3.0_api 发布时间: 20231115
...完全和教程不同 import GameConfig from "./GameConfig"; class Main { constructor() { //根据IDE设置初始化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya["Physics"] && Laya["Phys...
来源: Laya_社区 发布时间: 20181027
...TS项目,代码如下: ```typescript // 程序入口 class GameMain{ constructor() { //初始化引擎 Laya.init(1136,640); var sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xh...
来源: Laya2.0_文档 发布时间: 20210714
...oader.js关于该类的定义如下 class conchFloatArrayKeyframe { constructor() { this._nativeObj = new _conchFloatArrayKeyframe(); } set time(value) { this._nativeObj.setTime(value); } get time() { return this._native...
来源: Laya_社区 发布时间: 20190629
...d(text);//将 text 添加到显示列表。 } example class Text_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { var text: laya.display.Text = new laya...
来源: Laya3.0_api 发布时间: 20231115