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

大约有 3,286 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0061 秒)

3101. unity导出的场景.ls加载到laya3d中报错 [ 43%]

...程序代码: class LayaAir3D { constructor() { //初始化引擎 Laya3D.init(0, 0,true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //添加3D场景 var scene = Laya.Scene.load("LayaScene_unity1/unity1.ls"); Laya.stage.addChild(...

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

3102. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 43%]

...码: ```typescript class Main { constructor() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); } pri...

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

3103. 闪屏,报错信息如下 [ 43%]

...黑屏,如何加入闪屏图片 启动引擎报错 mPlugin.game_plugin_init(3); IDE通过.ui自动生成的ui代码报错 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() 小游...

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

3104. laya.map.MapLayer [ 43%]

...umber, y:Number):Boolean 检测某个点是否在此对象内。 Sprite  init(layerData:*, map:TiledMap):void 解析LAYER数据,以及初始化一些数据 MapLayer isMouseEvent(type:String):Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher loadImage(url:String, complete...

来源: Laya2.0_api 发布时间: 20190513

3105. LayaIDE运行正常,微信开发者工具加载FairyGUI官方库文件报错 [ 43%]

...fined TypeError: Cannot read property 'charAt' of undefined at Object.Laya.init (<anonymous>:23:7239) at new t (<anonymous>:41:2251) at <anonymous>:41:2762 at require (<anonymous>:206:5799) at <anonymous>:206:5548 at <anonymous>:47:323 at require (<anonymous&gt...

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

3106. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 43%]

... private var _colorSpr:Sprite; private var _colorTex:Texture; private var _initPixelCount:int; public function Main() { Laya.init(1024, 768, WebGL); Stat.show(0, 0); Laya.stage.bgColor = "#fff"; Laya.loader.load("assets/images/color1.png", Handler.create(this, __loadImageHandler)); } private functio...

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

3107. Laya写的桂林字牌,湖南叫跑胡子,二七十 [ 43%]

...服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个小时后才不会报这个错。。才能进去 Laya 鼠标Cursor怪异问题,有demo Laya["MiniAdpter"].nativefiles 在QQ小游戏中无法读取到 laya开发的3d跑酷 问题状态 最...

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

3108. 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) [ 43%]

... private var progressBar:ProgressBar; public function LoadingDemo() { Laya.init(550,400); //预加载loading条资源 var pro1:Object={url:"loads/progressBar.png",type:Loader.IMAGE}; var pro2:Object={url:"loads/progressBar$bar.png",type:Loader.IMAGE}; var proArr:Array=; proArr.push(pro1,pro2); Laya....

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

3109. 绘制曲线(TypeScript-LayaAir基础篇(TS)-矢量图) [ 43%]

...       constructor()         {             Laya.init(500, 300, WebGL);             this.drawSomething();         }            private drawSomething(): void {             this.sp = new Sprite();             Laya....

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

3110. Animation创建和销毁的问题 [ 43%]

...testAnim2:Animation; public function LayaSample() { //初始化引擎 Laya.init(1136, 640,WebGL); trace("ok..."); Laya.stage.on(Event.KEY_DOWN, this, this.onKeydown); } private function onKeydown(event:Event):void { var self:* = this; if(event.keyCode === Keyboard.SPACE) { //移除动画 if(testAnim...

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