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

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

111. 对话框点击空白处无法关闭 [ 69%]

... testUI=(function(_super){ function testUI(){ testUI.__super.call(this); } CLASS$(testUI,'ui.testUI',_super); var __proto__=testUI.prototype; __proto__.createChildren=function(){ laya.ui.Component.prototype.createChildren.call(this); this.createView(testUI.uiView); } testUI.uiView={"type":"Dialog","...

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

112. Spine动画使用(TypeScript-LayaAir基础篇(TS)-动画基础) [ 69%]

...打开链接查看:[https://layaair.ldc.layabox.com/api/?category=Bone&class=laya.ani.bone.Skeleton](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=Animation&class=laya.ani.bone.Skeleton) 创建 SpineDemo.js,代码编写如下: ```javascript //初...

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

113. IDE-显示IDE创建的界面 [ 69%]

... = Laya.Label; import Handler = Laya.Handler; import Loader = Laya.Loader; class TestUI extends game.ui.test.TestPageUI { constructor() { super(); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Laya.CLICK, this, this.onBtnClick); this.btn2.on(Laya....

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

114. IDE-显示IDE创建的界面 [ 69%]

... = Laya.Label; import Handler = Laya.Handler; import Loader = Laya.Loader; class TestUI extends game.ui.test.TestPageUI { constructor() { super(); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Laya.CLICK, this, this.onBtnClick); this.btn2.on(Laya....

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

115. Spine动画使用(JavaScript-LayaAir基础篇(JS)-动画基础) [ 69%]

...打开链接查看:[https://layaair.ldc.layabox.com/api/?category=Bone&class=laya.ani.bone.Skeleton](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=Animation&class=laya.ani.bone.Skeleton) 创建 SpineDemo.js,代码编写如下: ```javascript //初...

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

116. 微信小游戏加云开发,项目怎样配置 [ 69%]

...导入编译后错误 gameContext?id=1:58 libs/laya.ui.js:  TypeError: Class constructor Component cannot be invoked without 'new'     at new Widget (laya.ui.js:201)     at laya.ui.js:349     at laya.ui.js:1     at wrapFn (gameContext?id=1:51)     at require (VM37 WAGameSubContext.js:2) ...

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

117. laya.net.LoaderManager [ 69%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderManagerProperties | Methods | Events Packagelaya.netClasspublic class LoaderManagerInheritanceLoaderManager EventDispatcher Object LoaderManager 类用于用于批量加载资源。此类是单例,不要手动...

来源: laya_api 发布时间: 20170929

118. as3的类里定义的字段编译后会被注释 [ 69%]

...字段编译后会被注释 AS3中下面的一个简单的数据类 public class Demo { public var a:int; public var b:String; public function Demo() { } }通过编译后会变成下面的代码class Demo{ constructor (){ //this.a=0; //this.b=null; } }这里字段a和b在编译后会被注释掉,...

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

119. 在微信小游戏下window 和 浏览器下的window问题 怎么使用反射 找到自己想要实例的类 [ 69%]

...的window是不同? 那再浏览器下的window 。我可以看到很多Class view 的对象 和微信小游戏下的window 完全不同。好像一点都没有 那这样怎么使用比较好的反射机制 拿到对应class view呢?   附件 : --> 2019-07-12 添加评论 免费帖 --> 分享 ...

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

120. 分享:LayaAir下如何加载和使用.JSON文件! [ 69%]

...件! package { import laya.net.Loader; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("un...

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