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

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

51. 关于3d项目中component的问题 [ 79%]

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

52. 视频节点 · LayaAir3.0文档 · LAYABOX [ 79%]

...下面给出一个示例代码,实现脚本控制VideoNode: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.VideoNode }) public video: Laya.VideoNode; constructor() { super(); } // 组件被激活后执行,此时所有节点...

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

53. 列表组件 · LayaAir3.0文档 · LAYABOX [ 79%]

...数据源 必须要在代码中给List组件设置数据源。 const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { @property({ type: Laya.List }) list: Laya.List constructor() { super(); } // 组件被启用后执行,例如节点被添加到舞台后 onEnable...

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

54. 开放数据域组件 · LayaAir3.0文档 · LAYABOX [ 79%]

...一个示例代码,实现脚本控制OpenDataContextView: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.OpenDataContextView }) public opendata: Laya.OpenDataContextView; constructor() { super(...

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

55. 看一下这是什么问题,运行报错 [ 78%]

...l1 = (function (_super) { function MPanel1() { MPanel1.super(this); } Laya.class(MPanel1, "MPanel1", _super) var _proto = MPanel1.prototype; return MPanel1; }(ui.Panel1UI));代码如上,报错如下   附件 : --> 2018-02-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

56. 想绘制一个自适应得圆角矩形框,失败了,求解惑 [ 78%]

...,{fillStyle: "#ff0000"},{"strokeStyle":"#ffffff","lineWidth":"1"}); } Laya.class(login,"login",_super); var _proto = login.prototype; return login; })(Laya.Sprite); 2017-08-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

57. List中如何动态加载多个image,并为每个image添加监听事件? [ 78%]

...fHand.dataSource = _dataSource_; this.selfHand.selectEnable = true; } Laya.class(Index,"Index",_super); return Index; })(IndexUI); 2017-09-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自:...

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

58. dialog的popup方法不会关闭其他弹窗 [ 78%]

...窗没有图层蒙版也没有关闭其他dialog 登录界面的代码: class LoginView extends ui.loginUI { normalDialog: NormalDialog; constructor() { super();  this.btn_signin.on(Laya.Event.CLICK, null, () => { this.showDialog("登录成功") }); this.btn_register.on(Laya.Event.CLICK, null,...

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

59. 报错,这不是个构造函数 "StartPage is not a constructor" [ 77%]

...nction(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atlas/ui.atlas",La...

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

60. 针对2.0.0 beta5 setLoadingPage 做增强 [ 77%]

... 支持 加载下一个场景的同时执行异步方法 */ export default class LoadPage { constructor(url = null) { this._loadScene = null if (url) this.preload(url) } /** * 预加载loading页面 * @param {String} url loading页面url */ async preload(url = 'loadingpage.scene') { if (this._loadSc...

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