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

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

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

...加的内容:   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.__bindList.i...

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

22. 请问laya中js如何继承自己写的类 [ 86%]

...t1 */ var t2 = (function (_super) { function t2() { t2.super(this); } Laya.class(t2,'t2',_super); t2.prototype.a = function(){ console.log('2222'); } return t2; }(t1)); gls_laybox • 2018-01-04 11:35 额,你可能没仔细看我的代码,我的那个是自己写的类,如果是继承官方的...

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

23. Dialog 关闭效果无效 [ 85%]

... (function (_super) { function CommonDlg() { CommonDlg.super(this); } Laya.class(CommonDlg, "CommonDlg", _super); var _proto_ = CommonDlg.prototype; _proto_.closeEffect = Laya.Handler.create(null, this.onCloseEffect, null, true); _proto_.onCloseEffect = function () { console.log("in on close effect"...

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

24. 【简单跑酷--JS版】---Lv.3 添加地板 [ 85%]

....__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(type){ //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } //在地板上面添加物品 _proto.ad...

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

25. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 85%]

...把demo发来我看一下 xdkaka • 2017-12-13 17:03 没办法发图了 class Main { constructor() { Laya.init(480, 852); Laya.stage.scaleMode = "showall"; Laya.stage.alignV = 'middle'; Laya.stage.alignH = 'center'; Laya.stage.screenMode = "vertical"; Laya.stage.bgColor = "...

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

26. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 85%]

...I.Button; import laya.ui.Image; /** * ... * @author Caixiansheng */ public class HProgressSlider extends HSlider { /**@private */ protected var _progress:Image protected var _proMask:Sprite; public function HProgressSlider(skin:String=null) { super(skin); } override protected function initialize():v...

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

27. 3D变换 · LayaAir3.0文档 · LAYABOX [ 84%]

...x、y和z方向上分别移动距离1,示例代码如下: 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); cons...

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

28. 不能成功调用 DiaLog Close 关闭方法 [ 83%]

...ck); // 初始化 UI 界面显示 this.reset(); } // 注册 Start 类 Laya.class(Start,"Start",_super); var _proto = Start.prototype; // 初始化 UI 界面显示 _proto.reset = function(){ } _proto.onBeginClick = function(){ dialog.close(); restart(); } _proto.onLinkClick = function(){ alert("***")...

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

29. 加载UI为什么总是加载白底 [ 83%]

...var start = (function(_super){ function start(){ start.super(this); } Laya.class(start,"start",_super); //var _proto = Game.prototype; return start; })(ui.startUI) 2018-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

30. 关于3d项目中component的问题 [ 83%]

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