大约有 1,460 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0065 秒)
Laya3.0_api(398) Laya_社区(300) Laya2.0_api(251) laya_api(215) Laya2.0_文档(167) Laya3.0_文档(90) Laya2.0_示例(22) Laya_示例(17)
...anceCamera BaseCamera Sprite3D Node EventDispatcher Object Camera 类用于创建摄像机。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-only] 获取在...
来源: Laya2.0_api 发布时间: 20190513
...其他碰撞体分组各不相同。 ```typescript //红色球体设置 //创建刚体碰撞器 var rigidBody:Rigidbody3D = sphere.addComponent(Rigidbody3D); //创建球形碰撞器 rigidBody.isKinematic = true; //设置可以与其发生碰撞的碰撞组 rigidBody.canCollideWith = Physics3DUtils.C...
来源: Laya2.0_文档 发布时间: 20210715
...]): Node Overrides Prefab.create Defined in laya/resource/PrefabImpl.ts:43 创建一个 Parameters Optional options: Record<string, any> Optional errors: any[] Returns Node destroy destroy(): void Inherited from Resource.destroy Defined in laya/resource/Resource.ts:235 销毁资源,销毁后...
来源: Laya3.0_api 发布时间: 20231115
...thods Show Inherited Public Methods MethodDefined By AnimationPlayer() 创建一个 AnimationPlayer 实例。 AnimationPlayer event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注...
来源: Laya2.0_api 发布时间: 20190513
...eight:int = 0, format:int, mipmap:Boolean = true, canRead:Boolean = false) 创建一个 Texture2D 实例。 Texture2D _getSource():*[override] 获取纹理资源。 BaseTexture _parse(data:*, propertyParams:Object = null, constructParams:Array = null):Texture2D[static] Texture2D generateMipmap(...
来源: Laya2.0_api 发布时间: 20190513
...Menu Globals "laya/d3/math/Vector4" Vector4 Class Vector4 Vector4 类用于创建四维向量。 Hierarchy Vector4 Implements IClone Index Constructors constructor Properties w x y z ONE UnitW UnitX UnitY UnitZ ZERO Methods clone cloneTo forNativeElement fromArray length lengthSquared setValue toArr...
来源: Laya3.0_api 发布时间: 20231102
...= Math.random() * 0.75 + 0.25; var sZ:int = Math.random() * 0.75 + 0.25; //创建盒型MeshSprite3D var box:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ))) as MeshSprite3D; //创建刚体碰撞器 var rigidBody:Rigidbody3D = box.addComponent(Rigidbody3D); //创...
来源: Laya2.0_文档 发布时间: 20210714
...rrides Light.constructor Defined in laya/d3/core/light/PointLightCom.ts:19 创建一个 PointLight 实例。 Returns PointLightCom Properties Optional _extra _extra: IComponentExtra Inherited from Component._extra Defined in laya/components/Component.ts:36 Optional _singleton _singleton: boolean = t...
来源: Laya3.0_api 发布时间: 20231115
...bjectSubclasses DirectionLight, PointLight, SpotLight LightSprite 类用于创建灯光的父类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Sprite3D activeInHierarchy : Boolean[read-only] ...
来源: laya_api 发布时间: 20170929
...onAwake():void 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 此方法为虚方法,使用时重写覆盖即可 Node once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher[override] 增加事件侦听器,以使侦...
来源: Laya2.0_api 发布时间: 20190513