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

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

591. ios苹果手机,同时播放声音出现巨大杂音 [ 51%]

...文件   export default class GameMain extends Laya.Scene {     constructor() {          super();          //设置单例的引用方式,方便其他类引用         GameMain.instance = this;         //加载场景文件         this.loadSce...

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

592. import自己写的类,new出来后为什么一片漆黑 [ 51%]

...。代码如下:module npc { export class BaseNPC extends Laya.Sprite { constructor() { super(); this.graphics.drawCircle(0, 0, 10, "#ff0000"); } } }   然后在我的主文件中import,并new出来。代码如下:import BaseNPC = npc.BaseNPC; var npcc:BaseNPC = new BaseNPC(); 只要我new它...

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

593. 2D物理-桥 [ 51%]

...言、LayaAirIDE让项目开发更高效。class Physics_Physics_Bridge { constructor() { this.ecount = 30; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE...

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

594. layaairts下 如何 让动画显示在地图上面tilemap地图 [ 51%]

... 赞同来自: // 程序入口 class GameMain{ private tMap:Laya.TiledMap; constructor() { //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(); //创建TiledMap地图 this.tMap.createMap("res/TiledMap/ortho...

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

595. replaceSlotSkinName对于spine换肤不成功 [ 51%]

...ain{ private m_skeleton : Laya.Skeleton; private m_templet : Laya.Templet; constructor() { Laya.init(1334,750,Laya.WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.m_templet.on(Laya.Event.ERROR,this,this.onError); this.m_templet.load...

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

596. LayaAir2.1.0加载unity的场景必须在游戏初始化加载吗,延迟一帧都不行,不然报异常 [ 51%]

...: 与内容相关的链接 提交 2 个回复 虚世繁华 赞同来自: constructor() { super();  Laya.timer.once(1,this,()=> { Laya.Scene3D.load('LayaScene_Main/Conventional/Main.ls',Laya.Handler.create(this,(scene:Laya.Scene3D)=> { Laya.stage.addChild(scene);   })); }); }   这样的加...

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

597. 加载-错误处理和进度 [ 51%]

...mport Handler = Laya.Handler; export class Loader_ProgressAndErrorHandle { constructor() { Laya.init(550, 400); // 无加载失败重试 Laya.loader.retryNum = 0; var urls: Array = ["do not exist", "../../res/fighter/fighter.png", "../../res/legend/map.jpg"]; Laya.loader.load(urls, Handler.create(th...

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

598. $JAVA_HOME. 错误 [ 51%]

...,也不显示 new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor Unity导出有光照贴图时,出现错误:ArgumentException: Invalid path Box自动宽度计算错误 急急急,运行官方的那个物理引擎例子Singshat报了这个错误 Mask显示错误 文本显示...

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

599. 关于graphics._saveToCmd的问题 [ 51%]

... import Stage = Laya.Stage; class GameMain{     private sp:Sprite;     constructor()     {         Laya.init(600,400);         this.sp = new Laya.Sprite();         Laya.stage.addChild(this.sp);         var arr:Array<any> = [this.sp,1,2,3];         this.sp.graphics._sa...

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

600. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 51%]

... MAP_URL:string = 'res/tiled/map.json';  /**地图 */ map: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) }  private onComplete(){ this.map = new Laya.TiledMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.wi...

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