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

大约有 51 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)

11. UI运行时 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...s.searchButton(child); } } } //处理按钮缩放事件 onButtonScaleEvent(target: Laya.Button) { target.on(Laya.Event.MOUSE_DOWN, this, this._onScaleBtnDown); target.on(Laya.Event.MOUSE_UP, this, this._onScaleBtnOut); } //按钮放大 _onScaleBtnDown(e: Laya.Event) { console.log("开始缩放"); e....

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

12. 列表嵌套另外一个列表 [ 67%]

...f(e.type=="click") { //如果点击的对象是button类型 if(e.target is Button) { if(HostData.gold>HostData.array[index].gold){ //我的金币是否满足购买条件 HostEvent.I.event(HostEvent.LICKLOAD,["是否花费"+HostData.array[index].gold+"个金币购买该角...

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

13. LayaAir 移动端启动鼠标右键菜单栏功能 [ 67%]

...hrome出现错误: Error processing launch: Error Could not attach to main target 关于使用matterjs物理引擎鼠标问题 btn 鼠标移动上去默认文本颜色是绿色,我想换成其他颜色,如何操作? 摄像机跟随刚体移动,刚体出现抖动。 启动引擎报错 mPlugin...

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

14. LayaAir开发笔记(1)五十音图连连看 [ 67%]

...atue == true) { if ((card_A == -1) && (card_B == -1)) { card_A = e.target.name; button[card_A].color = "red"; } else if ((card_A != -1) && (card_B == -1)) { card_B = e.target.name; if ((g_list_A.indexOf(button[card_A].text) != -1) && (g_list_A.indexOf(button[card_A].text) == ...

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

15. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 65%]

...his._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不为空表示场景已加载完成 this.garbageCollection(); break; } /** * @pr...

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

16. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...Controll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public distanceAway: number = 10;//相机与目标的水平距离参数 public smooth: number = 2;//...

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

17. 用IDE编辑器编辑好label,想弄点击文字变色功能,发现有问题 [ 64%]

...的简单代码: this.a6.on("click",this,onB);function onB(e) { etg = e.target; etg.color = "#ff0000"; } 2016-06-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: kangge @kang...

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

18. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 64%]

...Event):void { _castType++; _castType %= 2; switch (_castType) { case 0: (e.target as Button).label = "释放显存"; loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (_scene)//_scene不为空表示场景已加载完成 garbageCollection(); break; } /** * @private 销毁场...

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

19. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 64%]

...his._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不为空表示场景已加载完成 this.garbageCollection(); break; } /** * @pr...

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

20. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 64%]

...r params:URLVariables = new URLVariables();         params.decode( evt.target.data );           execute( params );     }       private var execute:Function; }   iLoader.as   package {     import com.legend.loader.BasicLoader;     import com.legend.loader.SWFLoader;       impor...

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