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

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

2531. [LayaAir3]如何在3D场景添加文字呢 [ 48%]

...点.   export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { let sprite3d: Laya.Sprite3D = this.scene3D.getChildByName("m_Sprite3D"); let ui3d: Laya.UI3D = sprite3d.getComponent(Laya.UI3D); let ui3d_root: Laya.Sprite = ui3d.sprite; console.log("ui3d_root", ui3d_root); let txtFiel...

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

2532. Camera.viewportToRay中origin与direction相等问题 [ 48%]

...以下方法: 主要目的就是做射线碰撞检测. onStageMouseDown(): void { this._rayPt.x = Laya.MouseManager.instance.mouseX; this._rayPt.y = Laya.MouseManager.instance.mouseY; GameManager.instance.mainCamera.viewportPointToRay(this._rayPt, this._ray); let scene = this.owner.scene as Laya.Sce...

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

2533. iPhone6 ios 8.3系统 最新的QQ 锁屏再解锁 游戏闪退 [ 48%]

... window.document.addEventListener("qbrowserVisibilityChange", function(e):void{ trace("监听QQ缩小至后台事件:"+(!e.hidden ? "前置显示":"后台隐藏")); isStopLoop = e.hidden; if (e.hidden) { _isVisibility = false; if (_this._isInputting()) Input["inputElement"].target.focus = false; } e...

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

2534. 使用Tween.to完成回调异常! [ 48%]

...s,onFloatComplete)); protected function onFloatComplete(callBack:Function):void {  this.removeSelf(); } 我用这个缓动来做飘字效果,完成回调的时候,把飘字对象在场景上移除,结果执行次数很多之后,发现场景上有许多飘字并没有被移除,有没有可...

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

2535. laya.d3.core.particleShuriKen.module.GradientAngularVelocity [ 48%]

...ty  clone():* 克隆。 GradientAngularVelocity  cloneTo(destObject:*):void 克隆。 GradientAngularVelocity  createByConstant(constant:Number):GradientAngularVelocity[static] 通过固定角速度创建一个 GradientAngularVelocity 实例。 GradientAngularVelocity  createByConstantSepara...

来源: Laya2.0_api 发布时间: 20190513

2536. Unity插件导出模型 [ 48%]

.../Model_71008.lh", Laya.Handler.create(null, function(sprite:Laya.Sprite3D):void { scene.addChild(sprite); sprite.transform.localScale = new Laya.Vector3(0.2, 0.2, 0.2); }));   报错信息 Uncaught TypeError: Cannot read property 'transform' of undefined     at SkinnedMeshRenderer._computeSubSkin...

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

2537. 列表里的元素可以播放动画吗 [ 48%]

...    }          public function onRender(cell:Box,index:int):void          {              //当list刷新时接收并更改单元格属性              var hero:Image = cell.getChildByName("hero")as Image;//根据名字查找要更改的单元格 ...

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

2538. Config3D的介绍(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 48%]

...ementation** ​ public function set defaultPhysicsMemory( value : int ) : void ​ public function get defaultPhysicsMemory() : int ### 如何设置Config3D 首先创建好一个config3D,设置好需要的参数后,在Laya3D初始化时使用。 ```typescript //创建一个config3D var _config:...

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

2539. 请问粒子,shader,动画缓存的优化应该如何选择 [ 48%]

...erWithShaderDefine(publicDefine:int, spriteDefine:int, materialDefine:int):void {             withCompile(publicDefine, spriteDefine, materialDefine);         }   然后用这个接口,就可以加载的时候预编译。   动画缓存,时效性 实效性,到底是哪个...

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

2540. laya发布安卓接入穿山甲联盟sdk的一些问题 [ 48%]

...允许 在子线程刷新主线程ui 必须发送new Runnable() { public void run() { ......执行脚本}} 发送请求才能进行刷新ui 2019-05-22 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 你快一点儿 相关问题 看了其...

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