大约有 412 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0044 秒)
Laya_社区(172) Laya3.0_api(85) Laya3.0_文档(67) Laya2.0_api(43) laya_api(23) Laya2.0_文档(21) Laya2.0_示例(1)
...; } 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
...sform.worldMatrix; Matrix4x4.multiply((_owner as Sprite3D)._transform.worldMatrix, avatarWorldMatrix, spriteWorldMatrix); spriteTransform.worldMatrix = spriteWorldMatrix; 这是引擎里的更新空间变换代码,被挂载的...
来源: Laya_社区 发布时间: 20170905
...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
...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
...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
...= 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
...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
...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
...户 赞同来自: 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
...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