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

大约有 395 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0041 秒)

141. 要让2DUI跟随3D物件,比如说敌人头上有血条。请问要怎么做? [ 71%]

...户 赞同来自: let out = window.app.fcUtil.worldToViewportPoint(this.owner.transform.position, window.GameMag.Camera1); this.hpNode.x = out.x - this.hpNode.width / 2 this.hpNode.y = out.y + this.hpNode.height *3.5 //this.owner.transform 3d的物体 //this.hpNode 2d的ui   //3d坐...

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

142. laya.components.Script_API3.0 [ 71%]

...mponent Script Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onCollisionEnter onCollisionExit onCollisionStay onDestroy onDisable onEnable onJo...

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

143. laya.d3.core.light.SpotLightCom_API3.0 [ 71%]

...LightCom Index Constructors constructor Properties _extra _singleton color owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id intensity lightWorldMatrix lightmapBakedType range shadowDepthBias shadowDistance shadowMode shadowNearPlane shadowNormalBias shadowResolution shado...

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

144. laya.d3.physics.constraints.FixedConstraint_API3.0 [ 71%]

...structor Properties _extra _singleton disableCollisionsBetweenLinkedBodies owner runInEditor scriptPath Accessors anchor appliedImpulse awaked breakForce breakTorque connectAnchor currentForce currentTorque destroyed enabled hideFlags id Methods _initialize _setConnectRigidBody _setOwner destroy get...

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

145. laya.d3.physics.PhysicsTriggerComponent_API3.0 [ 71%]

... Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor scriptPath Accessors awaked canCollideWith ccdMotionThreshold ccdSweptSphereRadius colliderShape collisionGroup destroyed enabled friction hideFlags id isActive isTrigger restitution rollingFriction simulati...

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

146. Laya3D Camera 添加控制脚本 CameraMoveScript 如何添加? [ 70%]

... QZONE 微信 158*****303 赞同来自: this.camera = (<Camera>this.owner);     }  这一句总是报错,说CameraMoveScript上没有owner属性。 2020-05-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 泡茶用咖啡 ...

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

147. laya.html.HtmlLink_API3.0 [ 70%]

...tmlLink.ts:57 Parameters x: number y: number Returns boolean create create(owner: Text, element: HtmlElement): void Implementation of IHtmlObject.create Defined in laya/html/HtmlLink.ts:39 Parameters owner: Text element: HtmlElement Returns void destroy destroy(): void Implementation of IHtmlObject....

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

148. 3D物理引擎有没有什么办法可以像unity的constraint那样锁住某些轴的旋转与位移么? [ 70%]

...可以挂载到3d场景的子节点上的,会报 Uncaught TypeError: this.owner.localToGlobal is not a function TypeError: this.owner.localToGlobal is not a function 这个错误. 如果可以用2D引擎挂载到3D物体上,也是可以解决我现在的问题,如果这个方面可以有解决方案...

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

149. 在layaIde运行点击按钮播放声音,但是发布到微信工具里面运行声音就不播放了 [ 70%]

..."Sound/BtnClick.mp3",1);     //图片变化     Laya.Tween.to(this.owner,{scaleX:this.originalScaleX*0.9,scaleY:this.originalScaleY*0.9},100,Laya.Ease.backIn,Laya.Handler.create(this,      function(){      Laya.Tween.to(this.owner,{scaleX:this.originalScaleX,scaleY:this.originalSca...

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

150. 3D物理引擎实现类似constraint方法 [ 70%]

...2d物理系统无法挂载到3d场景中,会报 Uncaught TypeError: this.owner.localToGlobal is not a function TypeError: this.owner.localToGlobal is not a function, 2d的实现似乎并不是3d忽略一个轴这样的方式,它们是不同的坐标系统,所以不通用,而我这边需要用3D的...

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