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

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

741. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 46%]

...N_PADDING: number = 5; private assets: any[]; private dialog: Laya.Dialog; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.assets = ["resources/res/ui/dialog (1).png", "resources/res/ui/clo...

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

742. 内存释放问题 [ 46%]

...*/ public static poolModulResDic: Laya.Dictionary = new Laya.Dictionary(); constructor() { } static gameLoading(name: string, onCompleted: Function): void { let uiResArray = [ { url: "res/atlas/common.json", type: Laya.Loader.ATLAS }, { url: "res/atlas/comp.json", type: Laya.Loader.ATLAS }, // 登...

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

743. 可以帮我测试一下吗? 使用mask的场景,放着就会出现记忆体用完的讯息? [ 46%]

...似问题。class GameLayer extends ui.GameLayerUI { private infos : any; constructor () { super (); this.infos = { rotation : 0 }; Laya.timer.frameLoop(1,this,()=> { this.infos.rotation += 1; if (this.infos.rotation >= 360) this.infos.rotation -= 360; this.IM_TURNTABLE.rotation = this.infos.r...

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

744. 滤镜-发光滤镜 [ 46%]

...ivate apePath: string = "../../res/apes/monkey2.png"; private ape: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

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

745. 2.4.0bate IDE layaair2-cmd 安装错误求解 [ 46%]

...下,cpu爆满 new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor 最新IDE下载打开报错文件已经损坏! 模型在ios中,某个特定角度下显示错误 问题状态 最新活动: 2020-08-23 01:29 浏览: 1692 关注: 6 人 韩冲 • 2020-06-23 17:52 PS E:\BaiduNetd...

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

746. 缓动-简单的Tween [ 46%]

...= Laya.Tween; import WebGL = Laya.WebGL; export class Tween_SimpleSample { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Sta...

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

747. UI-Input [ 46%]

...); //加载资源。 })(); function onLoadComplete() { for (var i = 0; i ; 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

748. 性能测试-虫子(慎入) [ 46%]

...ggots:Array = []; private wrapBounds:Rectangle; private maggotTexture:any; constructor() { Laya.init(Browser.width,Browser.height, WebGL); Laya.stage.bgColor = "#000000"; Stat.show(); this.wrapBounds = new Rectangle(-this.padding, -this.padding, Laya.stage.width + this.padding * 2, Laya.stage.height...

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

749. sound manager在MOUSE_OVER事件中无法播放 [ 46%]

...个信息文本         private txtInfo: Text;          constructor() {             // 不支持WebGL时自动切换至Canvas             Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL);              Laya.stage.alignV = Stage....

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

750. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 46%]

...erial。 ```typescript export class CustomMaterial extends Laya.Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 ​ 在使用自定义材质之前,一定要记得初始化自己的Shader。LayaAir...

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