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

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

51. app构建后在真机中运行报错 [ 79%]

...dle.js 文件和laya.core.js中有这个代码: *模板,预制件 */ //class laya.components.Prefab var Prefab=(function(){     function Prefab(){         /**@private */         this.json=null;     }      __class(Prefab,'laya.components.Prefab');     var __proto=...

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

52. 区块地图-PerspectiveWall [ 79%]

...ectangle; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class TiledMap_PerspectiveWall { private tiledMap: TiledMap; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(700, 500, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER;...

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

53. 图集动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 79%]

....utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class HelloLayabox { private const AniConfPath:String = "../../../../res/role.atlas"; private var roleAni:Animation; public function HelloLayabox() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Br...

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

54. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 78%]

...x.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=display&class=laya.display.Sprite) API内,该属性的说明如图1所示: ![1](img/1.jpg)(图1) ## 二、简单的遮罩示例 ### 2.1 我们先用LayaAir引擎显示一张位图 创建一个`MaskDemo.ts`入口类,编写...

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

55. 如何才能生成scene配套的代码 [ 78%]

...的代码 在demo里有个类TestSceneUI 请问如何才能生成 /**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ package ui.test { import laya.ui.*; import laya.display.*; public class TestSceneUI extends Scene { public var scoreLbl:Label; public var...

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

56. 使用HTMLIframeElement加载html网页的问题。 [ 78%]

...demo附件) html文件应该以什么标准来写? [error] Undefined class: table [error] Undefined class: tr [error] Undefined class: td 附件 : --> AddHtml.zip 2017-03-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

57. 程序调试10秒钟后报错 [ 78%]

...son: Can't find a target that matches: d:\install\LayaBox\workspace\AirWar_Class11/bin/index.html.Available pages:["file:///D:/install/LayaBox/workspace/AirWar_Class11/bin/index.html"]) 附件 : --> 2016-12-30 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

58. 怎么在api中找到 Laya.loader.load [ 78%]

...了Laya。 http://layaair.ldc.layabox.com/api/index.html?category=Core&class=Laya 但是里面貌似只有一个loader https://layaair.ldc.layabox.com/api/#loader 打开这里面也没有关于load的详细说明。 在论坛里看到,好像详细说明是在这里 http://layaair.ldc.layabox.c...

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

59. event自定义事件的问题 [ 78%]

...是testDemo LayaSample类: package { import laya.display.Sprite; public class LayaSample extends Sprite{ public static var event:String = "event"; public function LayaSample() { super(); //初始化引擎 Laya.init(1136, 640); var re:Revent = new Revent(); var de:DisEvent = new DisEvent(); } } } R...

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

60. @regClass编译报错! [ 78%]

@regClass编译报错! 去掉CtrBase里的@regClass 就不报错! 再或者CtrBase 不引用funzzzzz 或者 funzzzzz不引用MachineCtrl 也不会报错。已经是最精简的就三个类,每个一行代码。上网查 升级了webpack也没用。   写了构造函数也没用 bundle编译...

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