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

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

2501. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 38%]

....drawCircle(0,0,20,"#990000"); Laya.stage.addChild(sp); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,function() { sp.pos(Laya.stage.mouseX,Laya.stage.mouseY); }); ``` ![图片1.png](https://official.layabox.com/laya_data/Chinese/LayaAir_AS3/2D/advanced/PerformanceOptimization/CPU/img/1.png) (图1) ...

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

2502. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 38%]

...nimator) as Laya.Animator; //动画完成事件监听 this.roleAni.on(Laya.Event.COMPLETE,this,this.onComplete); } /*覆写3D组件更新方法(相当于帧循环)*/ public _update(state:Laya.RenderState):void{ //如果是攻击状态播放击球动画(优先播放击球动画) if(this.attac...

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

2503. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 38%]

...roto._onVisibilitychange @ laya.js:4606 __proto.run @ laya.js:7475 __proto.event @ laya.js:322 visibleChangeFun @ laya.js:21598 2017-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 你...

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

2504. laya.ui.CheckBox_API3.0 [ 37%]

...th addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex getCo...

来源: Laya3.0_api 发布时间: 20231115

2505. laya.d3.core.render.BaseRender [ 37%]

...ackagelaya.d3.core.renderClasspublic class BaseRenderInheritanceBaseRender EventDispatcher ObjectImplements laya.resource.IDestroySubclasses GlitterRender, MeshRender, ShurikenParticleRender, TerrainRender, WaterRender Render 类用于渲染器的父类,抽象类不允许实例。 Public Propertie...

来源: laya_api 发布时间: 20170929

2506. 获取位置信息 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

...pt extends Laya.Script { constructor() { super(); } onMouseClick(evt: Laya.Event): void { // 尝试获取当前位置 Laya.Geolocation.getCurrentPosition( Laya.Handler.create(this, this.onSuccess), Laya.Handler.create(this, this.onError) ); console.log("click"); } // 成功获取位置后触发 onSu...

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

2507. 关于截屏的问题 [ 37%]

...1:48:56.524 1040-1438/? D/PowerManagerService: userActivityNoUpdateLocked: eventTime=160233968, event=2, flags=0x0, uid=1000 06-09 11:48:56.524 1040-1438/? D/PowerManagerNotifier: onUserActivity: event=2, uid=1000 06-09 11:48:56.524 1040-1438/? D/PowerManagerService: updateUserActivitySummaryLocked:...

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

2508. 控制器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

... aWidget.setPage("c1", 1); 控制器改变时有通知事件: c1.on(Laya.Event.CHANGED, ()=> { console.log(c1.selectedIndex); }); Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 18:58:09 img{cursor:pointer}

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

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

...gory=3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Event) { this._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)//_s...

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

2510. Sprite-新手引导 [ 36%]

...Container.loadImage("res/guide/crazy_snowball.png"); gameContainer.on(Laya.Event.CLICK, this, this.nextStep); // 引导所在容器 guideContainer = new Sprite(); Laya.stage.addChild(guideContainer); guideContainer.cacheAs = "bitmap"; // 绘制遮罩区,含透明度,可见游戏背景 maskArea =...

来源: Laya2.0_示例 发布时间: 20251223