大约有 488 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0063 秒)
...ata: any,textureData: Laya.Texture,width: number,posType:string = "left"){ super(); this.width = width; this._posType = posType; this._jsonData = jsonData; this._imageData = textureData; } public set padding(v: number){ this._padding = v; this.setCharsPos(); } public get padding(): number{ return th...
来源: Laya_社区 发布时间: 20161014
...: class HttpRequestExtension extends Laya.HttpRequest { constructor() { super(); } public send(url:string,data:any=null,method:string="get", responseType:string="text", headers:any=null):void{ super.send(url,data,method,responseType,headers); this._http.upload.onprogress= function(e:any):void { //...
来源: Laya3.0_文档 发布时间: 20250104
...ene3D; private boxA: Laya.MeshSprite3D; constructor() { super(); Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.newScene = Laya.stage.addChild(ne...
来源: Laya_社区 发布时间: 20210103
...g; public var flagText; public var del; public var delText; constructor(){ super(); this.width = 443; this.height = 86; this.left = 0; this.right = 0; this.zOrder = 2; this.initItem(); } /** 初始化列表子项内容 * */ public function initItem(){ // 列表item的背景图 this.msgBG = new Image...
来源: Laya2.0_示例 发布时间: 20250223
...name 名字。 */ constructor(maxCount: number = 2, name: string = null) { super(name); this._render = this.addComponent(PixelLineRenderer); this._geometryFilter = (this._render as PixelLineRenderer)._pixelLineFilter; (this._render as PixelLineRenderer).maxLineCount = maxCount; let material = this._...
来源: Laya3.0_文档 发布时间: 20250103
... 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_文档 发布时间: 20250214
... 200; private Y_OFFSET: number = 80; private skins: any[]; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.skins = ["resources/res/ui/radioButton (1).png", "resources/res/ui/radioButton (2).png",...
来源: Laya3.0_文档 发布时间: 20240910
...tends Laya.Script { // 设置单例 static instance: Main; constructor() { super(); Main.instance = this; } @property({type:Laya.Sprite3D}) private target: Laya.Sprite3D; @property({type:Laya.UI3D}) private ui3d: Laya.UI3D; public animator: Laya.Animator; onEnable() { // 广告牌模式 this.ui3d.bi...
来源: Laya3.0_文档 发布时间: 20250214
...:boolean; private twoFirst:boolean; constructor(){ super(); this._scene = null; this._text = null; this._camera = null; this.rotation = new Laya.Vector3(0, 0.01, 0); this.lastPosition = new Laya.Vector2(0, 0); this.di...
来源: Laya_社区 发布时间: 20190531
...:boolean; private twoFirst:boolean; constructor(){ super(); this._scene = null; this._text = null; this._camera = null; this.rotation = new Laya.Vector3(0, 0.01, 0); this.lastPosition = new Laya.Vector2(0, 0); this.di...
来源: Laya_社区 发布时间: 20190605