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

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

111. 升级到1.78beta版后,包编译错误 [ 70%]

... no exported member 'particle'. libs/LayaAir.d.ts(26700,11): error TS2417: Class static side 'typeof RenderTarget2D' incorrectly extends base class static side 'typeof Texture'.   Types of property 'create' are incompatible.     Type '(w: number, h: number, surfaceFormat?: number, surfaceType?: n...

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

112. 通过模版创建TypeScript类文件的建议 [ 70%]

...办法指定,只能创建完ts文件,手动修改interface或abstract class代码,如果在创建时有一个选项感觉会方便很多,个人建议 附件 : --> 2016-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

113. 用LayaAir引擎解析Tiled Map地图(ActionScript-2D进阶篇(AS3)-扩展模块) [ 70%]

...aths.Rectangle; import laya.utils.Browser; import laya.webgl.WebGL; public class TiledMapDemo { private var tMap:TiledMap; public function TiledMapDemo() { //初始化舞台 Laya.init(Browser.width, Browser.height, WebGL); //创建TiledMap实例 tMap = new TiledMap(); //创建Rectangle实例,视...

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

114. UI-Tree [ 70%]

...、打开状态。 arrow.x = 0; arrow.y = 5; this.addChild(arrow); } Laya.class(Item, "Item", Box); var Stage = Laya.Stage; var Tree = Laya.Tree; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400...

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

115. module写法的模块无法使用,其他地方使用会报错 [ 70%]

...法的模块无法使用,其他地方使用会报错 module bili{ export class Test{ constructor(){ console.log("Test"); } } } 2018-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 牛唠叨 赞同来自: Ch...

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

116. the server responded with a status of 404 (Not Found) [ 70%]

...atal error: 'string' file not found 2.0动效模板,报错 can not found class ui.scaleUI,layaMaxUI.js已经注册的情况下 2.0动效模板问题,我照着2.0的文档做,can not found class ui.xxxUI这个错误 发布微信小游戏时,[ERR]|MergeJS Fail, File not found : E:\svnwork\layawork...

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

117. 富文本使用图集 [ 70%]

...,使用ani的标签,但是我用了后会提示我 [error] Undefined class: ani 这是我哪里用的不对吗?   Laya.loader.load("res/1.json", Handler.create(this, createAnimation), null, Loader.ATLAS);  public function createAnimation():void         {             var appen...

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

118. 引擎的text类中有没有直接读取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("unpa...

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

119. 2.0 beta UI Button无法获取 [ 69%]

...ort Dialog=Laya.Dialog; import Scene=Laya.Scene; export module ui { export class AttackUI extends View { public btn_attack:Laya.Button; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("Attack"); } } } 扩展UI代码:   import { ui } from "../ui/layaMaxUI"; e...

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

120. List数据源的格式问题导致无法响应List的SelectHandler [ 69%]

...ush(skillInfoVO); } list.array = temp;2、SkillInfoVO的相关代码public class SkillInfoVO extends Data { public var Lv:int; public var Name:String; public var Color:int; }3、Data的相关代码public class Data extends EventDispatcher { public function Data() { } protected function dataSourceCha...

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