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

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

1931. 小白请教 为什么我的ts文件里的Laya显示找不到名称“Laya” [ 54%]

...邀请: 与内容相关的链接 提交 1 个回复 bpmf_d 赞同来自: class test_HelloLaya { constructor() { //创建舞台,默认背景色是黑色的 Laya.init(1280, 720); var txt = new Laya.Text(); //设置文本内容 txt.text = "Hello Layabox"; //设置文本颜色为白色,默认颜色...

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

1932. Property 'GraphicAnimation' does not exist on type 'typeof display'. [ 54%]

...f undefined 2.0.0编译报错Cannot find global type 'Array' Warning!,this class[MiniAdpter] already exist: Object {init: } Uncaught TypeError: Cannot read property 'props' of undefined 关于@prop {name:Tab,type:Node} 我觉得好麻烦啊 ,请问一下有别的方法吗 鼠标自定义样式官...

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

1933. KeyNotFoundException: The given key was not present in the dictionary [ 54%]

...et_Item (System.String key) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150) LayaExport.DataManager.saveLaniData (UnityEngine.GameObject gameObject, .JSONObject obj) 2019-01-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

1934. 视频Demo播放问题 [ 54%]

...没有报错 zl18510521186 • 2018-03-28 16:36 就有一个Warning!,this class[MiniAdpter] already exist: Object {} 这个,其他的没有

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

1935. 官方的示例贴上来,怎么没反映啊 [ 54%]

...ndler(data) { alert(2); } function completeHandler(e) { alert(1); } } Laya.class(JiHuo, "ui.JiHuo", _super); return JiHuo; })(ui.JiHuoUI); 2018-04-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 w1114367261 赞...

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

1936. 关于3d项目中component的问题 [ 54%]

...0, 0, 0); function CmpScript() { CmpScript.super(this); this.x = 0; } Laya.class(CmpScript, "CmpScript", Laya.Script) CmpScript.prototype._initialize = function (owner) { var _this = this; CmpScript.__super.prototype._initialize.call(this, owner); } CmpScript.prototype._update = function (state) { C...

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

1937. 设置pivot后,精灵位置显示位置不正确 [ 54%]

...14,设置了sprite的pivot和pos,结果位置不正确 // 程序入口 class GameMain { private sp: Laya.Sprite; constructor() { Laya.init(2000, 1500); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" this.sp = new Laya.Sprite(); let width = 660 let height = 420 this.sp.size(width, height)...

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

1938. laya中js 如何实现Sprite类继承 [ 54%]

...nction Role () { Role._super.call(this); /***一些基础信息***/ } Laya.class( Role , "Role" , Sprite ); var _proto_ = Role.prototype; /******/ return Role; })(); 2018-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2...

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

1939. ts继承后,代码压缩的问题 [ 54%]

...ror: LayerManager is not a constructor的错误 我看到Laya有一个Laya.class的方法,请问这个能解决这个问题吗 2017-12-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: TS...

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

1940. laya.resource.Texture2D [ 54%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Texture2DProperties | Methods | Constants Packagelaya.resourceClasspublic class Texture2DInheritanceTexture2D BaseTexture laya.resource.Bitmap Texture2D 类用于生成2D纹理。 Public Properties Hide Inherited Public...

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