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

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

21. 获取不到父物体 节点 [ 80%]

...手小白 不明白为什么都是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); console.log(this.parent); co...

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

22. layaflash下构造函数需要注意哪些问题? [ 80%]

...类A.as的代码:package { import flash.display.Sprite; public class A extends Sprite { protected var data:String = "layabox"; public function A() { super(); } } }   作为子类B.as的代码:package { public class B extends A { public function B() { this.data = "layaFlash";//这里的修改...

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

23. WebSocket connection to 'ws://192.168.0.8:8102/' failed: Invalid frame header [ 80%]

... you need to encode the length in a different manner i.e you must take the extended payload length into consideration. – Cyclonecode Jul 7 '15 at 10:22 Right, of course, so i need to use the next two (or eight) bytes to store the length instead – BenJacob Jul 7 '15 at 10:25 If the length...

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

24. 3d项目,需要加一层显示分数的界面 [ 80%]

...的界面,比如我写了A.ui文件,自动生成一个ts类,class A extends ui.AUI,但是这个ui命名空间并不存在,如果我手动改成extends Laya.View(.ui文件里用的View标签),那么我如何让这个类去使用这个.ui文件呢?就像eui里指定skin一样。 2018-0...

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

25. 问一个typescript的问题 [ 79%]

...但仍然希望有高手帮忙解答下。 我写了一个类 class Runner extends Laya.Sprite { } 在src/Runner.ts里面 现在我准备开发多人对战版本,于是准备再写一个多人模块,包含相关的一些类 建立一个文件夹mult,里面有个MainRunner类继承自Runner类...

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

26. 3D变换 · LayaAir3.0文档 · LAYABOX [ 79%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Sprite3D }) public cube: Laya.Sprite3D; // 平移距离 private translate: Laya.Vector3 = new Laya.Vector3(1, 1, 1); constructor() { super(); } /** * 组件被激活后执行,此...

来源: Laya3.0_文档 发布时间: 20230821

27. 问一下js如何写layabox对象的继承 [ 78%]

... 这里把BackGround封装成一个类,想问一下,js里怎么实现extends的效果? 附件 : --> 2016-05-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: Henrietta @Henrietta你...

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

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

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

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

29. LayaAir2.0的GameConfig.ts [ 78%]

...e app{ /** * 登录加载界面 * @author Husz */ export class LoadingView extends Laya.View implements small_lib.ILoadingView那么在GameConfig将会报错 , 因为会自动刷新.  除非采用 , 如下: /** * 登录加载界面 * @author Husz */ export default class LoadingView extends Laya.Vie...

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

30. laya2.0 编辑器不显示父类变量 [ 78%]

laya2.0 编辑器不显示父类变量 举个粒子 class Parent extends Laya.Script{ /** @prop {name:name, type:string}*/ public name; } class Child extends Parent{} 在编辑器中给对象挂child脚本,并没有显示父类的name对象。 2018-12-13 添加评论 免费帖 --> 分享 微博 Q...

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