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

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

41. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 74%]

...EffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报错 Main.js:61 Uncaught ReferenceError: ui is not defined 之前有人提过这个问题...

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

42. 关于位图字体使用问题,参照官方文档,显示不出 [ 74%]

...位图字体使用问题,参照官方文档,显示不出 export default class AllText extends ui.examples.text.BitmapFontUI   ui.examples.text.BitmapFontUI 找不到继承的类   laya is not define   参见 demo 附件 : --> Test1.rar 2020-11-29 添加评论 免费帖 --> 分享 微博 QZONE ...

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

43. 2.0 Beta3版本中,runtime脚本的的问题 [ 74%]

...分享 微博 QZONE 微信 Laya_Aaron 赞同来自: /*layaMaxUI.ts  *This class is automatically generated by LayaAirIDE, please do not make any modifications. */ import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; export module ui { export class BGPageUI extends View { const...

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

44. laya.utils.ClassUtils_API3.0 [ 74%]

...c/Protected All Inherited Externals Only exported Menu Globals "laya/utils/ClassUtils" ClassUtils Class ClassUtils ClassUtils 是一个类工具类。 Hierarchy ClassUtils Index Properties _classMap Methods getClass getInstance regClass Properties Static _classMap _classMap: Record<string, any&gt...

来源: Laya3.0_api 发布时间: 20231115

45. TS版分包报错 [ 74%]

...用的是类似如下写法:  namespace com.test {         export class MyTest{         // do something...         } }        今天在定义组件并导出后,在 layaUI.max.all.ts 下生成了类似如下代码: module ui.coreUI {         export class TestUI extends Vie...

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

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

... 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

47. 根据官方教程:FlashBuilder-LayaCompiler-运行提示"must set Document Class!" [ 73%]

...据官方教程:FlashBuilder-LayaCompiler-运行提示"must set Document Class!" 附件 : --> 2017-02-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: bingohu 这个是没有设置运...

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

48. BackGround.super(this);这个报错 Cannot read property 'call' of undefined [ 73%]

...te; this.bg.loaImage("war/beijing.png"); this.addchild(this.bg);  }; Laya.class(BackGround,"BackGround",_super) return BackGround; })(Laya.sprite); BackGround.super(this);这个报错 Cannot read property 'call' of undefined 2018-01-10 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 该问...

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

49. laya.utils.Mouse_API3.0 [ 73%]

...ll Inherited Externals Only exported Menu Globals "laya/utils/Mouse" Mouse Class Mouse Mouse 类用于控制鼠标光标样式。 Hierarchy Mouse Index Accessors cursor Methods hide show Accessors Static cursor get cursor(): string set cursor(cursorStr: string): void Defined in laya/utils/Mouse.ts:2...

来源: Laya3.0_api 发布时间: 20231115

50. js继承模式 [ 73%]

js继承模式     new function() { var className = 'BackGround'; window[className] = (function() { Laya.class(Class, className, Laya.Sprite); function Class() { Class.super(this); // this定义.. this.init(); } Class.prototype.init = function() { console.log(this); }; return Class; })(); } var _...

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