大约有 419 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0056 秒)
Laya_社区(177) Laya3.0_api(85) Laya3.0_文档(69) Laya2.0_api(43) laya_api(23) Laya2.0_文档(21) Laya2.0_示例(1)
...地面都设置了弹力 TestScript2 onAwake this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collis...
来源: Laya_社区 发布时间: 20200515
... Show Inherited Public Methods MethodDefined By ShurikenParticleRender(owner:ShuriKenParticle3D) 创建一个 ShurikenParticleRender 实例。 ShurikenParticleRender _addShaderDefine(value:int):void 增加Shader宏定义。 BaseRender _removeShaderDefine(value:int):void 移除Shader宏定义...
来源: laya_api 发布时间: 20170929
...; } 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