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

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

171. 使用getChildByName()无法得到子节点对象 [ 57%]

... page2._list.renderHandler = new Handler(this, onRender);         function onRender(cell,index){             //如果索引不再可索引范围,则终止该函数             if(index > json.length)return;             //获取当前渲染条目的...

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

172. 请问如何给所有按钮点击事件增加一个音效 [ 57%]

...    * @param e Event 对象。          */         protected function onMouse(e:Event):void {             if (toggle === false && _selected) return;             if (e.type === Event.CLICK) {                 toggle && (selected = !_selected)...

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

173. AS代码如何new一个js库中的类并且使用这个类 [ 57%]

...oader.load(getModuleJSPath("abc.js"), Handler.create(this,loadedHandler)); function loadedHandler(data:*):void{       //加载完回调       __JS__('window.eval(data + "//# sourceURL=" + "abc.js")');     //new需要的类       var loginView:* = __JS__('new com.modules.login.view.LoginVi...

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

174. 播放动画(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 57%]

...ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function(){ //如果当前播放state已经播放完了一次 if(ani.getCurrentAnimatorPlayState().normalizedTime >= 1){ //回到站立状态 ani.play("stand"); } }); } ``` ![](img/6.gif)(图6)

来源: Laya2.0_文档 发布时间: 20210715

175. 分享:关于自定义场景继承的实现 [ 57%]

...from "../script/base/BaseScene"; import BaseScene=base.BaseScene; var REG: Function = Laya.ClassUtils.regClass; export module ui { export class CustomSceneUI extends BaseScene { public txt_hello:Laya.Label; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("Custo...

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

176. Cannot connect to runtime process, timeout after 10000 ms [ 57%]

...加参数吗 prefab添加runtime脚本 comp._addComponentInstance is not a function 2.0 Beta3版本中,runtime脚本的的问题 看腾讯课程碰到的runtime无效问题 IDE界面编辑中最顶层view设置runtime无效 Cannot connect to runtime process, timeout after 10000 ms 自动关闭 问...

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

177. 播放动画(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 57%]

...ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function(){ //如果当前播放state已经播放完了一次 if(ani.getCurrentAnimatorPlayState().normalizedTime >= 1){ //回到站立状态 ani.play("stand"); } }); } ``` ![](img/6.gif)(图6)

来源: Laya2.0_文档 发布时间: 20210715

178. 请问在LayaAir中怎么样初始化加载jquery文件?? [ 56%]

...物模型动画播放的速度慢一些 qian • 2018-01-25 17:01 public function play(name:String = null, playbackRate:Number = 1.0):void playbackRate : Number播放速率 你去看看animator的api LM20081991 • 2018-01-25 17:07 @qian: 好的谢谢

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

179. Laya2.0编译后所有js都自动合并到bundle.js中,导致bundle.js过大,加载速度很慢,bundle.js可以拆分吗 [ 56%]

...true,              /* Enable strict null checks. */     // "strictFunctionTypes": true,           /* Enable strict checking of function types. */     // "strictPropertyInitialization": true,  /* Enable strict checking of property initialization in classes. */     // "noImplicitTh...

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

180. tiledMap场景切换问题 [ 56%]

...745 • 2018-06-05 12:06 我用的是Laya.stage.on(Laya.Event.CLICK, this, function (e) {}),请问怎么销毁,销毁以后到下一个页面要重新绑定事件吗? Laya_Aaron • 2018-06-05 14:56 @150*****745:你的代码不给我讲我很难找到你说的这段,stage 是单例,你销...

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