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

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

141. 实体组件系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

...; } onEnable(): void { //设置初始速度 let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody); rig.setVelocity({ x: 0, y: -10 }); } onTriggerEnter(other: any, self: any, contact: any): void { //如果被碰到,则移除子弹 this.owner.removeSelf(); } onUpdate(): void { //如果...

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

142. 挂载元素的空间变换没有加上被挂载元素的本身空间变换 [ 72%]

...sform.worldMatrix;                     Matrix4x4.multiply((_owner as Sprite3D)._transform.worldMatrix, avatarWorldMatrix, spriteWorldMatrix);                     spriteTransform.worldMatrix = spriteWorldMatrix; 这是引擎里的更新空间变换代码,被挂载的...

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

143. laya.d3.component.volume.batchvolume.StaticBatchVolume_API3.0 [ 72%]

...ticBatchVolume Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Accessors awaked boundsMax boundsMin checkLOD customBatchRenders destroyed enableCustomBatchRender enableMergeBatchRender enableStaticInstanceBatchRender enabled hideFlags id importance probePosit...

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

144. laya.d3.physics.constraints.ConstraintComponent_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.physics.joint.WheelJoint_API3.0 [ 71%]

...ructor Properties _extra _singleton anchor axis collideConnected otherBody owner runInEditor scriptPath selfBody Accessors awaked damping destroyed enableLimit enableMotor enabled frequency hideFlags id joint lowerTranslation maxMotorTorque motorSpeed upperTranslation Methods _initialize _setOwner d...

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

146. 开放数据域组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...= Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let opendata = new Laya.OpenDataContextView(); L...

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

147. laya.components.Animator2D_API3.0 [ 71%]

...ent Animator2D Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Accessors awaked controller destroyed enabled hideFlags id isPlaying parameters speed Methods _initialize _setOwner addControllerLayer crossFade destroy getDefaultState getParamsvalue gotoAndStop ...

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

148. laya.d3.core.light.PointLightCom_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

149. 要让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

150. 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