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

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

341. Sprite-轴心点 [ 87%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createApes(); } createApes() { const Sprite = Laya.Sprite; let monkey2Path = "res/apes/monkey2.png"; let gap = 150; this.ape1 = new Sprite(); Laya.stage.addChild(this.ape1); this.ape1.loadImage(monkey2Path); // 设置轴...

来源: Laya2.0_示例 发布时间: 20241118

342. 文本-Overflow [ 87%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Text = Laya.Text; let t1 = this.createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); let t2 = this.createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110); let t3 = this.creat...

来源: Laya2.0_示例 发布时间: 20241118

343. 滤镜-模糊滤镜 [ 87%]

...a.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.gr...

来源: Laya2.0_示例 发布时间: 20241118

344. CommandBuffer使用文档(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 87%]

...后 ``` 添加CommandBuffer到相机事件的接口如下: ```typescript this.camera.addCommandBuffer(this.cameraEventFlag,this.commandBuffer); ``` 删除CommandBuffer的接口如下: ```typescript this.camera.removeCommandBuffer(this.cameraEventFlag,this.commandBuffer); ``` CommandBuffer是一...

来源: Laya2.0_文档 发布时间: 20210715

345. 动画-SWF动画 [ 87%]

..._CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.createMovieClip(); } private createMovieClip(): void { var mc: MovieClip = new MovieClip(); mc.load(this.SWFPath); mc.x = (Laya.stage.width - this.MCWidth) / 2; mc.y = (Laya.stage.height - this.MCHeight) / 2; Laya.stage....

来源: Laya_示例 发布时间: 20241118

346. 代码创建精灵监听不到事件? [ 87%]

...data: StorageRoom.map_storageData[0][0],tag:0}; box.on(Laya.Event.MOUSE_UP,this,this.onclick,[arr]);   var _proto = StorageUILayer.prototype;   _proto.onclick = function(params){ console.log("--------------------------------hhhhhhhhhhh- "); }   ----------------------------------------------------...

来源: Laya_社区 发布时间: 20171113

347. Dragonbones龙骨动画 播放不同动作出现闪烁 混乱 [ 87%]

... load(aniUrl: string,emoji?:string,complete?:Handler):void{ if (emoji) { this.emoji=emoji; } if (complete) { this.completeHandler = complete; } this.aniUrl = aniUrl; this.templet = new Templet(); this.templet.on(Event.COMPLETE, this, this.parseComplete); // this.templet.on(Event.ERROR, this, this.on...

来源: Laya_社区 发布时间: 20180824

348. 屏幕适配-缩放-No Scale [ 87%]

...aya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } private updateRectPo...

来源: Laya_示例 发布时间: 20241118

349. 屏幕适配-缩放-No Border [ 87%]

...ya.stage.scaleMode = Stage.SCALE_NOBORDER; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } private updateRectPo...

来源: Laya_示例 发布时间: 20241118

350. 字体切片组件 · LayaAir3.0文档 · LAYABOX [ 87%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.fontclp.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.fontclp.size(500, 60); //大小 this.fontclp.pivot(this.fontclp.width/2, this.fontclp.height/2); //轴心点 this.fontclp.skin = "atlas/...

来源: Laya3.0_文档 发布时间: 20241014