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

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

1. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 100%]

...这个LayaMaxUI里面没有 module ui.test这个模块         export default class LoginScene extends Laya.Scene{ public btnReg:Laya.Button; public btnLogin:Laya.Button;  constructor(){ super();  this.btnLogin.on(Laya.Event.CLICK,this,()=>{ console.log('btnLogin click') }) }  createChildr...

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

2. 如何使用TS的命名空间(namespace)? [ 97%]

...t class AC { public static myname:string = "I'm AC!"; } } export default AM; b.ts ----------------------------------- module AM{ export class BC { public static myname:string = "I'm BC!"; } } export default AM; c.ts --------------------------------------- import AM from './a'; im...

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

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

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

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

4. 已经在vs上引用相关的类,编译后bundle.js却没有相关的代码 [ 95%]

... 有谁碰到过这样的问题? 一个common.ts里面定义了export default class SDispatcher implements ISDispatcher{},然后在其他类里面继承。并导包。export default class xxxx extends SDispatcher{},在vs里面没有发现报错。进行指令编译后,运行bundle.js...

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

5. 获取不到父物体 节点 [ 92%]

...点 类库 2.2.0beta 新手小白 不明白为什么都是null 的export default class startScene extends Laya.Scene { private sp: Sprite; public constructor() { super(); console.log("startScene"); console.log(Laya.stage.name); console.log(Laya.stage.numChildren); console.log(this.numChildren); cons...

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

6. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 90%]

...可以控制显示速度出现打字效果等  /**古文脚本 */ export default class TextAncient extends Laya.Script { /** @prop {name:text, tips:"显示文本", type:String, default:"hello world"}*/ public text: string = "hello world"; /** @prop {name:color, tips:"字符串类型示例", type:St...

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

7. LayaIDE 2.13.0 添加组件菜单无法显示二级继承的子类 [ 90%]

....0 添加组件菜单无法显示二级继承的子类 实例代码 export default class View1 extends Laya.Script { }   import View1 from "./View1"; export default class View2 extends View1 { }升级到2.13.0后,在编辑模式属性面板点击【添加组件】按钮,显示的【Code】菜...

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

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

... AM{ export class AC { public static myname:string = "I'm AC!"; } } export default AM; b.ts ---------------------------- module AM{ export class BC { public static myname:string = "I'm BC!"; } } export default AM; c.ts -------------------------- import AM from './a'; //这一句LayaAir IDE 2.0会自...

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

9. Laya 绑定显示内容到骨骼动画 [ 89%]

...自己添加的内容:   1. 可绑定内容的骨骼动画   export default class BindSkeleton extends Laya.Skeleton { private __bindList:BindSource[]; constructor(){ super(); this.__bindList=[]; }  /** * 绑定 * @param source */ bind(source:BindSource):void{ let index:number=this.__b...

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

10. 扩展脚本问题 [ 89%]

... 提交 2 个回复 然后 赞同来自: 在你的export后边添加一个default试一下 2018-12-26 0 0 分享 微博 QZONE 微信 然后 赞同来自: 我今天开发也遇见这个问题,在class前使用关键字export default  在引用的地方使用  import XX from "XX"; 但是现在2.0...

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