@galacean/engine-core 1.6.6 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/dist/main.js +0 -37540
- package/dist/main.js.map +0 -1
- package/dist/module.js +0 -37258
- package/dist/module.js.map +0 -1
- package/types/2d/assembler/ISpriteAssembler.d.ts +0 -11
- package/types/2d/assembler/ISpriteRenderer.d.ts +0 -16
- package/types/2d/assembler/SimpleSpriteAssembler.d.ts +0 -13
- package/types/2d/assembler/SlicedSpriteAssembler.d.ts +0 -15
- package/types/2d/assembler/TiledSpriteAssembler.d.ts +0 -17
- package/types/2d/atlas/FontAtlas.d.ts +0 -1
- package/types/2d/atlas/SpriteAtlas.d.ts +0 -32
- package/types/2d/atlas/types.d.ts +0 -69
- package/types/2d/enums/FontStyle.d.ts +0 -11
- package/types/2d/enums/SpriteDrawMode.d.ts +0 -11
- package/types/2d/enums/SpriteMaskInteraction.d.ts +0 -11
- package/types/2d/enums/SpriteModifyFlags.d.ts +0 -23
- package/types/2d/enums/SpriteTileMode.d.ts +0 -11
- package/types/2d/enums/TextAlignment.d.ts +0 -22
- package/types/2d/enums/TextOverflow.d.ts +0 -9
- package/types/2d/index.d.ts +0 -16
- package/types/2d/sprite/Sprite.d.ts +0 -106
- package/types/2d/sprite/SpriteMask.d.ts +0 -70
- package/types/2d/sprite/SpriteRenderer.d.ts +0 -95
- package/types/2d/sprite/index.d.ts +0 -3
- package/types/2d/text/CharInfo.d.ts +0 -1
- package/types/2d/text/CharRenderInfo.d.ts +0 -1
- package/types/2d/text/Font.d.ts +0 -21
- package/types/2d/text/ITextRenderer.d.ts +0 -8
- package/types/2d/text/SubFont.d.ts +0 -1
- package/types/2d/text/TextRenderer.d.ts +0 -122
- package/types/2d/text/TextUtils.d.ts +0 -1
- package/types/2d/text/index.d.ts +0 -5
- package/types/Background.d.ts +0 -53
- package/types/BasicResources.d.ts +0 -2
- package/types/BoolUpdateFlag.d.ts +0 -12
- package/types/Camera.d.ts +0 -321
- package/types/Canvas.d.ts +0 -19
- package/types/Component.d.ts +0 -27
- package/types/ComponentsDependencies.d.ts +0 -25
- package/types/ComponentsManager.d.ts +0 -52
- package/types/Engine.d.ts +0 -150
- package/types/EngineSettings.d.ts +0 -5
- package/types/Entity.d.ts +0 -171
- package/types/Layer.d.ts +0 -73
- package/types/Platform.d.ts +0 -15
- package/types/Polyfill.d.ts +0 -1
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +0 -55
- package/types/RenderPipeline/BatchUtils.d.ts +0 -1
- package/types/RenderPipeline/BatcherManager.d.ts +0 -1
- package/types/RenderPipeline/Blitter.d.ts +0 -28
- package/types/RenderPipeline/CullingResults.d.ts +0 -1
- package/types/RenderPipeline/DepthOnlyPass.d.ts +0 -1
- package/types/RenderPipeline/MaskManager.d.ts +0 -1
- package/types/RenderPipeline/OpaqueTexturePass.d.ts +0 -1
- package/types/RenderPipeline/PipelinePass.d.ts +0 -16
- package/types/RenderPipeline/PipelineUtils.d.ts +0 -1
- package/types/RenderPipeline/PrimitiveChunk.d.ts +0 -1
- package/types/RenderPipeline/PrimitiveChunkManager.d.ts +0 -1
- package/types/RenderPipeline/RenderContext.d.ts +0 -1
- package/types/RenderPipeline/RenderElement.d.ts +0 -12
- package/types/RenderPipeline/RenderQueue.d.ts +0 -1
- package/types/RenderPipeline/SubPrimitiveChunk.d.ts +0 -1
- package/types/RenderPipeline/SubRenderElement.d.ts +0 -22
- package/types/RenderPipeline/VertexArea.d.ts +0 -1
- package/types/RenderPipeline/enums/PipelineStage.d.ts +0 -11
- package/types/RenderPipeline/enums/RenderQueueMaskType.d.ts +0 -1
- package/types/RenderPipeline/index.d.ts +0 -5
- package/types/Renderer.d.ts +0 -135
- package/types/Scene.d.ts +0 -183
- package/types/SceneManager.d.ts +0 -51
- package/types/Script.d.ts +0 -144
- package/types/SystemInfo.d.ts +0 -27
- package/types/Transform.d.ts +0 -304
- package/types/UpdateFlag.d.ts +0 -20
- package/types/UpdateFlagManager.d.ts +0 -1
- package/types/Utils.d.ts +0 -37
- package/types/VirtualCamera.d.ts +0 -1
- package/types/animation/AnimationClip.d.ts +0 -87
- package/types/animation/AnimationClipCurveBinding.d.ts +0 -31
- package/types/animation/AnimationEvent.d.ts +0 -11
- package/types/animation/Animator.d.ts +0 -154
- package/types/animation/AnimatorCondition.d.ts +0 -13
- package/types/animation/AnimatorController.d.ts +0 -72
- package/types/animation/AnimatorControllerLayer.d.ts +0 -21
- package/types/animation/AnimatorControllerParameter.d.ts +0 -14
- package/types/animation/AnimatorLayerMask.d.ts +0 -45
- package/types/animation/AnimatorState.d.ts +0 -69
- package/types/animation/AnimatorStateMachine.d.ts +0 -85
- package/types/animation/AnimatorStateTransition.d.ts +0 -59
- package/types/animation/AnimatorStateTransitionCollection.d.ts +0 -1
- package/types/animation/Keyframe.d.ts +0 -20
- package/types/animation/LayerPathMask.d.ts +0 -16
- package/types/animation/StateMachineScript.d.ts +0 -32
- package/types/animation/animationCurve/AnimationArrayCurve.d.ts +0 -7
- package/types/animation/animationCurve/AnimationBoolCurve.d.ts +0 -7
- package/types/animation/animationCurve/AnimationColorCurve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationCurve.d.ts +0 -39
- package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +0 -11
- package/types/animation/animationCurve/AnimationFloatCurve.d.ts +0 -7
- package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationRectCurve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationRefCurve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationStringCurve.d.ts +0 -7
- package/types/animation/animationCurve/AnimationVector2Curve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationVector3Curve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationVector4Curve.d.ts +0 -8
- package/types/animation/animationCurve/index.d.ts +0 -13
- package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +0 -1
- package/types/animation/enums/AnimatorConditionMode.d.ts +0 -17
- package/types/animation/enums/AnimatorCullingMode.d.ts +0 -9
- package/types/animation/enums/AnimatorLayerBlendingMode.d.ts +0 -4
- package/types/animation/enums/AnimatorStatePlayState.d.ts +0 -1
- package/types/animation/enums/InterpolationType.d.ts +0 -13
- package/types/animation/enums/LayerState.d.ts +0 -15
- package/types/animation/enums/PlayState.d.ts +0 -13
- package/types/animation/enums/WrapMode.d.ts +0 -9
- package/types/animation/index.d.ts +0 -25
- package/types/animation/internal/AnimationCurveLayerOwner.d.ts +0 -1
- package/types/animation/internal/AnimationEventHandler.d.ts +0 -1
- package/types/animation/internal/AnimatorLayerData.d.ts +0 -1
- package/types/animation/internal/AnimatorStateData.d.ts +0 -1
- package/types/animation/internal/AnimatorStatePlayData.d.ts +0 -1
- package/types/animation/internal/AnimatorTempValue.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +0 -5
- package/types/animation/internal/animationCurveOwner/assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/IAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/PositionAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/RotationAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/ScaleAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/UniversalAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/asset/AssetPromise.d.ts +0 -88
- package/types/asset/AssetType.d.ts +0 -66
- package/types/asset/ContentRestorer.d.ts +0 -17
- package/types/asset/GraphicsResource.d.ts +0 -9
- package/types/asset/IReferable.d.ts +0 -2
- package/types/asset/LoadItem.d.ts +0 -40
- package/types/asset/Loader.d.ts +0 -37
- package/types/asset/ReferResource.d.ts +0 -23
- package/types/asset/ResourceManager.d.ts +0 -121
- package/types/asset/request.d.ts +0 -36
- package/types/audio/AudioClip.d.ts +0 -24
- package/types/audio/AudioManager.d.ts +0 -1
- package/types/audio/AudioSource.d.ts +0 -72
- package/types/audio/index.d.ts +0 -3
- package/types/base/Constant.d.ts +0 -116
- package/types/base/EngineObject.d.ts +0 -25
- package/types/base/EventDispatcher.d.ts +0 -66
- package/types/base/Logger.d.ts +0 -11
- package/types/base/StaticInterfaceImplement.d.ts +0 -5
- package/types/base/Time.d.ts +0 -44
- package/types/base/index.d.ts +0 -5
- package/types/clone/CloneManager.d.ts +0 -31
- package/types/clone/ComponentCloner.d.ts +0 -17
- package/types/clone/enums/CloneMode.d.ts +0 -13
- package/types/enums/ActiveChangeFlag.d.ts +0 -6
- package/types/enums/AntiAliasing.d.ts +0 -7
- package/types/enums/BackgroundMode.d.ts +0 -9
- package/types/enums/BackgroundTextureFillMode.d.ts +0 -8
- package/types/enums/CameraClearFlags.d.ts +0 -13
- package/types/enums/CameraModifyFlags.d.ts +0 -17
- package/types/enums/CameraType.d.ts +0 -1
- package/types/enums/DepthTextureMode.d.ts +0 -7
- package/types/enums/Downsampling.d.ts +0 -11
- package/types/enums/EntityModifyFlags.d.ts +0 -9
- package/types/enums/FogMode.d.ts +0 -13
- package/types/enums/MSAASamples.d.ts +0 -13
- package/types/enums/ReplacementFailureStrategy.d.ts +0 -9
- package/types/enums/SpriteMaskLayer.d.ts +0 -73
- package/types/env-probe/CubeProbe.d.ts +0 -27
- package/types/env-probe/Probe.d.ts +0 -52
- package/types/env-probe/index.d.ts +0 -2
- package/types/graphic/Buffer.d.ts +0 -114
- package/types/graphic/BufferUtil.d.ts +0 -12
- package/types/graphic/IndexBufferBinding.d.ts +0 -21
- package/types/graphic/Mesh.d.ts +0 -58
- package/types/graphic/Primitive.d.ts +0 -1
- package/types/graphic/SubMesh.d.ts +0 -8
- package/types/graphic/SubPrimitive.d.ts +0 -19
- package/types/graphic/VertexBufferBinding.d.ts +0 -20
- package/types/graphic/VertexElement.d.ts +0 -48
- package/types/graphic/enums/BufferBindFlag.d.ts +0 -9
- package/types/graphic/enums/BufferUsage.d.ts +0 -11
- package/types/graphic/enums/IndexFormat.d.ts +0 -11
- package/types/graphic/enums/MeshTopology.d.ts +0 -19
- package/types/graphic/enums/SetDataOptions.d.ts +0 -9
- package/types/graphic/enums/VertexElementFormat.d.ts +0 -37
- package/types/graphic/index.d.ts +0 -15
- package/types/index.d.ts +0 -67
- package/types/input/InputManager.d.ts +0 -65
- package/types/input/enums/Keys.d.ts +0 -398
- package/types/input/enums/PointerButton.d.ts +0 -33
- package/types/input/enums/PointerPhase.d.ts +0 -15
- package/types/input/index.d.ts +0 -8
- package/types/input/interface/IInput.d.ts +0 -10
- package/types/input/keyboard/KeyboardManager.d.ts +0 -1
- package/types/input/pointer/Pointer.d.ts +0 -31
- package/types/input/pointer/PointerEventData.d.ts +0 -12
- package/types/input/pointer/PointerManager.d.ts +0 -9
- package/types/input/pointer/emitter/IHitResult.d.ts +0 -1
- package/types/input/pointer/emitter/PhysicsPointerEventEmitter.d.ts +0 -1
- package/types/input/pointer/emitter/PointerEventEmitter.d.ts +0 -30
- package/types/input/wheel/WheelManager.d.ts +0 -1
- package/types/lighting/AmbientLight.d.ts +0 -70
- package/types/lighting/DirectLight.d.ts +0 -32
- package/types/lighting/KHR_lights.d.ts +0 -4
- package/types/lighting/Light.d.ts +0 -45
- package/types/lighting/LightManager.d.ts +0 -12
- package/types/lighting/PointLight.d.ts +0 -26
- package/types/lighting/SpotLight.d.ts +0 -45
- package/types/lighting/ambientOcclusion/AmbientOcclusion.d.ts +0 -79
- package/types/lighting/ambientOcclusion/ScalableAmbientObscurancePass.d.ts +0 -1
- package/types/lighting/ambientOcclusion/index.d.ts +0 -2
- package/types/lighting/enums/AmbientOcclusionQuality.d.ts +0 -11
- package/types/lighting/enums/DiffuseMode.d.ts +0 -13
- package/types/lighting/index.d.ts +0 -7
- package/types/material/BaseMaterial.d.ts +0 -88
- package/types/material/BlinnPhongMaterial.d.ts +0 -68
- package/types/material/Material.d.ts +0 -52
- package/types/material/PBRMaterial.d.ts +0 -311
- package/types/material/UnlitMaterial.d.ts +0 -33
- package/types/material/enums/BlendMode.d.ts +0 -9
- package/types/material/enums/Refraction.d.ts +0 -9
- package/types/material/enums/RenderFace.d.ts +0 -11
- package/types/material/enums/TextureCoordinate.d.ts +0 -13
- package/types/material/index.d.ts +0 -9
- package/types/material/utils/PrefilteredDFG.d.ts +0 -7
- package/types/mesh/BlendShape.d.ts +0 -39
- package/types/mesh/BlendShapeFrame.d.ts +0 -44
- package/types/mesh/BlendShapeManager.d.ts +0 -1
- package/types/mesh/BufferMesh.d.ts +0 -59
- package/types/mesh/MeshRenderer.d.ts +0 -25
- package/types/mesh/ModelMesh.d.ts +0 -254
- package/types/mesh/PrimitiveMesh.d.ts +0 -112
- package/types/mesh/PrimitiveMeshRestorer.d.ts +0 -1
- package/types/mesh/Skin.d.ts +0 -35
- package/types/mesh/SkinnedMeshRenderer.d.ts +0 -50
- package/types/mesh/enums/VertexAttribute.d.ts +0 -33
- package/types/mesh/index.d.ts +0 -9
- package/types/particle/ParticleBufferUtils.d.ts +0 -1
- package/types/particle/ParticleGenerator.d.ts +0 -94
- package/types/particle/ParticleMaterial.d.ts +0 -38
- package/types/particle/ParticleRenderer.d.ts +0 -47
- package/types/particle/enums/ParticleCurveMode.d.ts +0 -9
- package/types/particle/enums/ParticleGradientMode.d.ts +0 -9
- package/types/particle/enums/ParticleRandomSubSeeds.d.ts +0 -1
- package/types/particle/enums/ParticleRenderMode.d.ts +0 -17
- package/types/particle/enums/ParticleScaleMode.d.ts +0 -11
- package/types/particle/enums/ParticleSimulationSpace.d.ts +0 -9
- package/types/particle/enums/ParticleStopMode.d.ts +0 -6
- package/types/particle/enums/attributes/BillboardParticleVertexAttribute.d.ts +0 -1
- package/types/particle/enums/attributes/MeshParticleVertexAttribute.d.ts +0 -5
- package/types/particle/enums/attributes/ParticleInstanceVertexAttribute.d.ts +0 -1
- package/types/particle/index.d.ts +0 -22
- package/types/particle/modules/Burst.d.ts +0 -14
- package/types/particle/modules/ColorOverLifetimeModule.d.ts +0 -20
- package/types/particle/modules/EmissionModule.d.ts +0 -48
- package/types/particle/modules/ForceOverLifetimeModule.d.ts +0 -51
- package/types/particle/modules/MainModule.d.ts +0 -104
- package/types/particle/modules/ParticleCompositeCurve.d.ts +0 -81
- package/types/particle/modules/ParticleCompositeGradient.d.ts +0 -55
- package/types/particle/modules/ParticleCurve.d.ts +0 -63
- package/types/particle/modules/ParticleGeneratorModule.d.ts +0 -17
- package/types/particle/modules/ParticleGradient.d.ts +0 -114
- package/types/particle/modules/RotationOverLifetimeModule.d.ts +0 -34
- package/types/particle/modules/SizeOverLifetimeModule.d.ts +0 -52
- package/types/particle/modules/TextureSheetAnimationModule.d.ts +0 -39
- package/types/particle/modules/VelocityOverLifetimeModule.d.ts +0 -54
- package/types/particle/modules/shape/BaseShape.d.ts +0 -22
- package/types/particle/modules/shape/BoxShape.d.ts +0 -17
- package/types/particle/modules/shape/CircleShape.d.ts +0 -35
- package/types/particle/modules/shape/ConeShape.d.ts +0 -45
- package/types/particle/modules/shape/HemisphereShape.d.ts +0 -14
- package/types/particle/modules/shape/MeshShape.d.ts +0 -21
- package/types/particle/modules/shape/ShapeUtils.d.ts +0 -1
- package/types/particle/modules/shape/SphereShape.d.ts +0 -14
- package/types/particle/modules/shape/enums/ParticleShapeArcMode.d.ts +0 -9
- package/types/particle/modules/shape/enums/ParticleShapeType.d.ts +0 -17
- package/types/particle/modules/shape/index.d.ts +0 -8
- package/types/physics/CharacterController.d.ts +0 -51
- package/types/physics/Collider.d.ts +0 -43
- package/types/physics/Collision.d.ts +0 -22
- package/types/physics/ContactPoint.d.ts +0 -14
- package/types/physics/DynamicCollider.d.ts +0 -192
- package/types/physics/HitResult.d.ts +0 -18
- package/types/physics/PhysicsMaterial.d.ts +0 -42
- package/types/physics/PhysicsScene.d.ts +0 -276
- package/types/physics/StaticCollider.d.ts +0 -7
- package/types/physics/enums/ColliderShapeChangeFlag.d.ts +0 -1
- package/types/physics/enums/ColliderShapeUpAxis.d.ts +0 -11
- package/types/physics/enums/ControllerCollisionFlag.d.ts +0 -11
- package/types/physics/enums/ControllerNonWalkableMode.d.ts +0 -9
- package/types/physics/enums/HingeJointFlag.d.ts +0 -1
- package/types/physics/enums/PhysicsMaterialCombineMode.d.ts +0 -13
- package/types/physics/enums/index.d.ts +0 -4
- package/types/physics/index.d.ts +0 -12
- package/types/physics/joint/FixedJoint.d.ts +0 -4
- package/types/physics/joint/HingeJoint.d.ts +0 -61
- package/types/physics/joint/Joint.d.ts +0 -81
- package/types/physics/joint/JointLimits.d.ts +0 -39
- package/types/physics/joint/JointMotor.d.ts +0 -32
- package/types/physics/joint/SpringJoint.d.ts +0 -38
- package/types/physics/joint/index.d.ts +0 -6
- package/types/physics/shape/BoxColliderShape.d.ts +0 -16
- package/types/physics/shape/CapsuleColliderShape.d.ts +0 -27
- package/types/physics/shape/ColliderShape.d.ts +0 -61
- package/types/physics/shape/PlaneColliderShape.d.ts +0 -9
- package/types/physics/shape/SphereColliderShape.d.ts +0 -14
- package/types/physics/shape/index.d.ts +0 -5
- package/types/postProcess/FinalPass.d.ts +0 -1
- package/types/postProcess/PostProcess.d.ts +0 -64
- package/types/postProcess/PostProcessEffect.d.ts +0 -26
- package/types/postProcess/PostProcessEffectParameter.d.ts +0 -119
- package/types/postProcess/PostProcessManager.d.ts +0 -38
- package/types/postProcess/PostProcessPass.d.ts +0 -50
- package/types/postProcess/PostProcessUberPass.d.ts +0 -25
- package/types/postProcess/effects/BloomEffect.d.ts +0 -50
- package/types/postProcess/effects/TonemappingEffect.d.ts +0 -25
- package/types/postProcess/effects/index.d.ts +0 -2
- package/types/postProcess/index.d.ts +0 -8
- package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +0 -7
- package/types/renderingHardwareInterface/IPlatformRenderTarget.d.ts +0 -20
- package/types/renderingHardwareInterface/IPlatformTexture.d.ts +0 -36
- package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +0 -37
- package/types/renderingHardwareInterface/IPlatformTexture2DArray.d.ts +0 -40
- package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +0 -41
- package/types/renderingHardwareInterface/index.d.ts +0 -6
- package/types/shader/Shader.d.ts +0 -119
- package/types/shader/ShaderData.d.ts +0 -350
- package/types/shader/ShaderMacro.d.ts +0 -26
- package/types/shader/ShaderMacroCollection.d.ts +0 -1
- package/types/shader/ShaderPart.d.ts +0 -46
- package/types/shader/ShaderPass.d.ts +0 -25
- package/types/shader/ShaderPool.d.ts +0 -1
- package/types/shader/ShaderProgram.d.ts +0 -1
- package/types/shader/ShaderProgramPool.d.ts +0 -1
- package/types/shader/ShaderProperty.d.ts +0 -20
- package/types/shader/ShaderTagKey.d.ts +0 -16
- package/types/shader/ShaderUniform.d.ts +0 -1
- package/types/shader/ShaderUniformBlock.d.ts +0 -1
- package/types/shader/SubShader.d.ts +0 -18
- package/types/shader/enums/BlendFactor.d.ts +0 -32
- package/types/shader/enums/BlendOperation.d.ts +0 -16
- package/types/shader/enums/ColorWriteMask.d.ts +0 -18
- package/types/shader/enums/CompareFunction.d.ts +0 -22
- package/types/shader/enums/CullMode.d.ts +0 -12
- package/types/shader/enums/RenderQueueType.d.ts +0 -11
- package/types/shader/enums/RenderStateElementKey.d.ts +0 -60
- package/types/shader/enums/ShaderDataGroup.d.ts +0 -15
- package/types/shader/enums/ShaderLanguage.d.ts +0 -9
- package/types/shader/enums/ShaderPropertyType.d.ts +0 -27
- package/types/shader/enums/StencilOperation.d.ts +0 -22
- package/types/shader/index.d.ts +0 -19
- package/types/shader/state/BlendState.d.ts +0 -16
- package/types/shader/state/DepthState.d.ts +0 -14
- package/types/shader/state/RasterState.d.ts +0 -13
- package/types/shader/state/RenderState.d.ts +0 -21
- package/types/shader/state/RenderTargetBlendState.d.ts +0 -24
- package/types/shader/state/StencilState.d.ts +0 -34
- package/types/shader/state/index.d.ts +0 -6
- package/types/shaderlib/ShaderFactory.d.ts +0 -20
- package/types/shaderlib/ShaderLib.d.ts +0 -73
- package/types/shaderlib/index.d.ts +0 -1
- package/types/shaderlib/particle/index.d.ts +0 -15
- package/types/shaderlib/pbr/index.d.ts +0 -11
- package/types/shaderlib/shadow/index.d.ts +0 -8
- package/types/shadow/CascadedShadowCasterPass.d.ts +0 -45
- package/types/shadow/ShadowSliceData.d.ts +0 -1
- package/types/shadow/ShadowUtils.d.ts +0 -1
- package/types/shadow/enum/ShadowCascadesMode.d.ts +0 -11
- package/types/shadow/enum/ShadowResolution.d.ts +0 -13
- package/types/shadow/enum/ShadowType.d.ts +0 -13
- package/types/shadow/index.d.ts +0 -3
- package/types/sky/Sky.d.ts +0 -22
- package/types/sky/SkyBoxMaterial.d.ts +0 -43
- package/types/sky/SkyProceduralMaterial.d.ts +0 -72
- package/types/sky/index.d.ts +0 -3
- package/types/texture/RenderTarget.d.ts +0 -91
- package/types/texture/Texture.d.ts +0 -87
- package/types/texture/Texture2D.d.ts +0 -71
- package/types/texture/Texture2DArray.d.ts +0 -82
- package/types/texture/TextureCube.d.ts +0 -71
- package/types/texture/TextureUtils.d.ts +0 -1
- package/types/texture/enums/RenderBufferDepthFormat.d.ts +0 -23
- package/types/texture/enums/TextureCubeFace.d.ts +0 -17
- package/types/texture/enums/TextureDepthCompareFunction.d.ts +0 -21
- package/types/texture/enums/TextureFilterMode.d.ts +0 -11
- package/types/texture/enums/TextureFormat.d.ts +0 -87
- package/types/texture/enums/TextureUsage.d.ts +0 -9
- package/types/texture/enums/TextureWrapMode.d.ts +0 -11
- package/types/texture/index.d.ts +0 -13
- package/types/trail/TrailMaterial.d.ts +0 -5
- package/types/trail/TrailRenderer.d.ts +0 -35
- package/types/trail/index.d.ts +0 -2
- package/types/ui/IUICanvas.d.ts +0 -1
- package/types/ui/UIUtils.d.ts +0 -12
- package/types/utils/ClearableObjectPool.d.ts +0 -16
- package/types/utils/DisorderedArray.d.ts +0 -70
- package/types/utils/ObjectPool.d.ts +0 -16
- package/types/utils/ReturnableObjectPool.d.ts +0 -16
- package/types/utils/SafeLoopArray.d.ts +0 -46
- package/types/utils/index.d.ts +0 -4
- package/types/xr/XRManager.d.ts +0 -5
package/types/Renderer.d.ts
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { BoundingBox, Matrix, Vector4 } from "@galacean/engine-math";
|
|
2
|
-
import { Component } from "./Component";
|
|
3
|
-
import { Entity } from "./Entity";
|
|
4
|
-
import { RenderContext } from "./RenderPipeline/RenderContext";
|
|
5
|
-
import { TransformModifyFlags } from "./Transform";
|
|
6
|
-
import { IComponentCustomClone } from "./clone/ComponentCloner";
|
|
7
|
-
import { SpriteMaskLayer } from "./enums/SpriteMaskLayer";
|
|
8
|
-
import { Material } from "./material";
|
|
9
|
-
import { ShaderData } from "./shader/ShaderData";
|
|
10
|
-
/**
|
|
11
|
-
* Basis for all renderers.
|
|
12
|
-
* @decorator `@dependentComponents(Transform, DependentMode.CheckOnly)`
|
|
13
|
-
*/
|
|
14
|
-
export declare class Renderer extends Component implements IComponentCustomClone {
|
|
15
|
-
private static _tempVector0;
|
|
16
|
-
private static _receiveShadowMacro;
|
|
17
|
-
private static _localMatrixProperty;
|
|
18
|
-
private static _worldMatrixProperty;
|
|
19
|
-
private static _mvMatrixProperty;
|
|
20
|
-
private static _mvpMatrixProperty;
|
|
21
|
-
private static _mvInvMatrixProperty;
|
|
22
|
-
private static _normalMatrixProperty;
|
|
23
|
-
private static _rendererLayerProperty;
|
|
24
|
-
_renderFrameCount: number;
|
|
25
|
-
_maskLayer: SpriteMaskLayer;
|
|
26
|
-
protected _overrideUpdate: boolean;
|
|
27
|
-
protected _materials: Material[];
|
|
28
|
-
protected _dirtyUpdateFlag: number;
|
|
29
|
-
protected _rendererLayer: Vector4;
|
|
30
|
-
protected _bounds: BoundingBox;
|
|
31
|
-
protected _transformEntity: Entity;
|
|
32
|
-
private _shaderData;
|
|
33
|
-
private _mvMatrix;
|
|
34
|
-
private _mvpMatrix;
|
|
35
|
-
private _mvInvMatrix;
|
|
36
|
-
private _normalMatrix;
|
|
37
|
-
private _materialsInstanced;
|
|
38
|
-
private _priority;
|
|
39
|
-
private _receiveShadows;
|
|
40
|
-
/**
|
|
41
|
-
* ShaderData related to renderer.
|
|
42
|
-
*/
|
|
43
|
-
get shaderData(): ShaderData;
|
|
44
|
-
/**
|
|
45
|
-
* Whether it is culled in the current frame and does not participate in rendering.
|
|
46
|
-
*/
|
|
47
|
-
get isCulled(): boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Whether receive shadow.
|
|
50
|
-
*/
|
|
51
|
-
get receiveShadows(): boolean;
|
|
52
|
-
set receiveShadows(value: boolean);
|
|
53
|
-
/** Whether cast shadow. */
|
|
54
|
-
castShadows: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Material count.
|
|
57
|
-
*/
|
|
58
|
-
get materialCount(): number;
|
|
59
|
-
set materialCount(value: number);
|
|
60
|
-
/**
|
|
61
|
-
* The world bounding volume of the renderer.
|
|
62
|
-
*/
|
|
63
|
-
get bounds(): BoundingBox;
|
|
64
|
-
/**
|
|
65
|
-
* The render priority of the renderer, lower values are rendered first and higher values are rendered last.
|
|
66
|
-
*/
|
|
67
|
-
get priority(): number;
|
|
68
|
-
set priority(value: number);
|
|
69
|
-
/**
|
|
70
|
-
* Get the first instance material.
|
|
71
|
-
* @returns The first instance material
|
|
72
|
-
*/
|
|
73
|
-
getInstanceMaterial(): Material | null;
|
|
74
|
-
/**
|
|
75
|
-
* Get the first instance material by index.
|
|
76
|
-
* @remarks Calling this function for the first time after the material is set will create an instance material to ensure that it is unique to the renderer.
|
|
77
|
-
* @param index - Material index
|
|
78
|
-
* @returns Instance material
|
|
79
|
-
*/
|
|
80
|
-
getInstanceMaterial(index: number): Material | null;
|
|
81
|
-
/**
|
|
82
|
-
* Get the first material.
|
|
83
|
-
* @returns The first material
|
|
84
|
-
*/
|
|
85
|
-
getMaterial(): Material | null;
|
|
86
|
-
/**
|
|
87
|
-
* Get the first material by index.
|
|
88
|
-
* @param index - Material index
|
|
89
|
-
* @returns Material
|
|
90
|
-
*/
|
|
91
|
-
getMaterial(index: number): Material | null;
|
|
92
|
-
/**
|
|
93
|
-
* Set the first material.
|
|
94
|
-
* @param material - The first material
|
|
95
|
-
*/
|
|
96
|
-
setMaterial(material: Material): void;
|
|
97
|
-
/**
|
|
98
|
-
* Set material by index.
|
|
99
|
-
* @param index - Material index
|
|
100
|
-
* @param material - The material
|
|
101
|
-
*/
|
|
102
|
-
setMaterial(index: number, material: Material): void;
|
|
103
|
-
/**
|
|
104
|
-
* Get all instance materials.
|
|
105
|
-
* @remarks Calling this function for the first time after the material is set will create an instance material to ensure that it is unique to the renderer.
|
|
106
|
-
* @returns All instance materials
|
|
107
|
-
*/
|
|
108
|
-
getInstanceMaterials(): Readonly<Material[]>;
|
|
109
|
-
/**
|
|
110
|
-
* Get all materials.
|
|
111
|
-
* @returns All materials
|
|
112
|
-
*/
|
|
113
|
-
getMaterials(): Readonly<Material[]>;
|
|
114
|
-
/**
|
|
115
|
-
* Set all materials.
|
|
116
|
-
* @param materials - All materials
|
|
117
|
-
*/
|
|
118
|
-
setMaterials(materials: Material[]): void;
|
|
119
|
-
update(deltaTime: number): void;
|
|
120
|
-
/**
|
|
121
|
-
* Update once per frame per renderer, not influenced by batched.
|
|
122
|
-
*/
|
|
123
|
-
protected _update(context: RenderContext): void;
|
|
124
|
-
protected _updateWorldViewRelatedShaderData(context: RenderContext, worldMatrix: Matrix, batched: boolean): void;
|
|
125
|
-
protected _updateProjectionRelatedShaderData(context: RenderContext, worldMatrix: Matrix, batched: boolean): void;
|
|
126
|
-
protected _updateBounds(worldBounds: BoundingBox): void;
|
|
127
|
-
protected _render(context: RenderContext): void;
|
|
128
|
-
private _createInstanceMaterial;
|
|
129
|
-
private _setMaterial;
|
|
130
|
-
protected _onTransformChanged(type: TransformModifyFlags): void;
|
|
131
|
-
}
|
|
132
|
-
export declare enum RendererUpdateFlags {
|
|
133
|
-
/** Include world position and world bounds. */
|
|
134
|
-
WorldVolume = 1
|
|
135
|
-
}
|
package/types/Scene.d.ts
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { Color, Vector3 } from "@galacean/engine-math";
|
|
2
|
-
import { Background } from "./Background";
|
|
3
|
-
import { Engine } from "./Engine";
|
|
4
|
-
import { Entity } from "./Entity";
|
|
5
|
-
import { EngineObject } from "./base";
|
|
6
|
-
import { FogMode } from "./enums/FogMode";
|
|
7
|
-
import { AmbientOcclusion, DirectLight } from "./lighting";
|
|
8
|
-
import { AmbientLight } from "./lighting/AmbientLight";
|
|
9
|
-
import { PhysicsScene } from "./physics/PhysicsScene";
|
|
10
|
-
import { PostProcessManager } from "./postProcess";
|
|
11
|
-
import { ShaderData } from "./shader/ShaderData";
|
|
12
|
-
import { ShadowCascadesMode } from "./shadow/enum/ShadowCascadesMode";
|
|
13
|
-
import { ShadowResolution } from "./shadow/enum/ShadowResolution";
|
|
14
|
-
/**
|
|
15
|
-
* Scene.
|
|
16
|
-
*/
|
|
17
|
-
export declare class Scene extends EngineObject {
|
|
18
|
-
private static _fogColorProperty;
|
|
19
|
-
private static _fogParamsProperty;
|
|
20
|
-
private static _prefilterdDFGProperty;
|
|
21
|
-
/** Scene name. */
|
|
22
|
-
name: string;
|
|
23
|
-
/** Physics. */
|
|
24
|
-
readonly physics: PhysicsScene;
|
|
25
|
-
/** If cast shadows. */
|
|
26
|
-
castShadows: boolean;
|
|
27
|
-
/** The resolution of the shadow maps. */
|
|
28
|
-
shadowResolution: ShadowResolution;
|
|
29
|
-
/** The splits of two cascade distribution. */
|
|
30
|
-
shadowTwoCascadeSplits: number;
|
|
31
|
-
/** The splits of four cascade distribution. */
|
|
32
|
-
shadowFourCascadeSplits: Vector3;
|
|
33
|
-
/** Max Shadow distance. */
|
|
34
|
-
shadowDistance: number;
|
|
35
|
-
/**
|
|
36
|
-
* Last shadow fade distance in percentage, range [0,1].
|
|
37
|
-
* @remarks Value 0 is used for no shadow fade.
|
|
38
|
-
*/
|
|
39
|
-
shadowFadeBorder: number;
|
|
40
|
-
/** Post process manager. */
|
|
41
|
-
readonly postProcessManager: PostProcessManager;
|
|
42
|
-
/**
|
|
43
|
-
* Ambient Occlusion settings.
|
|
44
|
-
* @remarks
|
|
45
|
-
* Darkens areas where objects are close together to simulate natural light blocking,
|
|
46
|
-
* such as corners, crevices, and contact points between surfaces.
|
|
47
|
-
*/
|
|
48
|
-
readonly ambientOcclusion: AmbientOcclusion;
|
|
49
|
-
private _background;
|
|
50
|
-
private _shaderData;
|
|
51
|
-
private _shadowCascades;
|
|
52
|
-
private _ambientLight;
|
|
53
|
-
private _fogMode;
|
|
54
|
-
private _fogColor;
|
|
55
|
-
private _fogStart;
|
|
56
|
-
private _fogEnd;
|
|
57
|
-
private _fogDensity;
|
|
58
|
-
private _fogParams;
|
|
59
|
-
private _isActive;
|
|
60
|
-
private _sun;
|
|
61
|
-
private _enableTransparentShadow;
|
|
62
|
-
/**
|
|
63
|
-
* Whether the scene is active.
|
|
64
|
-
*/
|
|
65
|
-
get isActive(): boolean;
|
|
66
|
-
set isActive(value: boolean);
|
|
67
|
-
/**
|
|
68
|
-
* Scene-related shader data.
|
|
69
|
-
*/
|
|
70
|
-
get shaderData(): ShaderData;
|
|
71
|
-
/**
|
|
72
|
-
* The background of the scene.
|
|
73
|
-
*/
|
|
74
|
-
get background(): Background;
|
|
75
|
-
/**
|
|
76
|
-
* Number of cascades to use for directional light shadows.
|
|
77
|
-
*/
|
|
78
|
-
get shadowCascades(): ShadowCascadesMode;
|
|
79
|
-
set shadowCascades(value: ShadowCascadesMode);
|
|
80
|
-
/**
|
|
81
|
-
* Ambient light.
|
|
82
|
-
*/
|
|
83
|
-
get ambientLight(): AmbientLight;
|
|
84
|
-
set ambientLight(value: AmbientLight);
|
|
85
|
-
/**
|
|
86
|
-
* Fog mode.
|
|
87
|
-
* @remarks
|
|
88
|
-
* If set to `FogMode.None`, the fog will be disabled.
|
|
89
|
-
* If set to `FogMode.Linear`, the fog will be linear and controlled by `fogStart` and `fogEnd`.
|
|
90
|
-
* If set to `FogMode.Exponential`, the fog will be exponential and controlled by `fogDensity`.
|
|
91
|
-
* If set to `FogMode.ExponentialSquared`, the fog will be exponential squared and controlled by `fogDensity`.
|
|
92
|
-
*/
|
|
93
|
-
get fogMode(): FogMode;
|
|
94
|
-
set fogMode(value: FogMode);
|
|
95
|
-
/**
|
|
96
|
-
* Fog color.
|
|
97
|
-
*/
|
|
98
|
-
get fogColor(): Color;
|
|
99
|
-
set fogColor(value: Color);
|
|
100
|
-
/**
|
|
101
|
-
* Fog start.
|
|
102
|
-
*/
|
|
103
|
-
get fogStart(): number;
|
|
104
|
-
set fogStart(value: number);
|
|
105
|
-
/**
|
|
106
|
-
* Fog end.
|
|
107
|
-
*/
|
|
108
|
-
get fogEnd(): number;
|
|
109
|
-
set fogEnd(value: number);
|
|
110
|
-
/**
|
|
111
|
-
* Fog density.
|
|
112
|
-
*/
|
|
113
|
-
get fogDensity(): number;
|
|
114
|
-
set fogDensity(value: number);
|
|
115
|
-
/**
|
|
116
|
-
* Count of root entities.
|
|
117
|
-
*/
|
|
118
|
-
get rootEntitiesCount(): number;
|
|
119
|
-
/**
|
|
120
|
-
* Root entity collection.
|
|
121
|
-
*/
|
|
122
|
-
get rootEntities(): Readonly<Entity[]>;
|
|
123
|
-
/**
|
|
124
|
-
* Sun light source.
|
|
125
|
-
* @remarks If set this to null, scene will use the brightest directional light.
|
|
126
|
-
*/
|
|
127
|
-
get sun(): DirectLight | null;
|
|
128
|
-
set sun(light: DirectLight | null);
|
|
129
|
-
/**
|
|
130
|
-
* Whether to enable transparent shadow.
|
|
131
|
-
*/
|
|
132
|
-
get enableTransparentShadow(): boolean;
|
|
133
|
-
set enableTransparentShadow(value: boolean);
|
|
134
|
-
/**
|
|
135
|
-
* Create scene.
|
|
136
|
-
* @param engine - Engine
|
|
137
|
-
* @param name - Name
|
|
138
|
-
*/
|
|
139
|
-
constructor(engine: Engine, name?: string);
|
|
140
|
-
/**
|
|
141
|
-
* Create root entity.
|
|
142
|
-
* @param name - Entity name
|
|
143
|
-
* @returns Entity
|
|
144
|
-
*/
|
|
145
|
-
createRootEntity(name?: string): Entity;
|
|
146
|
-
/**
|
|
147
|
-
* Append an entity.
|
|
148
|
-
* @param entity - The root entity to add
|
|
149
|
-
*/
|
|
150
|
-
addRootEntity(entity: Entity): void;
|
|
151
|
-
/**
|
|
152
|
-
* Append an entity.
|
|
153
|
-
* @param index - specified index
|
|
154
|
-
* @param entity - The root entity to add
|
|
155
|
-
*/
|
|
156
|
-
addRootEntity(index: number, entity: Entity): void;
|
|
157
|
-
/**
|
|
158
|
-
* Remove an entity.
|
|
159
|
-
* @param entity - The root entity to remove
|
|
160
|
-
*/
|
|
161
|
-
removeRootEntity(entity: Entity): void;
|
|
162
|
-
/**
|
|
163
|
-
* Get root entity from index.
|
|
164
|
-
* @param index - Index
|
|
165
|
-
* @returns Entity
|
|
166
|
-
*/
|
|
167
|
-
getRootEntity(index?: number): Entity | null;
|
|
168
|
-
/**
|
|
169
|
-
* Find entity globally by name.
|
|
170
|
-
* @param name - Entity name
|
|
171
|
-
* @returns Entity
|
|
172
|
-
*/
|
|
173
|
-
findEntityByName(name: string): Entity | null;
|
|
174
|
-
/**
|
|
175
|
-
* Find entity globally by name,use ‘/’ symbol as a path separator.
|
|
176
|
-
* @param path - Entity's path
|
|
177
|
-
* @returns Entity
|
|
178
|
-
*/
|
|
179
|
-
findEntityByPath(path: string): Entity | null;
|
|
180
|
-
private _computeLinearFogParams;
|
|
181
|
-
private _computeExponentialFogParams;
|
|
182
|
-
private _getSunlight;
|
|
183
|
-
}
|
package/types/SceneManager.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Engine } from "./Engine";
|
|
2
|
-
import { Scene } from "./Scene";
|
|
3
|
-
import { AssetPromise } from "./asset/AssetPromise";
|
|
4
|
-
/**
|
|
5
|
-
* Scene manager.
|
|
6
|
-
*/
|
|
7
|
-
export declare class SceneManager {
|
|
8
|
-
readonly engine: Engine;
|
|
9
|
-
/**
|
|
10
|
-
* Get the scene list.
|
|
11
|
-
*/
|
|
12
|
-
get scenes(): ReadonlyArray<Scene>;
|
|
13
|
-
/**
|
|
14
|
-
* Add scene.
|
|
15
|
-
* @param scene - The scene which want to be added
|
|
16
|
-
*/
|
|
17
|
-
addScene(scene: Scene): void;
|
|
18
|
-
/**
|
|
19
|
-
* Add scene at specified index.
|
|
20
|
-
* @param index - specified index
|
|
21
|
-
* @param child - The scene which want to be added
|
|
22
|
-
*/
|
|
23
|
-
addScene(index: number, scene: Scene): void;
|
|
24
|
-
/**
|
|
25
|
-
* Remove scene.
|
|
26
|
-
* @param scene - The scene which want to be removed
|
|
27
|
-
*/
|
|
28
|
-
removeScene(scene: Scene): void;
|
|
29
|
-
/**
|
|
30
|
-
* Load and activate scene.
|
|
31
|
-
* @param url - the path of the scene
|
|
32
|
-
* @param destroyOldScene - whether to destroy old scene
|
|
33
|
-
* @returns scene promise
|
|
34
|
-
*/
|
|
35
|
-
loadScene(url: string, destroyOldScene?: boolean): AssetPromise<Scene>;
|
|
36
|
-
/**
|
|
37
|
-
* Merge the source scene into the target scene.
|
|
38
|
-
* @remarks the global information of destScene will be used after the merge, and the lightingMap information will be merged.
|
|
39
|
-
* @param sourceScene - source scene
|
|
40
|
-
* @param destScene - target scene
|
|
41
|
-
*/
|
|
42
|
-
mergeScenes(sourceScene: Scene, destScene: Scene): void;
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated
|
|
45
|
-
* Please use `scenes` instead.
|
|
46
|
-
*
|
|
47
|
-
* Get the first scene.
|
|
48
|
-
*/
|
|
49
|
-
get activeScene(): Scene;
|
|
50
|
-
set activeScene(scene: Scene);
|
|
51
|
-
}
|
package/types/Script.d.ts
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { Camera } from "./Camera";
|
|
2
|
-
import { Component } from "./Component";
|
|
3
|
-
import { PointerEventData } from "./input/pointer/PointerEventData";
|
|
4
|
-
import { ColliderShape } from "./physics";
|
|
5
|
-
import { Collision } from "./physics/Collision";
|
|
6
|
-
/**
|
|
7
|
-
* Script class, used for logic writing.
|
|
8
|
-
*/
|
|
9
|
-
export declare class Script extends Component {
|
|
10
|
-
/**
|
|
11
|
-
* Called when be enabled first time, only once.
|
|
12
|
-
*/
|
|
13
|
-
onAwake(): void;
|
|
14
|
-
/**
|
|
15
|
-
* Called when be enabled.
|
|
16
|
-
*/
|
|
17
|
-
onEnable(): void;
|
|
18
|
-
/**
|
|
19
|
-
* Called before the frame-level loop start for the first time, only once.
|
|
20
|
-
*/
|
|
21
|
-
onStart(): void;
|
|
22
|
-
/**
|
|
23
|
-
* The main loop, called frame by frame.
|
|
24
|
-
* @param deltaTime - The delta time since last frame in seconds
|
|
25
|
-
*/
|
|
26
|
-
onUpdate(deltaTime: number): void;
|
|
27
|
-
/**
|
|
28
|
-
* Called after the onUpdate finished, called frame by frame.
|
|
29
|
-
* @param deltaTime - The delta time since last frame in seconds
|
|
30
|
-
*/
|
|
31
|
-
onLateUpdate(deltaTime: number): void;
|
|
32
|
-
/**
|
|
33
|
-
* Called before camera rendering, called per camera.
|
|
34
|
-
* @param camera - Current camera.
|
|
35
|
-
*/
|
|
36
|
-
onBeginRender(camera: Camera): void;
|
|
37
|
-
/**
|
|
38
|
-
* Called after camera rendering, called per camera.
|
|
39
|
-
* @param camera - Current camera.
|
|
40
|
-
*/
|
|
41
|
-
onEndRender(camera: Camera): void;
|
|
42
|
-
/**
|
|
43
|
-
* Called before physics calculations, the number of times is related to the physical update frequency.
|
|
44
|
-
*/
|
|
45
|
-
onPhysicsUpdate(): void;
|
|
46
|
-
/**
|
|
47
|
-
* Called when the trigger enter.
|
|
48
|
-
* @param other - ColliderShape
|
|
49
|
-
*/
|
|
50
|
-
onTriggerEnter(other: ColliderShape): void;
|
|
51
|
-
/**
|
|
52
|
-
* Called when the trigger exit.
|
|
53
|
-
* @param other - ColliderShape
|
|
54
|
-
*/
|
|
55
|
-
onTriggerExit(other: ColliderShape): void;
|
|
56
|
-
/**
|
|
57
|
-
* Called when the trigger stay.
|
|
58
|
-
* @remarks onTriggerStay is called every frame while the trigger stay.
|
|
59
|
-
* @param other - ColliderShape
|
|
60
|
-
*/
|
|
61
|
-
onTriggerStay(other: ColliderShape): void;
|
|
62
|
-
/**
|
|
63
|
-
* Called when the collision enter.
|
|
64
|
-
* @param other - The Collision data associated with this collision event
|
|
65
|
-
* @remarks The Collision data will be invalid after this call, you should copy the data if needed.
|
|
66
|
-
*/
|
|
67
|
-
onCollisionEnter(other: Collision): void;
|
|
68
|
-
/**
|
|
69
|
-
* Called when the collision exit.
|
|
70
|
-
* @param other - The Collision data associated with this collision event
|
|
71
|
-
* @remarks The Collision data will be invalid after this call, you should copy the data if needed.
|
|
72
|
-
*/
|
|
73
|
-
onCollisionExit(other: Collision): void;
|
|
74
|
-
/**
|
|
75
|
-
* Called when the collision stay.
|
|
76
|
-
* @param other - The Collision data associated with this collision event
|
|
77
|
-
* @remarks The Collision data will be invalid after this call, you should copy the data if needed.
|
|
78
|
-
*/
|
|
79
|
-
onCollisionStay(other: Collision): void;
|
|
80
|
-
/**
|
|
81
|
-
* Called when the pointer is down while over the ColliderShape.
|
|
82
|
-
* @param eventData - The pointer event data that triggered this callback
|
|
83
|
-
*/
|
|
84
|
-
onPointerDown(eventData: PointerEventData): void;
|
|
85
|
-
/**
|
|
86
|
-
* Called when the pointer is up while over the ColliderShape.
|
|
87
|
-
* @param eventData - The pointer event data that triggered this callback
|
|
88
|
-
*/
|
|
89
|
-
onPointerUp(eventData: PointerEventData): void;
|
|
90
|
-
/**
|
|
91
|
-
* Called when the pointer is down and up with the same collider.
|
|
92
|
-
* @param eventData - The pointer event data that triggered this callback
|
|
93
|
-
*/
|
|
94
|
-
onPointerClick(eventData: PointerEventData): void;
|
|
95
|
-
/**
|
|
96
|
-
* Called when the pointer enters the ColliderShape.
|
|
97
|
-
* @param eventData - The pointer event data that triggered this callback
|
|
98
|
-
*/
|
|
99
|
-
onPointerEnter(eventData: PointerEventData): void;
|
|
100
|
-
/**
|
|
101
|
-
* Called when the pointer exits the ColliderShape.
|
|
102
|
-
* @param eventData - The pointer event data that triggered this callback
|
|
103
|
-
*/
|
|
104
|
-
onPointerExit(eventData: PointerEventData): void;
|
|
105
|
-
/**
|
|
106
|
-
* This function will be called when the pointer is pressed on the collider.
|
|
107
|
-
* @param eventData - The pointer event data that triggered this callback
|
|
108
|
-
*/
|
|
109
|
-
onPointerBeginDrag(eventData: PointerEventData): void;
|
|
110
|
-
/**
|
|
111
|
-
* When a drag collision occurs on the pointer, this function will be called every time it moves.
|
|
112
|
-
* @param eventData - The pointer event data that triggered this callback
|
|
113
|
-
*/
|
|
114
|
-
onPointerDrag(eventData: PointerEventData): void;
|
|
115
|
-
/**
|
|
116
|
-
* When dragging ends, this function will be called (Dragged object).
|
|
117
|
-
* @param eventData - The pointer event data that triggered this callback
|
|
118
|
-
*/
|
|
119
|
-
onPointerEndDrag(eventData: PointerEventData): void;
|
|
120
|
-
/**
|
|
121
|
-
* When dragging ends, this function will be called (Receiving object).
|
|
122
|
-
* @param eventData - The pointer event data that triggered this callback
|
|
123
|
-
*/
|
|
124
|
-
onPointerDrop(eventData: PointerEventData): void;
|
|
125
|
-
/**
|
|
126
|
-
* Called when be disabled.
|
|
127
|
-
*/
|
|
128
|
-
onDisable(): void;
|
|
129
|
-
/**
|
|
130
|
-
* Called at the end of the destroyed frame.
|
|
131
|
-
*/
|
|
132
|
-
onDestroy(): void;
|
|
133
|
-
}
|
|
134
|
-
export declare enum PointerMethods {
|
|
135
|
-
onPointerDown = "onPointerDown",
|
|
136
|
-
onPointerUp = "onPointerUp",
|
|
137
|
-
onPointerClick = "onPointerClick",
|
|
138
|
-
onPointerEnter = "onPointerEnter",
|
|
139
|
-
onPointerExit = "onPointerExit",
|
|
140
|
-
onPointerBeginDrag = "onPointerBeginDrag",
|
|
141
|
-
onPointerDrag = "onPointerDrag",
|
|
142
|
-
onPointerEndDrag = "onPointerEndDrag",
|
|
143
|
-
onPointerDrop = "onPointerDrop"
|
|
144
|
-
}
|
package/types/SystemInfo.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Engine } from "./Engine";
|
|
2
|
-
import { Platform } from "./Platform";
|
|
3
|
-
import { TextureFormat } from "./texture";
|
|
4
|
-
import { AssetPromise } from "./asset/AssetPromise";
|
|
5
|
-
/**
|
|
6
|
-
* Access operating system, platform and hardware information.
|
|
7
|
-
*/
|
|
8
|
-
export declare class SystemInfo {
|
|
9
|
-
/** The platform is running on. */
|
|
10
|
-
static platform: Platform;
|
|
11
|
-
/** The operating system is running on. */
|
|
12
|
-
static operatingSystem: string;
|
|
13
|
-
/** Whether the system support SIMD. */
|
|
14
|
-
private static _simdSupported;
|
|
15
|
-
private static _webpSupported;
|
|
16
|
-
/**
|
|
17
|
-
* The pixel ratio of the device.
|
|
18
|
-
*/
|
|
19
|
-
static get devicePixelRatio(): number;
|
|
20
|
-
static _checkWebpSupported(): AssetPromise<boolean>;
|
|
21
|
-
/**
|
|
22
|
-
* Checks whether the system supports the given texture format.
|
|
23
|
-
* @param format - The texture format
|
|
24
|
-
* @returns Whether support the texture format
|
|
25
|
-
*/
|
|
26
|
-
static supportsTextureFormat(engine: Engine, format: TextureFormat): boolean;
|
|
27
|
-
}
|