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

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

121. laya.d3.core.light.LightSprite_API3.0 [ 54%]

...learTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeC...

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

122. Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? [ 54%]

...访问私有成员。 示例如下: let animator: Animator = this.owner.getChildAt(0).getComponentByType(Animator) as Animator; let clipNames: string[] = animator["_clipNames"]; 来个点赞吧!!!鄙视官方的不作为! 2018-04-26 3 2 分享 微博 QZONE 微信 w1114367261 赞同来自: ...

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

123. 阴影太浓怎么变淡?看到说directlight.ambientColor,但这ambientColor属性没有 [ 53%]

...uu 赞同来自: 我将地面 var mat: Laya.StandardMaterial = (this.floor.getChildAt(0) as Sprite3D).meshRender.material as Laya.StandardMaterial; mat.ambientColor = new Vector3(0.5,0.5,0.5); 这样确实阴影变淡了,可地面也变色了。。。怎么办?我只要阴影变淡,不想其...

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

124. 如何动态添加Animator和加载AnimationClip并播放 [ 53%]

..._LOADED, this, function():void{       var meshSprite:Sprite3D=layaScene.getChildAt(0) as Sprite3D;       var animator:Animator = meshSprite.addComponent(Animator) as Animator;       var clip:AnimationClip=AnimationClip.load("res/LayaScene/Assets/unit/Unit_1111-A101.lsani");       animato...

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

125. laya.d3.core.light.PointLight_API3.0 [ 53%]

...learTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeC...

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

126. laya.d3.core.BaseCamera_API3.0 [ 53%]

...learTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeAllLayers removeChild remov...

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

127. laya.d3.core.light.SpotLight_API3.0 [ 53%]

...learTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeC...

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

128. laya.d3.core.RenderableSprite3D_API3.0 [ 53%]

...learTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeC...

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

129. 3D项目,如何判断一个3D模型是否在摄像机的范围内,有没有这方面的接口,,, [ 53%]

...nnedMeshRenderer直接点出属性isRender.完事 let mesh = this.owner.getChildAt(1) as Laya.SkinnedMeshSprite3D; console.log(mesh.skinnedMeshRenderer.isRender); 这是我测试时的模型和代码,实际使用根据模型的导出的层级和类型而定。附:我使用的是2.6.1版本...

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

130. 高级应用-寻路导航 [ 53%]

...rm.localScale = new Laya.Vector3(5, 5, 5); var animator = (this.layaMonkey.getChildAt(0)).getComponentByType(Laya.Animator); var totalAnimationClip = animator.getClip("Take_001"); animator.addClip(totalAnimationClip, "walk", 40, 70); animator.play("walk", 2.5); //初始化相机 var moveCamera = thi...

来源: Laya_示例 发布时间: 20251209