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

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

171. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 68%]

...的介绍,使用如下代码加载prefab资源,             Laya.Sprite3D.load("res/prefabs/Conventional/SampleScene.lh", Laya.Handler.create(null, function(sp)             {                 var layaMonkey2  = scene.addChild(sp);                 layaMonkey2.transform...

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

172. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 68%]

...(附demo) 一个简单的场景 如果我旋转图中 方框指示的sprite3d的rotation,会导致子物体TargetGuard的transform.position不正确,好像子节点属于的坐标系变动了?   比如说,绳子不旋转的时候,我在代码中动下面圆盘的transform.positionthis...

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

173. laya.d3.core.Sprite3D_API3.0 [ 68%]

...Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/Sprite3D" Sprite3D Class Sprite3D Sprite3D 类用于实现3D精灵。 Hierarchy Node Sprite3D RenderableSprite3D BaseCamera LightSprite Index Constructors constructor Properties _extra _scene _url name tag WORLDINVERTFRONT Ac...

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

174. laya.d3.graphics.StaticBatchManager_API3.0 [ 67%]

...Returns StaticBatchManager Methods Static combine combine(staticBatchRoot: Sprite3D, renderableSprite3Ds?: RenderableSprite3D[]): void Defined in laya/d3/graphics/StaticBatchManager.ts:38 静态批处理合并,合并后子节点修改Transform属性无效,根节点staticBatchRoot可为null,如...

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

175. 调用动画结束on方法,报错this.zombieAnimator.on is not a function [ 67%]

...报错this.zombieAnimator.on is not a function 创建官方示例3D Laya.Sprite3D.load("res/threeDimen/skinModel/Zombie/Zombie.lh", Laya.Handler.create(this, function(zombie:Laya.Sprite3D):void { scene.addChild(zombie); this.zombieAnimator = (zombie.getChildAt(0) as Laya.Sprite3D).getComponent(Laya....

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

176. 有关Laya3D碰撞检测疑问 [ 67%]

...ht.direction = new Laya.Vector3(1, -1, -1);  //平面 var plane: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(6, 6, 10, 10))) as Laya.MeshSprite3D; var planeMat: Laya.StandardMaterial = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../...

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

177. 现在引擎3d有类似unity中 transform.InverseTransformPoint()的方法吗 [ 67%]

...阵和世界矩阵,直接获取矩阵的12,13,14号元素就是position Sprite3D.transform.localMatrix Sprite3D.transform.worldMatrix 2017-06-01 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 q755456 相关问题 看了其他引擎才...

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

178. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 67%]

...ionProbe ReflectionProbe 类用于实现反射探针组件 miner Hierarchy Sprite3D ReflectionProbe Index Constructors constructor Properties _extra _isScene _scene _url name TEMPVECTOR3 defaultTextureHDRDecodeValues Accessors active activeInHierarchy boundsMax boundsMin boxProjection components des...

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

179. 设置transform.localRotation之后,就不能再使用transform.rotate了 [ 67%]

...直接rotate,可以看到旋转了。   顺便问一下,要想知道Sprite3D.load加载完成,只能继承并重写onAsynLoaded? -------------------------------------------------------------------------------------ok, 我检查了worldMatrix,确实在设置了localRotation之后就不再...

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

180. 3d资源释放的问题 [ 67%]

...们就可以通过getRes(.lh)得到这个资源的原型对象,即一个Sprite3D对象,这个原型对象就是你这个特效的“根”,它如果被destry(true),者与这个特效相关的所有资源都会被destry,包括纹理、模型、动画,即会释放出内存。如果你只...

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