• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 488 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0063 秒)

441. 分享个用美术资源做位图文本的方法。。。 [ 37%]

...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

442. 网络通信 · LayaAir3文档 · LAYABOX [ 37%]

...: 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

443. [BUG]刚体约束问题,移动后约束混乱! [ 37%]

...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

444. UI-RefreshList [ 37%]

...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

445. 网格像素线 · LayaAir3.3 · 引擎文档 · LAYABOX [ 36%]

...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

446. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 36%]

... 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

447. 单选框组组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

... 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

448. 使用3D UI · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

...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

449. 加载.lh文件 运行后黑屏 无法显示 [ 34%]

...: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

450. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 34%]

...: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