大约有 394 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0040 秒)
Laya_社区(158) Laya3.0_api(85) Laya3.0_文档(63) Laya2.0_api(43) laya_api(23) Laya2.0_文档(21) Laya2.0_示例(1)
...= Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.SoundNode }) public sound: Laya.SoundNode; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ ...
来源: Laya3.0_文档 发布时间: 20240910
...LightCom Index Constructors constructor Properties _extra _singleton color owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id intensity lightWorldMatrix lightmapBakedType maxBounces power shadowDepthBias shadowDistance shadowMode shadowNearPlane shadowNormalBias shadowResol...
来源: Laya3.0_api 发布时间: 20231115
... Laya.Physics.I.allowSleeping = false; this.strWorldRoot= this.owner.scene.strWorldRoot; Laya.Physics.I.worldRoot = this.strWorldRoot; } onUpdate(): void { var playerPos=new Laya.Point(this.cameraPlayerOffset.x,this.cameraPlayerOffset.y); v...
来源: Laya_社区 发布时间: 20231123
...ce.mainCamera.viewportPointToRay(this._rayPt, this._ray); let scene = this.owner.scene as Laya.Scene3D; scene.physicsSimulation.rayCast(this._ray, this._raycastHit); console.log(this._raycastHit.succeeded); if(this._raycastHit.succeeded) console.log(this._raycastHit.collider.owner.name); } GameManag...
来源: Laya_社区 发布时间: 20190319
...structors constructor Properties _controller _extra _singleton cullingMode owner runInEditor scriptPath CULLINGMODE_ALWAYSANIMATE CULLINGMODE_CULLCOMPLETELY Accessors animatorParams awaked controller controllerLayerCount destroyed enabled hideFlags id lowUpdateDelty sleep speed updateMode Methods _i...
来源: Laya3.0_api 发布时间: 20231115
...Index Constructors constructor Properties _extra _receiveShadow _singleton owner runInEditor scriptPath sortingFudge Accessors awaked bounds boundsChange castShadow destroyed distanceForSort enabled hideFlags id lightmapIndex lightmapScaleOffset material materials ratioIgnor receiveShadow reflection...
来源: Laya3.0_api 发布时间: 20231115
... //加载Base64图片数据 sp1.loadImage(e.target.result as string); this.owner.addChild(sp1); } }); 上述代码中,用 Laya.loader.fetch 加载图片二进制数据,根据自定义的规则,可以解析数据加密方式,并获得完整图片数据。在这里我们更多的介绍一下 L...
来源: Laya3.0_文档 发布时间: 20230303
...ld, OnDisable则移除, onUpdate里面根据CANNONBody的信息更新(this.owner as Laya.MeshSprite).transfrom.(最好用插值,平滑点,四元数代码就拷贝Laya源码改改.) isKinematic 则根据(this.owner as Laya.MeshSprite).transfrom的位置信息更新CANNONBody 2020-02-26 0 2 分享 微...
来源: Laya_社区 发布时间: 20200217
...blic Methods Show Inherited Public Methods MethodDefined By BaseRender(owner:RenderableSprite3D) 创建一个新的 BaseRender 实例。 BaseRender _addShaderDefine(value:int):void 增加Shader宏定义。 BaseRender _removeShaderDefine(value:int):void 移除Shader宏定义。 BaseRender ...
来源: laya_api 发布时间: 20170929
...= Laya; @regClass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法...
来源: Laya3.0_文档 发布时间: 20240910