@galacean/engine-core 1.6.8 → 1.6.9
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/dist/main.js +37541 -0
- package/dist/main.js.map +1 -0
- package/dist/module.js +37259 -0
- package/dist/module.js.map +1 -0
- package/package.json +3 -3
- package/types/2d/assembler/ISpriteAssembler.d.ts +11 -0
- package/types/2d/assembler/ISpriteRenderer.d.ts +16 -0
- package/types/2d/assembler/SimpleSpriteAssembler.d.ts +13 -0
- package/types/2d/assembler/SlicedSpriteAssembler.d.ts +15 -0
- package/types/2d/assembler/TiledSpriteAssembler.d.ts +17 -0
- package/types/2d/atlas/FontAtlas.d.ts +1 -0
- package/types/2d/atlas/SpriteAtlas.d.ts +32 -0
- package/types/2d/atlas/types.d.ts +69 -0
- package/types/2d/enums/FontStyle.d.ts +11 -0
- package/types/2d/enums/SpriteDrawMode.d.ts +11 -0
- package/types/2d/enums/SpriteMaskInteraction.d.ts +11 -0
- package/types/2d/enums/SpriteModifyFlags.d.ts +23 -0
- package/types/2d/enums/SpriteTileMode.d.ts +11 -0
- package/types/2d/enums/TextAlignment.d.ts +22 -0
- package/types/2d/enums/TextOverflow.d.ts +9 -0
- package/types/2d/index.d.ts +16 -0
- package/types/2d/sprite/Sprite.d.ts +106 -0
- package/types/2d/sprite/SpriteMask.d.ts +70 -0
- package/types/2d/sprite/SpriteRenderer.d.ts +95 -0
- package/types/2d/sprite/index.d.ts +3 -0
- package/types/2d/text/CharInfo.d.ts +1 -0
- package/types/2d/text/CharRenderInfo.d.ts +1 -0
- package/types/2d/text/Font.d.ts +21 -0
- package/types/2d/text/ITextRenderer.d.ts +8 -0
- package/types/2d/text/SubFont.d.ts +1 -0
- package/types/2d/text/TextRenderer.d.ts +122 -0
- package/types/2d/text/TextUtils.d.ts +1 -0
- package/types/2d/text/index.d.ts +5 -0
- package/types/Background.d.ts +53 -0
- package/types/BasicResources.d.ts +2 -0
- package/types/BoolUpdateFlag.d.ts +12 -0
- package/types/Camera.d.ts +321 -0
- package/types/Canvas.d.ts +19 -0
- package/types/Component.d.ts +27 -0
- package/types/ComponentsDependencies.d.ts +22 -0
- package/types/ComponentsManager.d.ts +52 -0
- package/types/Engine.d.ts +150 -0
- package/types/EngineSettings.d.ts +5 -0
- package/types/Entity.d.ts +170 -0
- package/types/Layer.d.ts +73 -0
- package/types/Platform.d.ts +15 -0
- package/types/Polyfill.d.ts +1 -0
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +55 -0
- package/types/RenderPipeline/BatchUtils.d.ts +1 -0
- package/types/RenderPipeline/BatcherManager.d.ts +1 -0
- package/types/RenderPipeline/Blitter.d.ts +28 -0
- package/types/RenderPipeline/CullingResults.d.ts +1 -0
- package/types/RenderPipeline/DepthOnlyPass.d.ts +1 -0
- package/types/RenderPipeline/MaskManager.d.ts +1 -0
- package/types/RenderPipeline/OpaqueTexturePass.d.ts +1 -0
- package/types/RenderPipeline/PipelinePass.d.ts +16 -0
- package/types/RenderPipeline/PipelineUtils.d.ts +1 -0
- package/types/RenderPipeline/PrimitiveChunk.d.ts +1 -0
- package/types/RenderPipeline/PrimitiveChunkManager.d.ts +1 -0
- package/types/RenderPipeline/RenderContext.d.ts +1 -0
- package/types/RenderPipeline/RenderElement.d.ts +12 -0
- package/types/RenderPipeline/RenderQueue.d.ts +1 -0
- package/types/RenderPipeline/SubPrimitiveChunk.d.ts +1 -0
- package/types/RenderPipeline/SubRenderElement.d.ts +22 -0
- package/types/RenderPipeline/VertexArea.d.ts +1 -0
- package/types/RenderPipeline/enums/PipelineStage.d.ts +11 -0
- package/types/RenderPipeline/enums/RenderQueueMaskType.d.ts +1 -0
- package/types/RenderPipeline/index.d.ts +5 -0
- package/types/Renderer.d.ts +135 -0
- package/types/Scene.d.ts +183 -0
- package/types/SceneManager.d.ts +51 -0
- package/types/Script.d.ts +144 -0
- package/types/SystemInfo.d.ts +27 -0
- package/types/Transform.d.ts +304 -0
- package/types/UpdateFlag.d.ts +20 -0
- package/types/UpdateFlagManager.d.ts +1 -0
- package/types/Utils.d.ts +37 -0
- package/types/VirtualCamera.d.ts +1 -0
- package/types/animation/AnimationClip.d.ts +87 -0
- package/types/animation/AnimationClipCurveBinding.d.ts +30 -0
- package/types/animation/AnimationEvent.d.ts +11 -0
- package/types/animation/Animator.d.ts +154 -0
- package/types/animation/AnimatorCondition.d.ts +13 -0
- package/types/animation/AnimatorController.d.ts +72 -0
- package/types/animation/AnimatorControllerLayer.d.ts +21 -0
- package/types/animation/AnimatorControllerParameter.d.ts +14 -0
- package/types/animation/AnimatorLayerMask.d.ts +45 -0
- package/types/animation/AnimatorState.d.ts +69 -0
- package/types/animation/AnimatorStateMachine.d.ts +85 -0
- package/types/animation/AnimatorStateTransition.d.ts +59 -0
- package/types/animation/AnimatorStateTransitionCollection.d.ts +1 -0
- package/types/animation/Keyframe.d.ts +20 -0
- package/types/animation/LayerPathMask.d.ts +16 -0
- package/types/animation/StateMachineScript.d.ts +32 -0
- package/types/animation/animationCurve/AnimationArrayCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationBoolCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationColorCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationCurve.d.ts +39 -0
- package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +11 -0
- package/types/animation/animationCurve/AnimationFloatCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationRectCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationRefCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationStringCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationVector2Curve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector3Curve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector4Curve.d.ts +8 -0
- package/types/animation/animationCurve/index.d.ts +13 -0
- package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +1 -0
- package/types/animation/enums/AnimatorConditionMode.d.ts +17 -0
- package/types/animation/enums/AnimatorCullingMode.d.ts +9 -0
- package/types/animation/enums/AnimatorLayerBlendingMode.d.ts +4 -0
- package/types/animation/enums/AnimatorStatePlayState.d.ts +1 -0
- package/types/animation/enums/InterpolationType.d.ts +13 -0
- package/types/animation/enums/LayerState.d.ts +15 -0
- package/types/animation/enums/PlayState.d.ts +13 -0
- package/types/animation/enums/WrapMode.d.ts +9 -0
- package/types/animation/index.d.ts +25 -0
- package/types/animation/internal/AnimationCurveLayerOwner.d.ts +1 -0
- package/types/animation/internal/AnimationEventHandler.d.ts +1 -0
- package/types/animation/internal/AnimatorLayerData.d.ts +1 -0
- package/types/animation/internal/AnimatorStateData.d.ts +1 -0
- package/types/animation/internal/AnimatorStatePlayData.d.ts +1 -0
- package/types/animation/internal/AnimatorTempValue.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +5 -0
- package/types/animation/internal/animationCurveOwner/assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/assembler/IAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/assembler/PositionAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/assembler/RotationAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/assembler/ScaleAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/assembler/UniversalAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/asset/AssetPromise.d.ts +88 -0
- package/types/asset/AssetType.d.ts +66 -0
- package/types/asset/ContentRestorer.d.ts +17 -0
- package/types/asset/GraphicsResource.d.ts +9 -0
- package/types/asset/IReferable.d.ts +2 -0
- package/types/asset/LoadItem.d.ts +40 -0
- package/types/asset/Loader.d.ts +37 -0
- package/types/asset/ReferResource.d.ts +23 -0
- package/types/asset/ResourceManager.d.ts +121 -0
- package/types/asset/request.d.ts +36 -0
- package/types/audio/AudioClip.d.ts +24 -0
- package/types/audio/AudioManager.d.ts +1 -0
- package/types/audio/AudioSource.d.ts +72 -0
- package/types/audio/index.d.ts +3 -0
- package/types/base/Constant.d.ts +116 -0
- package/types/base/EngineObject.d.ts +25 -0
- package/types/base/EventDispatcher.d.ts +66 -0
- package/types/base/Logger.d.ts +11 -0
- package/types/base/StaticInterfaceImplement.d.ts +5 -0
- package/types/base/Time.d.ts +44 -0
- package/types/base/index.d.ts +5 -0
- package/types/clone/CloneManager.d.ts +31 -0
- package/types/clone/ComponentCloner.d.ts +17 -0
- package/types/clone/enums/CloneMode.d.ts +13 -0
- package/types/enums/ActiveChangeFlag.d.ts +6 -0
- package/types/enums/AntiAliasing.d.ts +7 -0
- package/types/enums/BackgroundMode.d.ts +9 -0
- package/types/enums/BackgroundTextureFillMode.d.ts +8 -0
- package/types/enums/CameraClearFlags.d.ts +13 -0
- package/types/enums/CameraModifyFlags.d.ts +17 -0
- package/types/enums/CameraType.d.ts +1 -0
- package/types/enums/DepthTextureMode.d.ts +7 -0
- package/types/enums/Downsampling.d.ts +11 -0
- package/types/enums/EntityModifyFlags.d.ts +9 -0
- package/types/enums/FogMode.d.ts +13 -0
- package/types/enums/MSAASamples.d.ts +13 -0
- package/types/enums/ReplacementFailureStrategy.d.ts +9 -0
- package/types/enums/SpriteMaskLayer.d.ts +73 -0
- package/types/env-probe/CubeProbe.d.ts +27 -0
- package/types/env-probe/Probe.d.ts +52 -0
- package/types/env-probe/index.d.ts +2 -0
- package/types/graphic/Buffer.d.ts +114 -0
- package/types/graphic/BufferUtil.d.ts +12 -0
- package/types/graphic/IndexBufferBinding.d.ts +21 -0
- package/types/graphic/Mesh.d.ts +58 -0
- package/types/graphic/Primitive.d.ts +1 -0
- package/types/graphic/SubMesh.d.ts +8 -0
- package/types/graphic/SubPrimitive.d.ts +19 -0
- package/types/graphic/VertexBufferBinding.d.ts +20 -0
- package/types/graphic/VertexElement.d.ts +48 -0
- package/types/graphic/enums/BufferBindFlag.d.ts +9 -0
- package/types/graphic/enums/BufferUsage.d.ts +11 -0
- package/types/graphic/enums/IndexFormat.d.ts +11 -0
- package/types/graphic/enums/MeshTopology.d.ts +19 -0
- package/types/graphic/enums/SetDataOptions.d.ts +9 -0
- package/types/graphic/enums/VertexElementFormat.d.ts +37 -0
- package/types/graphic/index.d.ts +15 -0
- package/types/index.d.ts +68 -0
- package/types/input/InputManager.d.ts +65 -0
- package/types/input/enums/Keys.d.ts +398 -0
- package/types/input/enums/PointerButton.d.ts +33 -0
- package/types/input/enums/PointerPhase.d.ts +15 -0
- package/types/input/index.d.ts +8 -0
- package/types/input/interface/IInput.d.ts +10 -0
- package/types/input/keyboard/KeyboardManager.d.ts +1 -0
- package/types/input/pointer/Pointer.d.ts +31 -0
- package/types/input/pointer/PointerEventData.d.ts +12 -0
- package/types/input/pointer/PointerManager.d.ts +9 -0
- package/types/input/pointer/emitter/IHitResult.d.ts +1 -0
- package/types/input/pointer/emitter/PhysicsPointerEventEmitter.d.ts +1 -0
- package/types/input/pointer/emitter/PointerEventEmitter.d.ts +30 -0
- package/types/input/wheel/WheelManager.d.ts +1 -0
- package/types/lighting/AmbientLight.d.ts +70 -0
- package/types/lighting/DirectLight.d.ts +32 -0
- package/types/lighting/KHR_lights.d.ts +4 -0
- package/types/lighting/Light.d.ts +45 -0
- package/types/lighting/LightManager.d.ts +12 -0
- package/types/lighting/PointLight.d.ts +26 -0
- package/types/lighting/SpotLight.d.ts +45 -0
- package/types/lighting/ambientOcclusion/AmbientOcclusion.d.ts +79 -0
- package/types/lighting/ambientOcclusion/ScalableAmbientObscurancePass.d.ts +1 -0
- package/types/lighting/ambientOcclusion/index.d.ts +2 -0
- package/types/lighting/enums/AmbientOcclusionQuality.d.ts +11 -0
- package/types/lighting/enums/DiffuseMode.d.ts +13 -0
- package/types/lighting/index.d.ts +7 -0
- package/types/material/BaseMaterial.d.ts +88 -0
- package/types/material/BlinnPhongMaterial.d.ts +68 -0
- package/types/material/Material.d.ts +52 -0
- package/types/material/PBRMaterial.d.ts +311 -0
- package/types/material/UnlitMaterial.d.ts +33 -0
- package/types/material/enums/BlendMode.d.ts +9 -0
- package/types/material/enums/Refraction.d.ts +9 -0
- package/types/material/enums/RenderFace.d.ts +11 -0
- package/types/material/enums/TextureCoordinate.d.ts +13 -0
- package/types/material/index.d.ts +9 -0
- package/types/material/utils/PrefilteredDFG.d.ts +7 -0
- package/types/mesh/BlendShape.d.ts +39 -0
- package/types/mesh/BlendShapeFrame.d.ts +44 -0
- package/types/mesh/BlendShapeManager.d.ts +1 -0
- package/types/mesh/BufferMesh.d.ts +59 -0
- package/types/mesh/MeshRenderer.d.ts +25 -0
- package/types/mesh/ModelMesh.d.ts +254 -0
- package/types/mesh/PrimitiveMesh.d.ts +112 -0
- package/types/mesh/PrimitiveMeshRestorer.d.ts +1 -0
- package/types/mesh/Skin.d.ts +35 -0
- package/types/mesh/SkinnedMeshRenderer.d.ts +50 -0
- package/types/mesh/enums/VertexAttribute.d.ts +33 -0
- package/types/mesh/index.d.ts +9 -0
- package/types/particle/ParticleBufferUtils.d.ts +1 -0
- package/types/particle/ParticleGenerator.d.ts +94 -0
- package/types/particle/ParticleMaterial.d.ts +38 -0
- package/types/particle/ParticleRenderer.d.ts +47 -0
- package/types/particle/enums/ParticleCurveMode.d.ts +9 -0
- package/types/particle/enums/ParticleGradientMode.d.ts +9 -0
- package/types/particle/enums/ParticleRandomSubSeeds.d.ts +1 -0
- package/types/particle/enums/ParticleRenderMode.d.ts +17 -0
- package/types/particle/enums/ParticleScaleMode.d.ts +11 -0
- package/types/particle/enums/ParticleSimulationSpace.d.ts +9 -0
- package/types/particle/enums/ParticleStopMode.d.ts +6 -0
- package/types/particle/enums/attributes/BillboardParticleVertexAttribute.d.ts +1 -0
- package/types/particle/enums/attributes/MeshParticleVertexAttribute.d.ts +5 -0
- package/types/particle/enums/attributes/ParticleInstanceVertexAttribute.d.ts +1 -0
- package/types/particle/index.d.ts +22 -0
- package/types/particle/modules/Burst.d.ts +14 -0
- package/types/particle/modules/ColorOverLifetimeModule.d.ts +20 -0
- package/types/particle/modules/EmissionModule.d.ts +48 -0
- package/types/particle/modules/ForceOverLifetimeModule.d.ts +51 -0
- package/types/particle/modules/MainModule.d.ts +104 -0
- package/types/particle/modules/ParticleCompositeCurve.d.ts +81 -0
- package/types/particle/modules/ParticleCompositeGradient.d.ts +55 -0
- package/types/particle/modules/ParticleCurve.d.ts +63 -0
- package/types/particle/modules/ParticleGeneratorModule.d.ts +17 -0
- package/types/particle/modules/ParticleGradient.d.ts +114 -0
- package/types/particle/modules/RotationOverLifetimeModule.d.ts +34 -0
- package/types/particle/modules/SizeOverLifetimeModule.d.ts +52 -0
- package/types/particle/modules/TextureSheetAnimationModule.d.ts +39 -0
- package/types/particle/modules/VelocityOverLifetimeModule.d.ts +54 -0
- package/types/particle/modules/shape/BaseShape.d.ts +22 -0
- package/types/particle/modules/shape/BoxShape.d.ts +17 -0
- package/types/particle/modules/shape/CircleShape.d.ts +35 -0
- package/types/particle/modules/shape/ConeShape.d.ts +45 -0
- package/types/particle/modules/shape/HemisphereShape.d.ts +14 -0
- package/types/particle/modules/shape/MeshShape.d.ts +21 -0
- package/types/particle/modules/shape/ShapeUtils.d.ts +1 -0
- package/types/particle/modules/shape/SphereShape.d.ts +14 -0
- package/types/particle/modules/shape/enums/ParticleShapeArcMode.d.ts +9 -0
- package/types/particle/modules/shape/enums/ParticleShapeType.d.ts +17 -0
- package/types/particle/modules/shape/index.d.ts +8 -0
- package/types/physics/CharacterController.d.ts +51 -0
- package/types/physics/Collider.d.ts +43 -0
- package/types/physics/Collision.d.ts +22 -0
- package/types/physics/ContactPoint.d.ts +14 -0
- package/types/physics/DynamicCollider.d.ts +192 -0
- package/types/physics/HitResult.d.ts +18 -0
- package/types/physics/PhysicsMaterial.d.ts +42 -0
- package/types/physics/PhysicsScene.d.ts +276 -0
- package/types/physics/StaticCollider.d.ts +7 -0
- package/types/physics/enums/ColliderShapeChangeFlag.d.ts +1 -0
- package/types/physics/enums/ColliderShapeUpAxis.d.ts +11 -0
- package/types/physics/enums/ControllerCollisionFlag.d.ts +11 -0
- package/types/physics/enums/ControllerNonWalkableMode.d.ts +9 -0
- package/types/physics/enums/HingeJointFlag.d.ts +1 -0
- package/types/physics/enums/PhysicsMaterialCombineMode.d.ts +13 -0
- package/types/physics/enums/index.d.ts +4 -0
- package/types/physics/index.d.ts +12 -0
- package/types/physics/joint/FixedJoint.d.ts +4 -0
- package/types/physics/joint/HingeJoint.d.ts +61 -0
- package/types/physics/joint/Joint.d.ts +81 -0
- package/types/physics/joint/JointLimits.d.ts +39 -0
- package/types/physics/joint/JointMotor.d.ts +32 -0
- package/types/physics/joint/SpringJoint.d.ts +38 -0
- package/types/physics/joint/index.d.ts +6 -0
- package/types/physics/shape/BoxColliderShape.d.ts +16 -0
- package/types/physics/shape/CapsuleColliderShape.d.ts +27 -0
- package/types/physics/shape/ColliderShape.d.ts +61 -0
- package/types/physics/shape/PlaneColliderShape.d.ts +9 -0
- package/types/physics/shape/SphereColliderShape.d.ts +14 -0
- package/types/physics/shape/index.d.ts +5 -0
- package/types/postProcess/FinalPass.d.ts +1 -0
- package/types/postProcess/PostProcess.d.ts +64 -0
- package/types/postProcess/PostProcessEffect.d.ts +26 -0
- package/types/postProcess/PostProcessEffectParameter.d.ts +119 -0
- package/types/postProcess/PostProcessManager.d.ts +38 -0
- package/types/postProcess/PostProcessPass.d.ts +50 -0
- package/types/postProcess/PostProcessUberPass.d.ts +25 -0
- package/types/postProcess/effects/BloomEffect.d.ts +50 -0
- package/types/postProcess/effects/TonemappingEffect.d.ts +25 -0
- package/types/postProcess/effects/index.d.ts +2 -0
- package/types/postProcess/index.d.ts +8 -0
- package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +7 -0
- package/types/renderingHardwareInterface/IPlatformRenderTarget.d.ts +20 -0
- package/types/renderingHardwareInterface/IPlatformTexture.d.ts +36 -0
- package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +37 -0
- package/types/renderingHardwareInterface/IPlatformTexture2DArray.d.ts +40 -0
- package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +41 -0
- package/types/renderingHardwareInterface/index.d.ts +6 -0
- package/types/shader/Shader.d.ts +119 -0
- package/types/shader/ShaderData.d.ts +350 -0
- package/types/shader/ShaderMacro.d.ts +26 -0
- package/types/shader/ShaderMacroCollection.d.ts +1 -0
- package/types/shader/ShaderPart.d.ts +46 -0
- package/types/shader/ShaderPass.d.ts +25 -0
- package/types/shader/ShaderPool.d.ts +1 -0
- package/types/shader/ShaderProgram.d.ts +1 -0
- package/types/shader/ShaderProgramPool.d.ts +1 -0
- package/types/shader/ShaderProperty.d.ts +20 -0
- package/types/shader/ShaderTagKey.d.ts +16 -0
- package/types/shader/ShaderUniform.d.ts +1 -0
- package/types/shader/ShaderUniformBlock.d.ts +1 -0
- package/types/shader/SubShader.d.ts +18 -0
- package/types/shader/enums/BlendFactor.d.ts +32 -0
- package/types/shader/enums/BlendOperation.d.ts +16 -0
- package/types/shader/enums/ColorWriteMask.d.ts +18 -0
- package/types/shader/enums/CompareFunction.d.ts +22 -0
- package/types/shader/enums/CullMode.d.ts +12 -0
- package/types/shader/enums/RenderQueueType.d.ts +11 -0
- package/types/shader/enums/RenderStateElementKey.d.ts +60 -0
- package/types/shader/enums/ShaderDataGroup.d.ts +15 -0
- package/types/shader/enums/ShaderLanguage.d.ts +9 -0
- package/types/shader/enums/ShaderPropertyType.d.ts +27 -0
- package/types/shader/enums/StencilOperation.d.ts +22 -0
- package/types/shader/index.d.ts +19 -0
- package/types/shader/state/BlendState.d.ts +16 -0
- package/types/shader/state/DepthState.d.ts +14 -0
- package/types/shader/state/RasterState.d.ts +13 -0
- package/types/shader/state/RenderState.d.ts +21 -0
- package/types/shader/state/RenderTargetBlendState.d.ts +24 -0
- package/types/shader/state/StencilState.d.ts +34 -0
- package/types/shader/state/index.d.ts +6 -0
- package/types/shaderlib/ShaderFactory.d.ts +20 -0
- package/types/shaderlib/ShaderLib.d.ts +73 -0
- package/types/shaderlib/index.d.ts +1 -0
- package/types/shaderlib/particle/index.d.ts +15 -0
- package/types/shaderlib/pbr/index.d.ts +11 -0
- package/types/shaderlib/shadow/index.d.ts +8 -0
- package/types/shadow/CascadedShadowCasterPass.d.ts +45 -0
- package/types/shadow/ShadowSliceData.d.ts +1 -0
- package/types/shadow/ShadowUtils.d.ts +1 -0
- package/types/shadow/enum/ShadowCascadesMode.d.ts +11 -0
- package/types/shadow/enum/ShadowResolution.d.ts +13 -0
- package/types/shadow/enum/ShadowType.d.ts +13 -0
- package/types/shadow/index.d.ts +3 -0
- package/types/sky/Sky.d.ts +22 -0
- package/types/sky/SkyBoxMaterial.d.ts +43 -0
- package/types/sky/SkyProceduralMaterial.d.ts +72 -0
- package/types/sky/index.d.ts +3 -0
- package/types/texture/RenderTarget.d.ts +91 -0
- package/types/texture/Texture.d.ts +87 -0
- package/types/texture/Texture2D.d.ts +71 -0
- package/types/texture/Texture2DArray.d.ts +82 -0
- package/types/texture/TextureCube.d.ts +71 -0
- package/types/texture/TextureUtils.d.ts +1 -0
- package/types/texture/enums/RenderBufferDepthFormat.d.ts +23 -0
- package/types/texture/enums/TextureCubeFace.d.ts +17 -0
- package/types/texture/enums/TextureDepthCompareFunction.d.ts +21 -0
- package/types/texture/enums/TextureFilterMode.d.ts +11 -0
- package/types/texture/enums/TextureFormat.d.ts +87 -0
- package/types/texture/enums/TextureUsage.d.ts +9 -0
- package/types/texture/enums/TextureWrapMode.d.ts +11 -0
- package/types/texture/index.d.ts +13 -0
- package/types/trail/TrailMaterial.d.ts +5 -0
- package/types/trail/TrailRenderer.d.ts +35 -0
- package/types/trail/index.d.ts +2 -0
- package/types/ui/IUICanvas.d.ts +1 -0
- package/types/ui/UIUtils.d.ts +12 -0
- package/types/utils/ClearableObjectPool.d.ts +16 -0
- package/types/utils/DisorderedArray.d.ts +70 -0
- package/types/utils/ObjectPool.d.ts +16 -0
- package/types/utils/ReturnableObjectPool.d.ts +16 -0
- package/types/utils/SafeLoopArray.d.ts +46 -0
- package/types/utils/index.d.ts +4 -0
- package/types/xr/XRManager.d.ts +5 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { AnimatorControllerParameter, AnimatorControllerParameterValue } from "./AnimatorControllerParameter";
|
|
2
|
+
import { AnimatorControllerLayer } from "./AnimatorControllerLayer";
|
|
3
|
+
import { ReferResource } from "../asset/ReferResource";
|
|
4
|
+
import { Engine } from "../Engine";
|
|
5
|
+
/**
|
|
6
|
+
* Store the data for Animator playback.
|
|
7
|
+
*/
|
|
8
|
+
export declare class AnimatorController extends ReferResource {
|
|
9
|
+
private _updateFlagManager;
|
|
10
|
+
/**
|
|
11
|
+
* The layers in the controller.
|
|
12
|
+
*/
|
|
13
|
+
get layers(): Readonly<AnimatorControllerLayer[]>;
|
|
14
|
+
/**
|
|
15
|
+
* The parameters in the controller.
|
|
16
|
+
*/
|
|
17
|
+
get parameters(): Readonly<AnimatorControllerParameter[]>;
|
|
18
|
+
/**
|
|
19
|
+
* Create an AnimatorController.
|
|
20
|
+
* @param engine - Engine to which the animatorController belongs
|
|
21
|
+
*/
|
|
22
|
+
constructor(engine: Engine);
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated
|
|
25
|
+
*/
|
|
26
|
+
constructor();
|
|
27
|
+
/**
|
|
28
|
+
* Add a parameter to the controller.
|
|
29
|
+
* @param name - The name of the parameter
|
|
30
|
+
* @param defaultValue - The default value of the parameter
|
|
31
|
+
*/
|
|
32
|
+
addParameter(name: string, defaultValue?: AnimatorControllerParameterValue): AnimatorControllerParameter;
|
|
33
|
+
/**
|
|
34
|
+
* Add a trigger parameter to the controller.
|
|
35
|
+
* @param name - The name of the parameter
|
|
36
|
+
*/
|
|
37
|
+
addTriggerParameter(name: string): AnimatorControllerParameter;
|
|
38
|
+
/**
|
|
39
|
+
* Remove a parameter from the controller by name, including trigger parameters.
|
|
40
|
+
* @param name - The name of the parameter
|
|
41
|
+
*/
|
|
42
|
+
removeParameter(name: string): void;
|
|
43
|
+
/**
|
|
44
|
+
* Clear all parameters, including trigger parameters.
|
|
45
|
+
*/
|
|
46
|
+
clearParameters(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Get the parameter by name.
|
|
49
|
+
* @param name - The name of the parameter
|
|
50
|
+
*/
|
|
51
|
+
getParameter(name: string): AnimatorControllerParameter;
|
|
52
|
+
/**
|
|
53
|
+
* Get the layer by name.
|
|
54
|
+
* @param name - The layer's name.
|
|
55
|
+
*/
|
|
56
|
+
findLayerByName(name: string): AnimatorControllerLayer;
|
|
57
|
+
/**
|
|
58
|
+
* Add a layer to the controller.
|
|
59
|
+
* @param layer - The layer to add
|
|
60
|
+
*/
|
|
61
|
+
addLayer(layer: AnimatorControllerLayer): void;
|
|
62
|
+
/**
|
|
63
|
+
* Remove a layer from the controller.
|
|
64
|
+
* @param layerIndex - The index of the AnimatorLayer
|
|
65
|
+
*/
|
|
66
|
+
removeLayer(layerIndex: number): void;
|
|
67
|
+
/**
|
|
68
|
+
* Clear layers.
|
|
69
|
+
*/
|
|
70
|
+
clearLayers(): void;
|
|
71
|
+
private _addParameter;
|
|
72
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AnimatorStateMachine } from "./AnimatorStateMachine";
|
|
2
|
+
import { AnimatorLayerBlendingMode } from "./enums/AnimatorLayerBlendingMode";
|
|
3
|
+
import { AnimatorLayerMask } from "./AnimatorLayerMask";
|
|
4
|
+
/**
|
|
5
|
+
* The Animation Layer contains a state machine that controls animations of a model or part of it.
|
|
6
|
+
*/
|
|
7
|
+
export declare class AnimatorControllerLayer {
|
|
8
|
+
readonly name: string;
|
|
9
|
+
/** The blending weight that the layers has. It is not taken into account for the first layer. */
|
|
10
|
+
weight: number;
|
|
11
|
+
/** The blending mode used by the layer. It is not taken into account for the first layer. */
|
|
12
|
+
blendingMode: AnimatorLayerBlendingMode;
|
|
13
|
+
/** The state machine for the layer. */
|
|
14
|
+
stateMachine: AnimatorStateMachine;
|
|
15
|
+
/** The AnimatorLayerMask is used to mask out certain entities from being animated by an AnimatorLayer. */
|
|
16
|
+
mask: AnimatorLayerMask;
|
|
17
|
+
/**
|
|
18
|
+
* @param name - The layer's name
|
|
19
|
+
*/
|
|
20
|
+
constructor(name: string);
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type AnimatorControllerParameterValue = number | string | boolean;
|
|
2
|
+
/**
|
|
3
|
+
* Used to communicate between scripting and the controller, parameters can be set in scripting and used by the controller.
|
|
4
|
+
*/
|
|
5
|
+
export declare class AnimatorControllerParameter {
|
|
6
|
+
/** The default value of the parameter. */
|
|
7
|
+
defaultValue: AnimatorControllerParameterValue;
|
|
8
|
+
private _name;
|
|
9
|
+
/**
|
|
10
|
+
* The name of the parameter.
|
|
11
|
+
*/
|
|
12
|
+
get name(): string;
|
|
13
|
+
set name(name: string);
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Entity } from "../Entity";
|
|
2
|
+
import { LayerPathMask } from "./LayerPathMask";
|
|
3
|
+
/**
|
|
4
|
+
* AnimatorLayerMask is used to mask out certain entities from being animated by an AnimatorLayer.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AnimatorLayerMask {
|
|
7
|
+
/**
|
|
8
|
+
* Creates an AnimatorLayerMask instance by specifying an entity.
|
|
9
|
+
* This will automatically add path masks for the entity and all its children.
|
|
10
|
+
* @param entity - The root entity to create path masks for
|
|
11
|
+
*/
|
|
12
|
+
static createByEntity(entity: Entity): AnimatorLayerMask;
|
|
13
|
+
private static _addPathMaskWithChildren;
|
|
14
|
+
private _pathMasks;
|
|
15
|
+
private _pathMaskMap;
|
|
16
|
+
/**
|
|
17
|
+
* The list of path masks.
|
|
18
|
+
*/
|
|
19
|
+
get pathMasks(): Readonly<LayerPathMask[]>;
|
|
20
|
+
/**
|
|
21
|
+
* Adds a path mask to the AnimatorLayerMask, the root path is "".
|
|
22
|
+
* @param path - The path to add a mask for
|
|
23
|
+
* @returns The created or existing LayerPathMask
|
|
24
|
+
*/
|
|
25
|
+
addPathMask(path: string): LayerPathMask;
|
|
26
|
+
/**
|
|
27
|
+
* Removes a path mask from the AnimatorLayerMask.
|
|
28
|
+
* @param path - The path of the mask to remove
|
|
29
|
+
*/
|
|
30
|
+
removePathMask(path: string): void;
|
|
31
|
+
/**
|
|
32
|
+
* Get a path mask based on the given path.
|
|
33
|
+
* @param path - The path of the mask to get
|
|
34
|
+
* @returns The LayerPathMask for the given path
|
|
35
|
+
*/
|
|
36
|
+
getPathMask(path: string): LayerPathMask;
|
|
37
|
+
/**
|
|
38
|
+
* Sets the active state of a path mask.
|
|
39
|
+
* If recursive is true, it also sets the active state of all child path masks.
|
|
40
|
+
* @param path - The path of the mask to modify
|
|
41
|
+
* @param active - The active state to set
|
|
42
|
+
* @param withChildren - Whether to apply the active state recursively to child paths
|
|
43
|
+
*/
|
|
44
|
+
setPathMaskActive(path: string, active: boolean, withChildren?: boolean): void;
|
|
45
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { AnimationClip } from "./AnimationClip";
|
|
2
|
+
import { AnimatorStateTransition } from "./AnimatorStateTransition";
|
|
3
|
+
import { WrapMode } from "./enums/WrapMode";
|
|
4
|
+
import { StateMachineScript } from "./StateMachineScript";
|
|
5
|
+
/**
|
|
6
|
+
* States are the basic building blocks of a state machine. Each state contains a AnimationClip which will play while the character is in that state.
|
|
7
|
+
*/
|
|
8
|
+
export declare class AnimatorState {
|
|
9
|
+
readonly name: string;
|
|
10
|
+
/** The speed of the clip. 1 is normal speed, default 1. */
|
|
11
|
+
speed: number;
|
|
12
|
+
/** The wrap mode used in the state. */
|
|
13
|
+
wrapMode: WrapMode;
|
|
14
|
+
private _clipStartTime;
|
|
15
|
+
private _clipEndTime;
|
|
16
|
+
private _clip;
|
|
17
|
+
/**
|
|
18
|
+
* The transitions that are going out of the state.
|
|
19
|
+
*/
|
|
20
|
+
get transitions(): Readonly<AnimatorStateTransition[]>;
|
|
21
|
+
/**
|
|
22
|
+
* The clip that is being played by this animator state.
|
|
23
|
+
*/
|
|
24
|
+
get clip(): AnimationClip;
|
|
25
|
+
set clip(clip: AnimationClip);
|
|
26
|
+
/**
|
|
27
|
+
* The normalized start time of the clip, the range is 0 to 1, default is 0.
|
|
28
|
+
*/
|
|
29
|
+
get clipStartTime(): number;
|
|
30
|
+
set clipStartTime(time: number);
|
|
31
|
+
/**
|
|
32
|
+
* The normalized end time of the clip, the range is 0 to 1, default is 1.
|
|
33
|
+
*/
|
|
34
|
+
get clipEndTime(): number;
|
|
35
|
+
set clipEndTime(time: number);
|
|
36
|
+
/**
|
|
37
|
+
* @param name - The state's name
|
|
38
|
+
*/
|
|
39
|
+
constructor(name: string);
|
|
40
|
+
/**
|
|
41
|
+
* Add an outgoing transition.
|
|
42
|
+
* @param transition - The transition
|
|
43
|
+
*/
|
|
44
|
+
addTransition(transition: AnimatorStateTransition): AnimatorStateTransition;
|
|
45
|
+
/**
|
|
46
|
+
* Add an outgoing transition to the destination state.
|
|
47
|
+
* @param animatorState - The destination state
|
|
48
|
+
*/
|
|
49
|
+
addTransition(animatorState: AnimatorState): AnimatorStateTransition;
|
|
50
|
+
/**
|
|
51
|
+
* Add an outgoing transition to exit of the stateMachine.
|
|
52
|
+
* @param exitTime - The time at which the transition can take effect. This is represented in normalized time.
|
|
53
|
+
*/
|
|
54
|
+
addExitTransition(exitTime?: number): AnimatorStateTransition;
|
|
55
|
+
/**
|
|
56
|
+
* Remove a transition from the state.
|
|
57
|
+
* @param transition - The transition
|
|
58
|
+
*/
|
|
59
|
+
removeTransition(transition: AnimatorStateTransition): void;
|
|
60
|
+
/**
|
|
61
|
+
* Adds a state machine script class of type T to the AnimatorState.
|
|
62
|
+
* @param scriptType - The state machine script class of type T
|
|
63
|
+
*/
|
|
64
|
+
addStateMachineScript<T extends StateMachineScript>(scriptType: new () => T): T;
|
|
65
|
+
/**
|
|
66
|
+
* Clears all transitions from the state.
|
|
67
|
+
*/
|
|
68
|
+
clearTransitions(): void;
|
|
69
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { AnimatorState } from "./AnimatorState";
|
|
2
|
+
import { AnimatorStateTransition } from "./AnimatorStateTransition";
|
|
3
|
+
export interface AnimatorStateMap {
|
|
4
|
+
[key: string]: AnimatorState;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A graph controlling the interaction of states. Each state references a motion.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AnimatorStateMachine {
|
|
10
|
+
/** The list of states. */
|
|
11
|
+
readonly states: AnimatorState[];
|
|
12
|
+
/**
|
|
13
|
+
* The state will be played automatically.
|
|
14
|
+
* @remarks When the Animator's AnimatorController changed or the Animator's onEnable be triggered.
|
|
15
|
+
*/
|
|
16
|
+
defaultState: AnimatorState;
|
|
17
|
+
private _statesMap;
|
|
18
|
+
/**
|
|
19
|
+
* The list of entry transitions in the state machine.
|
|
20
|
+
*/
|
|
21
|
+
get entryTransitions(): Readonly<AnimatorStateTransition[]>;
|
|
22
|
+
/**
|
|
23
|
+
* The list of AnyState transitions.
|
|
24
|
+
*/
|
|
25
|
+
get anyStateTransitions(): Readonly<AnimatorStateTransition[]>;
|
|
26
|
+
/**
|
|
27
|
+
* Add a state to the state machine.
|
|
28
|
+
* @param name - The name of the new state
|
|
29
|
+
*/
|
|
30
|
+
addState(name: string): AnimatorState;
|
|
31
|
+
/**
|
|
32
|
+
* Remove a state from the state machine.
|
|
33
|
+
* @param state - The state
|
|
34
|
+
*/
|
|
35
|
+
removeState(state: AnimatorState): void;
|
|
36
|
+
/**
|
|
37
|
+
* Get the state by name.
|
|
38
|
+
* @param name - The layer's name
|
|
39
|
+
*/
|
|
40
|
+
findStateByName(name: string): AnimatorState;
|
|
41
|
+
/**
|
|
42
|
+
* Makes a unique state name in the state machine.
|
|
43
|
+
* @param name - Desired name for the state.
|
|
44
|
+
* @returns Unique name.
|
|
45
|
+
*/
|
|
46
|
+
makeUniqueStateName(name: string): string;
|
|
47
|
+
/**
|
|
48
|
+
* Add an entry transition.
|
|
49
|
+
* @param transition - The transition
|
|
50
|
+
*/
|
|
51
|
+
addEntryStateTransition(transition: AnimatorStateTransition): AnimatorStateTransition;
|
|
52
|
+
/**
|
|
53
|
+
* Add an entry transition to the destination state, the default value of entry transition's hasExitTime is false.
|
|
54
|
+
* @param animatorState - The destination state
|
|
55
|
+
*/
|
|
56
|
+
addEntryStateTransition(animatorState: AnimatorState): AnimatorStateTransition;
|
|
57
|
+
/**
|
|
58
|
+
* Remove an entry transition.
|
|
59
|
+
* @param transition - The transition
|
|
60
|
+
*/
|
|
61
|
+
removeEntryStateTransition(transition: AnimatorStateTransition): void;
|
|
62
|
+
/**
|
|
63
|
+
* Add an any transition.
|
|
64
|
+
* @param transition - The transition
|
|
65
|
+
*/
|
|
66
|
+
addAnyStateTransition(transition: AnimatorStateTransition): AnimatorStateTransition;
|
|
67
|
+
/**
|
|
68
|
+
* Add an any transition to the destination state, the default value of any transition's hasExitTime is false.
|
|
69
|
+
* @param animatorState - The destination state
|
|
70
|
+
*/
|
|
71
|
+
addAnyStateTransition(animatorState: AnimatorState): AnimatorStateTransition;
|
|
72
|
+
/**
|
|
73
|
+
* Remove an any transition.
|
|
74
|
+
* @param transition - The transition
|
|
75
|
+
*/
|
|
76
|
+
removeAnyStateTransition(transition: AnimatorStateTransition): void;
|
|
77
|
+
/**
|
|
78
|
+
* Clear all entry state transitions.
|
|
79
|
+
*/
|
|
80
|
+
clearEntryStateTransitions(): void;
|
|
81
|
+
/**
|
|
82
|
+
* Clear all any state transitions.
|
|
83
|
+
*/
|
|
84
|
+
clearAnyStateTransitions(): void;
|
|
85
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AnimatorCondition } from "./AnimatorCondition";
|
|
2
|
+
import { AnimatorControllerParameterValue } from "./AnimatorControllerParameter";
|
|
3
|
+
import { AnimatorState } from "./AnimatorState";
|
|
4
|
+
import { AnimatorConditionMode } from "./enums/AnimatorConditionMode";
|
|
5
|
+
/**
|
|
6
|
+
* Transitions define when and how the state machine switch from on state to another. AnimatorTransition always originate from a StateMachine or a StateMachine entry.
|
|
7
|
+
*/
|
|
8
|
+
export declare class AnimatorStateTransition {
|
|
9
|
+
/** The duration of the transition. The duration is in normalized time by default. To set it to be in seconds, set isFixedDuration to true. */
|
|
10
|
+
duration: number;
|
|
11
|
+
/** The time at which the destination state will start. This is represented in normalized time. */
|
|
12
|
+
offset: number;
|
|
13
|
+
/** ExitTime represents the exact time at which the transition can take effect. This is represented in normalized time. */
|
|
14
|
+
exitTime: number;
|
|
15
|
+
/** The destination state of the transition. */
|
|
16
|
+
destinationState: AnimatorState;
|
|
17
|
+
/** Mutes the transition. The transition will never occur. */
|
|
18
|
+
mute: boolean;
|
|
19
|
+
/** Determines whether the duration of the transition is reported in a fixed duration in seconds or as a normalized time. */
|
|
20
|
+
isFixedDuration: boolean;
|
|
21
|
+
private _conditions;
|
|
22
|
+
private _solo;
|
|
23
|
+
private _hasExitTime;
|
|
24
|
+
/**
|
|
25
|
+
* Is the transition destination the exit of the current state machine.
|
|
26
|
+
*/
|
|
27
|
+
get isExit(): Readonly<boolean>;
|
|
28
|
+
/**
|
|
29
|
+
* Mutes all other transitions in the source state.
|
|
30
|
+
*/
|
|
31
|
+
get solo(): boolean;
|
|
32
|
+
set solo(value: boolean);
|
|
33
|
+
/**
|
|
34
|
+
* The conditions in the transition.
|
|
35
|
+
*/
|
|
36
|
+
get conditions(): Readonly<AnimatorCondition[]>;
|
|
37
|
+
/**
|
|
38
|
+
* When active the transition will have an exit time condition.
|
|
39
|
+
*/
|
|
40
|
+
get hasExitTime(): boolean;
|
|
41
|
+
set hasExitTime(value: boolean);
|
|
42
|
+
/**
|
|
43
|
+
* Add a condition to a transition.
|
|
44
|
+
* @param parameterName - The name of the parameter
|
|
45
|
+
* @param mode - The AnimatorCondition mode of the condition
|
|
46
|
+
* @param threshold - The threshold value of the condition
|
|
47
|
+
*/
|
|
48
|
+
addCondition(parameterName: string, mode?: AnimatorConditionMode, threshold?: AnimatorControllerParameterValue): AnimatorCondition;
|
|
49
|
+
/**
|
|
50
|
+
* Add a condition to a transition.
|
|
51
|
+
* @param animatorCondition - The condition to add
|
|
52
|
+
*/
|
|
53
|
+
addCondition(animatorCondition: AnimatorCondition): AnimatorCondition;
|
|
54
|
+
/**
|
|
55
|
+
* Remove a condition from the transition.
|
|
56
|
+
* @param condition - The condition to remove
|
|
57
|
+
*/
|
|
58
|
+
removeCondition(condition: AnimatorCondition): void;
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Color, Quaternion, Rect, Vector2, Vector3, Vector4 } from "@galacean/engine-math";
|
|
2
|
+
import { ReferResource } from "../asset/ReferResource";
|
|
3
|
+
/**
|
|
4
|
+
* Keyframe.
|
|
5
|
+
* @typeParam V - Type of Keyframe value
|
|
6
|
+
*/
|
|
7
|
+
export declare class Keyframe<V extends KeyframeValueType, T = V extends number ? number : V extends Vector2 ? Vector2 : V extends Vector3 ? Vector3 : V extends Vector4 | Color | Quaternion | Rect ? Vector4 : V extends number[] | Float32Array ? number[] : V extends ReferResource ? ReferResource : never> {
|
|
8
|
+
/** The time of the Keyframe. */
|
|
9
|
+
time: number;
|
|
10
|
+
/** The value of the Keyframe. */
|
|
11
|
+
value: V;
|
|
12
|
+
/** Sets the incoming tangent for this key. The incoming tangent affects the slope of the curve from the previous key to this key. */
|
|
13
|
+
inTangent?: T;
|
|
14
|
+
/** Sets the outgoing tangent for this key. The outgoing tangent affects the slope of the curve from this key to the next key. */
|
|
15
|
+
outTangent?: T;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Type of Keyframe value.
|
|
19
|
+
*/
|
|
20
|
+
export type KeyframeValueType = number | Vector2 | Vector3 | Vector4 | number[] | Float32Array | Quaternion | Color | Rect | string | boolean | ReferResource;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LayerPathMask represents a mask for a specific entity in an animation layer.
|
|
3
|
+
* It is used to control the animation whether to be applied to the entity or not.
|
|
4
|
+
*/
|
|
5
|
+
export declare class LayerPathMask {
|
|
6
|
+
/**
|
|
7
|
+
* It identifies a particular entity in the hierarchy.
|
|
8
|
+
* Example: "arm/left/hand" could be a path to the left hand of a character.
|
|
9
|
+
*/
|
|
10
|
+
path: string;
|
|
11
|
+
/**
|
|
12
|
+
* The active property is indicating whether the animation at this path is active or not.
|
|
13
|
+
* When true, the animation for this path is applied; when false, the animation for this path is ignored.
|
|
14
|
+
*/
|
|
15
|
+
active: boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Animator } from "../animation/Animator";
|
|
2
|
+
import { AnimatorState } from "../animation/AnimatorState";
|
|
3
|
+
/**
|
|
4
|
+
* StateMachineScript is a component that can be added to a animator state. It's the base class every script on a state derives from.
|
|
5
|
+
*/
|
|
6
|
+
export declare class StateMachineScript {
|
|
7
|
+
/**
|
|
8
|
+
* onStateEnter is called when a transition starts and the state machine starts to evaluate this state.
|
|
9
|
+
* @param animator - The animator
|
|
10
|
+
* @param animatorState - The state be evaluated
|
|
11
|
+
* @param layerIndex - The index of the layer where the state is located
|
|
12
|
+
*/
|
|
13
|
+
onStateEnter(animator: Animator, animatorState: AnimatorState, layerIndex: number): void;
|
|
14
|
+
/**
|
|
15
|
+
* onStateUpdate is called on each Update frame between onStateEnter and onStateExit callbacks.
|
|
16
|
+
* @param animator - The animator
|
|
17
|
+
* @param animatorState - The state be evaluated
|
|
18
|
+
* @param layerIndex - The index of the layer where the state is located
|
|
19
|
+
*/
|
|
20
|
+
onStateUpdate(animator: Animator, animatorState: AnimatorState, layerIndex: number): void;
|
|
21
|
+
/**
|
|
22
|
+
* onStateExit is called when a transition ends and the state machine finishes evaluating this state.
|
|
23
|
+
* @param animator - The animator
|
|
24
|
+
* @param animatorState - The state be evaluated
|
|
25
|
+
* @param layerIndex - The index of the layer where the state is located
|
|
26
|
+
*/
|
|
27
|
+
onStateExit(animator: Animator, animatorState: AnimatorState, layerIndex: number): void;
|
|
28
|
+
/**
|
|
29
|
+
* Destroy this instance.
|
|
30
|
+
*/
|
|
31
|
+
destroy(): void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Color } from "@galacean/engine-math";
|
|
2
|
+
import { AnimationCurve } from "./AnimationCurve";
|
|
3
|
+
/**
|
|
4
|
+
* Store a collection of Keyframes that can be evaluated over time.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AnimationColorCurve extends AnimationCurve<Color> {
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { InterpolationType } from "../enums/InterpolationType";
|
|
2
|
+
import { IEvaluateData } from "../internal/animationCurveOwner/AnimationCurveOwner";
|
|
3
|
+
import { Keyframe, KeyframeValueType } from "../Keyframe";
|
|
4
|
+
/**
|
|
5
|
+
* Store a collection of Keyframes that can be evaluated over time.
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class AnimationCurve<V extends KeyframeValueType> {
|
|
8
|
+
/** All keys defined in the animation curve. */
|
|
9
|
+
keys: Keyframe<V>[];
|
|
10
|
+
protected _evaluateData: IEvaluateData<V>;
|
|
11
|
+
protected _length: number;
|
|
12
|
+
protected _interpolation: InterpolationType;
|
|
13
|
+
private _type;
|
|
14
|
+
/**
|
|
15
|
+
* The interpolationType of the animation curve.
|
|
16
|
+
*/
|
|
17
|
+
get interpolation(): InterpolationType;
|
|
18
|
+
set interpolation(value: InterpolationType);
|
|
19
|
+
/**
|
|
20
|
+
* Animation curve length in seconds.
|
|
21
|
+
*/
|
|
22
|
+
get length(): number;
|
|
23
|
+
constructor();
|
|
24
|
+
/**
|
|
25
|
+
* Add a new key to the curve.
|
|
26
|
+
* @param key - The keyframe
|
|
27
|
+
*/
|
|
28
|
+
addKey(key: Keyframe<V>): void;
|
|
29
|
+
/**
|
|
30
|
+
* Evaluate the curve at time.
|
|
31
|
+
* @param time - The time within the curve you want to evaluate
|
|
32
|
+
*/
|
|
33
|
+
evaluate(time: number): V;
|
|
34
|
+
/**
|
|
35
|
+
* Removes a key.
|
|
36
|
+
* @param index - The index of the key to remove
|
|
37
|
+
*/
|
|
38
|
+
removeKey(index: number): void;
|
|
39
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Keyframe } from "../Keyframe";
|
|
2
|
+
import { AnimationCurve } from "./AnimationCurve";
|
|
3
|
+
/**
|
|
4
|
+
* Store a collection of Keyframes that can be evaluated over time.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AnimationFloatArrayCurve extends AnimationCurve<Float32Array> {
|
|
7
|
+
/**
|
|
8
|
+
* @inheritdoc
|
|
9
|
+
*/
|
|
10
|
+
addKey(key: Keyframe<Float32Array>): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Quaternion } from "@galacean/engine-math";
|
|
2
|
+
import { AnimationCurve } from "./AnimationCurve";
|
|
3
|
+
/**
|
|
4
|
+
* Store a collection of Keyframes that can be evaluated over time.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AnimationQuaternionCurve extends AnimationCurve<Quaternion> {
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Rect } from "@galacean/engine-math";
|
|
2
|
+
import { AnimationCurve } from "./AnimationCurve";
|
|
3
|
+
/**
|
|
4
|
+
* Store a collection of Keyframes that can be evaluated over time.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AnimationRectCurve extends AnimationCurve<Rect> {
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReferResource } from "../../asset/ReferResource";
|
|
2
|
+
import { AnimationCurve } from "./AnimationCurve";
|
|
3
|
+
/**
|
|
4
|
+
* Store a collection of Keyframes that can be evaluated over time.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AnimationRefCurve extends AnimationCurve<ReferResource> {
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Vector2 } from "@galacean/engine-math";
|
|
2
|
+
import { AnimationCurve } from "./AnimationCurve";
|
|
3
|
+
/**
|
|
4
|
+
* Store a collection of Keyframes that can be evaluated over time.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AnimationVector2Curve extends AnimationCurve<Vector2> {
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Vector3 } from "@galacean/engine-math";
|
|
2
|
+
import { AnimationCurve } from "./AnimationCurve";
|
|
3
|
+
/**
|
|
4
|
+
* Store a collection of Keyframes that can be evaluated over time.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AnimationVector3Curve extends AnimationCurve<Vector3> {
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Vector4 } from "@galacean/engine-math";
|
|
2
|
+
import { AnimationCurve } from "./AnimationCurve";
|
|
3
|
+
/**
|
|
4
|
+
* Store a collection of Keyframes that can be evaluated over time.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AnimationVector4Curve extends AnimationCurve<Vector4> {
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { AnimationArrayCurve } from "./AnimationArrayCurve";
|
|
2
|
+
export { AnimationBoolCurve } from "./AnimationBoolCurve";
|
|
3
|
+
export { AnimationColorCurve } from "./AnimationColorCurve";
|
|
4
|
+
export { AnimationCurve } from "./AnimationCurve";
|
|
5
|
+
export { AnimationFloatArrayCurve } from "./AnimationFloatArrayCurve";
|
|
6
|
+
export { AnimationFloatCurve } from "./AnimationFloatCurve";
|
|
7
|
+
export { AnimationQuaternionCurve } from "./AnimationQuaternionCurve";
|
|
8
|
+
export { AnimationVector2Curve } from "./AnimationVector2Curve";
|
|
9
|
+
export { AnimationVector3Curve } from "./AnimationVector3Curve";
|
|
10
|
+
export { AnimationVector4Curve } from "./AnimationVector4Curve";
|
|
11
|
+
export { AnimationRefCurve } from "./AnimationRefCurve";
|
|
12
|
+
export { AnimationRectCurve } from "./AnimationRectCurve";
|
|
13
|
+
export { AnimationStringCurve } from "./AnimationStringCurve";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The mode of the animator condition.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum AnimatorConditionMode {
|
|
5
|
+
/** The condition is true when the parameter value is true. */
|
|
6
|
+
If = 0,
|
|
7
|
+
/** The condition is true when the parameter value is false. */
|
|
8
|
+
IfNot = 1,
|
|
9
|
+
/** The condition is true when the parameter value is greater than the threshold. */
|
|
10
|
+
Greater = 2,
|
|
11
|
+
/** The condition is true when the parameter value is less than the threshold. */
|
|
12
|
+
Less = 3,
|
|
13
|
+
/** The condition is true when the parameter value is equal to the threshold. */
|
|
14
|
+
Equals = 4,
|
|
15
|
+
/** The condition is true when the parameter value is not equal to the threshold. */
|
|
16
|
+
NotEquals = 5
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|