大约有 502 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0057 秒)
Laya_社区(347) Laya2.0_文档(62) Laya3.0_api(37) Laya2.0_api(27) laya_api(14) Laya3.0_文档(12) Laya_示例(2) Laya2.0_示例(1)
...eNPC; var npcc:BaseNPC = new BaseNPC(); 只要我new它,都没addChild到舞台上,运行出来就是很大一片漆黑。 但是如果我这样写就是正常的:import BaseNPC = npc.BaseNPC; var npcc:BaseNPC = new npc.BaseNPC(); 或者不import,直接: var npcc: npc.BaseNPC = new npc....
来源: Laya_社区 发布时间: 20180205
... this.hScrollBar.changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(this.hScrollBar); //创建提示信息 createPromptText(this.hScrollBar) } /***创建提示信息***/ function createPromptText(scrollBar) { //实例化提示信息 this.promptText = new Text(); //提...
来源: Laya2.0_文档 发布时间: 20210714
... this.vScrollBar.changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(this.vScrollBar); //创建提示信息 createPromptText(this.vScrollBar) } /***创建提示信息***/ function createPromptText(scrollBar) { //实例化提示信息 this.promptText = new Text(); //提...
来源: Laya2.0_文档 发布时间: 20210715
... world 例子,为什么不显示? 如何实现微信登录? 加载到舞台的3D模型不显示贴图 有什么容器能够实现当子元素达到显示上限后自动滚屏,使得新添加的元素始终保持在最底部显示? 微信小程序—未找到入口 app.json 文件,或者...
来源: Laya_社区 发布时间: 20200420
...mboBox.selectHandler = new Handler(this, onSelect, [comboBox]); //加载到舞台 Laya.stage.addChild(comboBox); //自动计算宽高 comboBox.autoSize = true; //设置位置 comboBox.pos((Laya.stage.width - comboBox.width) / 2, 150); //自动计算宽高关闭(在设置位置时,需获取列表...
来源: Laya2.0_文档 发布时间: 20210714
...载动画文件 this.tl.loadAnimation("imgdebris/naruto2.ani"); //添加到舞台 var apesCtn = new Laya.Sprite(); Laya.stage.addChild(apesCtn); var _this = this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play();...
来源: Laya_社区 发布时间: 20190117
.../../res/ui/dialog (3).png"); //设置位置 img.pos(165, 62.5); //加载到舞台 Laya.stage.addChild(img); } } } ```
来源: Laya2.0_文档 发布时间: 20210714
...下附件中是我写的,功能很简单,就是把一个场景载入到舞台。 老是报错,谢谢 myLaya13.rar 2018-01-29 0 0 分享 微博 QZONE 微信 qian 赞同来自: Laya.class(background,"background",backgroundUI); 2018-01-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 ...
来源: Laya_社区 发布时间: 20180129
...is.hScrollBar.changeHandler = new Handler(this, this.onChange); //加载到舞台 Laya.stage.addChild(this.hScrollBar); //创建提示信息 this.createPromptText(this.hScrollBar) } /***创建提示信息***/ private createPromptText(scrollBar:ScrollBar):void { //实例化提示信息 this.promptTex...
来源: Laya2.0_文档 发布时间: 20210715
...is.vScrollBar.changeHandler = new Handler(this, this.onChange); //加载到舞台 Laya.stage.addChild(this.vScrollBar); //创建提示信息 this.createPromptText(this.vScrollBar) } /***创建提示信息***/ private createPromptText(scrollBar:ScrollBar):void { //实例化提示信息 this.promptTex...
来源: Laya2.0_文档 发布时间: 20210715