engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | Protected 成员函数 | 静态 Protected 成员函数 | Protected 属性 | 友元 | 所有成员列表
USkeletalMeshComponent类 参考

SkeletalMeshComponent is used to create an instance of an animated SkeletalMesh asset. 更多...

#include <SkeletalMeshComponent.h>

+ 类 USkeletalMeshComponent 继承关系图:

Public 成员函数

void AccumulateAllBodiesBelowPhysicsBlendWeight (const FName &InBoneName, float AddPhysicsBlendWeight, bool bSkipCustomPhysicsType=false)
 Accumulate AddPhysicsBlendWeight to physics blendweight for all of the bones below passed in bone to be simulated
 
void AddClothCollisionSource (USkeletalMeshComponent *InSourceComponent, UPhysicsAsset *InSourcePhysicsAsset)
 Stub out these public functions if cloth collision is disabled
 
void AddClothingBounds (FBoxSphereBounds &InOutBounds, const FTransform &LocalToWorld) const
 Given bounds InOutBounds, expand them to also enclose the clothing simulation mesh
 
virtual void AddForceToAllBodiesBelow (FVector Force, FName BoneName=NAME_None, bool bAccelChange=false, bool bIncludeSelf=true)
 Add a force to all rigid bodies below. 更多...
 
virtual void AddImpulseToAllBodiesBelow (FVector Impulse, FName BoneName=NAME_None, bool bVelChange=false, bool bIncludeSelf=true)
 Add impulse to all single rigid bodies below. 更多...
 
virtual void AddRadialForce (FVector Origin, float Radius, float Strength, ERadialImpulseFalloff Falloff, bool bAccelChange=false) override
 Add a force to all bodies in this component, originating from the supplied world-space location. 更多...
 
virtual void AddRadialImpulse (FVector Origin, float Radius, float Strength, ERadialImpulseFalloff Falloff, bool bVelChange=false) override
 Add an impulse to all rigid bodies in this component, radiating out from the specified position. 更多...
 
virtual bool AllocateTransformData () override
 Allocate Transform Data array including SpaceBases, BoneVisibilityStates 更多...
 
void ApplyAnimationCurvesToComponent (const TMap< FName, float > *InMaterialParameterCurves, const TMap< FName, float > *InAnimationMorphCurves)
 Apply animation curves to this component
 
void ApplyDeltaToAllPhysicsTransforms (const FVector &DeltaLocation, const FQuat &DeltaRotation)
 Set physics transforms for all bodies
 
virtual void BeginPlay () override
 Used to detach physics objects before simulation begins. 更多...
 
void BindClothToMasterPoseComponent ()
 If this component has a valid MasterPoseComponent then this function makes cloth items on the slave component take the transforms of the cloth items on the master component instead of simulating separately. 更多...
 
void BlendInPhysics (FTickFunction &ThisTickFunction)
 Take the results of the physics and blend them with the animation state (based on the PhysicsWeight parameter), and update the SpaceBases array.
 
void BlendPhysicsBones (TArray< FBoneIndexType > &Bones)
 Blend of Physics Bones with PhysicsWeight and Animated Bones with (1-PhysicsWeight) 更多...
 
void BreakConstraint (FVector Impulse, FVector HitLocation, FName InBoneName)
 Break a constraint off a Gore mesh. 更多...
 
virtual FBoxSphereBounds CalcBounds (const FTransform &LocalToWorld) const override
 Calculate the bounds of the component. 更多...
 
virtual float CalculateMass (FName BoneName=NAME_None) override
 Returns the calculated mass in kg. 更多...
 
virtual bool CanEditSimulatePhysics () override
 Determines whether or not the simulate physics setting can be edited interactively on this component
 
virtual const bool CanHaveStaticMobility () const override
 Skeletal mesh component should not be able to have its mobility set to static
 
virtual void CheckClothTeleport ()
 Check linear and angular thresholds for clothing teleport
 
void ClearCachedAnimProperties ()
 Clear cached animation data generated for URO during evaluation
 
void ClearMorphTargets ()
 Clear all Morph Target that are set to this mesh
 
virtual void ClearRefPoseOverride () override
 Clear any applied ref pose override
 
void CompleteParallelClothSimulation ()
 Callback when the parallel clothing task finishes, copies needed data back to component for gamethread
 
void ComputeRequiredBones (TArray< FBoneIndexType > &OutRequiredBones, TArray< FBoneIndexType > &OutFillComponentSpaceTransformsRequiredBones, int32 LODIndex, bool bIgnorePhysicsAsset) const
 Computes the required bones in this SkeletalMeshComponent based on current SkeletalMesh, LOD and PhysicsAsset 更多...
 
FRootMotionMovementParams ConsumeRootMotion ()
 Consume and return pending root motion from our internal anim instances (main, sub and post)
 
FTransform ConvertLocalRootMotionToWorld (const FTransform &InTransform)
 Take extracted RootMotion and convert it from local space to world space.
 
void DebugDrawClothing (FPrimitiveDrawInterface *PDI)
 Draw the currently clothing state, using the editor extender interface 更多...
 
void DebugDrawClothingTexts (FCanvas *Canvas, const FSceneView *SceneView)
 Draw the currently clothing state, using the editor extender interface 更多...
 
virtual bool DoCustomNavigableGeometryExport (FNavigableGeometryExport &GeomExport) const override
 Collects custom navigable geometry of component. 更多...
 
void EvaluatePostProcessMeshInstance (TArray< FTransform > &OutBoneSpaceTransforms, FCompactPose &InOutPose, FBlendedHeapCurve &OutCurve, const USkeletalMesh *InSkeletalMesh, FVector &OutRootBoneTranslation, FHeapCustomAttributes &OutAttributes) const
 Evaluates the post process instance from the skeletal mesh this component is using.
 
virtual void FinalizeBoneTransform () override
 Finalize bone transform of this current tick After this function, any query to bone transform should be latest of the data
 
FName FindConstraintBoneName (int32 ConstraintIndex)
 Find Constraint Name from index 更多...
 
int32 FindConstraintIndex (FName ConstraintName)
 Find Constraint Index from the name 更多...
 
FConstraintInstance * FindConstraintInstance (FName ConName)
 Find instance of the constraint that matches the name supplied.
 
int32 FindRootBodyIndex () const
 Find the root body index
 
void ForceClothNextUpdateTeleport ()
 Used to indicate we should force 'teleport' during the next call to UpdateClothState, This will transform positions and velocities and thus keep the simulation state, just translate it to a new pose.
 
void ForceClothNextUpdateTeleportAndReset ()
 Used to indicate we should force 'teleport and reset' during the next call to UpdateClothState. 更多...
 
void ForEachAnimInstance (TFunctionRef< void(UAnimInstance *)> InFunction)
 Calls a function on each of the anim instances that this mesh component hosts, including linked and post-process instances
 
int32 ForEachBodyBelow (FName BoneName, bool bIncludeSelf, bool bSkipCustomType, TFunctionRef< void(FBodyInstance *)> Func)
 Iterates over all bodies below and executes Func. 更多...
 
class UClass * GetAnimClass ()
 Get the anim instance class via getter callable by sequencer. 更多...
 
class UAnimInstance * GetAnimInstance () const
 Returns the animation instance that is driving the class (if available). 更多...
 
virtual FBodyInstance * GetBodyInstance (FName BoneName=NAME_None, bool bGetWelded=true) const override
 Returns BodyInstance of the component. 更多...
 
virtual class UBodySetup * GetBodySetup () override
 Return the BodySetup to use for this PrimitiveComponent (single body case)
 
float GetBoneMass (FName BoneName=NAME_None, bool bScaleMass=true) const
 Returns the mass (in kg) of the given bone 更多...
 
const TArray< FTransform > & GetCachedComponentSpaceTransforms () const
 Access cached component space transforms
 
FVector GetClosestCollidingRigidBodyLocation (const FVector &TestLocation) const
 iterates through all bodies in our PhysicsAsset and returns the location of the closest bone associated with a body that has collision enabled. 更多...
 
bool GetClosestPointOnPhysicsAsset (const FVector &WorldPosition, FClosestPointOnPhysicsAsset &ClosestPointOnPhysicsAsset, bool bApproximate) const
 Given a world position, find the closest point on the physics asset. 更多...
 
const IClothingSimulation * GetClothingSimulation () const
 Get the current clothing simulation (read only)
 
const IClothingSimulationContext * GetClothingSimulationContext () const
 Get the current clothing simulation context (read only)
 
UClothingSimulationInteractor * GetClothingSimulationInteractor () const
 Get the current interactor for a clothing simulation, if the current simulation supports runtime interaction.
 
float GetClothMaxDistanceScale () const
 Get/Set the max distance scale of clothing mesh vertices
 
bool GetClothSimulatedPosition_GameThread (const FGuid &AssetGuid, int32 VertexIndex, FVector &OutSimulPos) const
 if the vertex index is valid for simulated vertices, returns the position in world space
 
const TMap< int32, FClothSimulData > & GetCurrentClothingData_AnyThread () const
 Get the current simulation data map for the clothing on this component. 更多...
 
const TMap< int32, FClothSimulData > & GetCurrentClothingData_GameThread () const
 Get the current simulation data map for the clothing on this component. 更多...
 
void GetCurrentJointAngles (FName InBoneName, float &Swing1Angle, float &TwistAngle, float &Swing2Angle)
 Gets the current Angular state for a named bone constraint 更多...
 
bool GetDisablePostProcessBlueprint () const
 Gets whether the post process blueprint is currently disabled for this component
 
bool GetFloatAttribute (const FName &BoneName, const FName &AttributeName, float DefaultValue, float &OutValue, ECustomBoneAttributeLookup LookupType=ECustomBoneAttributeLookup::BoneOnly)
 Get float type custom attribute value. 更多...
 
bool GetFloatAttribute_Ref (const FName &BoneName, const FName &AttributeName, float &OutValue, ECustomBoneAttributeLookup LookupType=ECustomBoneAttributeLookup::BoneOnly)
 Get float type custom attribute value. 更多...
 
bool GetIntegerAttribute (const FName &BoneName, const FName &AttributeName, int32 DefaultValue, int32 &OutValue, ECustomBoneAttributeLookup LookupType=ECustomBoneAttributeLookup::BoneOnly)
 Get integer type custom attribute value. 更多...
 
bool GetIntegerAttribute_Ref (const FName &BoneName, const FName &AttributeName, int32 &OutValue, ECustomBoneAttributeLookup LookupType=ECustomBoneAttributeLookup::BoneOnly)
 Get integer type custom attribute value. 更多...
 
UAnimInstance * GetLinkedAnimGraphInstanceByTag (FName InTag) const
 Returns the a tagged linked instance node. 更多...
 
void GetLinkedAnimGraphInstancesByTag (FName InTag, TArray< UAnimInstance * > &OutLinkedInstances) const
 Returns all tagged linked instance nodes that match the tag.
 
PRAGMA_DISABLE_DEPRECATION_WARNINGS const TArray< UAnimInstance * > & GetLinkedAnimInstances () const
 Get the anim instances linked to the main AnimScriptInstance
 
UAnimInstance * GetLinkedAnimLayerInstanceByClass (TSubclassOf< UAnimInstance > InClass) const
 Gets the first layer linked instance corresponding to the specified class
 
UAnimInstance * GetLinkedAnimLayerInstanceByGroup (FName InGroup) const
 Gets the layer linked instance corresponding to the specified group
 
virtual float GetMass () const override
 Returns the mass of this component in kg.
 
float GetMorphTarget (FName MorphTargetName) const
 Get Morph target with given name
 
UAnimInstance * GetPostProcessInstance () const
 Returns the active post process instance is one is available. 更多...
 
virtual void GetResourceSizeEx (FResourceSizeEx &CumulativeResourceSize) override
 Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). 更多...
 
FVector GetSkeletalCenterOfMass () const
 Returns the center of mass of the skeletal mesh, instead of the root body's location
 
virtual bool GetSquaredDistanceToCollision (const FVector &Point, float &OutSquaredDistance, FVector &OutClosestPointOnCollision) const override
 Returns The square of the distance to closest Body Instance surface. 更多...
 
bool GetStringAttribute (const FName &BoneName, const FName &AttributeName, FString DefaultValue, FString &OutValue, ECustomBoneAttributeLookup LookupType=ECustomBoneAttributeLookup::BoneOnly)
 Get string type custom attribute value. 更多...
 
bool GetStringAttribute_Ref (const FName &BoneName, const FName &AttributeName, FString &OutValue, ECustomBoneAttributeLookup LookupType=ECustomBoneAttributeLookup::BoneOnly)
 Get string type custom attribute value. 更多...
 
float GetTeleportDistanceThreshold () const
 Gets the teleportation distance threshold. 更多...
 
float GetTeleportRotationThreshold () const
 Gets the teleportation rotation threshold. 更多...
 
float GetTotalMassBelowBone (FName InBoneName)
 Utility which returns total mass of all bones below the supplied one in the hierarchy (including this one).
 
void GetUpdateClothSimulationData (TMap< int32, FClothSimulData > &OutClothSimData, USkeletalMeshComponent *OverrideLocalRootComponent=nullptr)
 Store cloth simulation data into OutClothSimData
 
void GetWeldedBodies (TArray< FBodyInstance * > &OutWeldedBodies, TArray< FName > &OutChildrenLabels, bool bIncludingAutoWeld=false) override
 Adds the bodies that are currently welded to the OutWeldedBodies array
 
bool HasValidAnimationInstance () const
 Returns whether there are any valid instances to run, currently this means whether we have have an animation instance or a post process instance available to process.
 
virtual void HideBone (int32 BoneIndex, EPhysBodyOp PhysBodyOption) override
 Hides the specified bone. 更多...
 
void InitArticulated (FPhysScene *PhysScene)
 Initialize PhysicsAssetInstance for the physicsAsset 更多...
 
virtual void InitializeComponent () override
 Initializes the component. 更多...
 
void InitSkelControls ()
 Initialize SkelControls
 
void InstantiatePhysicsAsset (const UPhysicsAsset &PhysAsset, const FVector &Scale3D, TArray< FBodyInstance * > &OutBodies, TArray< FConstraintInstance * > &OutConstraints, FPhysScene *PhysScene=nullptr, USkeletalMeshComponent *OwningComponent=nullptr, int32 UseRootBodyIndex=INDEX_NONE, const FPhysicsAggregateHandle &UseAggregate=FPhysicsAggregateHandle()) const
 Instantiates bodies given a physics asset. 更多...
 
void InstantiatePhysicsAssetRefPose (const UPhysicsAsset &PhysAsset, const FVector &Scale3D, TArray< FBodyInstance * > &OutBodies, TArray< FConstraintInstance * > &OutConstraints, FPhysScene *PhysScene=nullptr, USkeletalMeshComponent *OwningComponent=nullptr, int32 UseRootBodyIndex=INDEX_NONE, const FPhysicsAggregateHandle &UseAggregate=FPhysicsAggregateHandle(), bool bCreateBodiesInRefPose=false) const
 Instantiates bodies given a physics asset like InstantiatePhysicsAsset but instead of reading the current component state, this reads the ref-pose from the reference skeleton of the mesh. 更多...
 
virtual bool IsAnyRigidBodyAwake () override
 Returns if any body in this component is currently awake and simulating.
 
virtual bool IsAnySimulatingPhysics () const override
 Returns whether the specified body is currently using physics simulation
 
bool IsBodyGravityEnabled (FName BoneName)
 Checks whether or not gravity is enabled on the given bone. 更多...
 
bool IsClothingSimulationSuspended () const
 Gets whether or not the clothing simulation is currently suspended
 
virtual bool IsGravityEnabled () const override
 Returns whether this component is affected by gravity. 更多...
 
virtual bool IsWindEnabled () const
 
bool K2_GetClosestPointOnPhysicsAsset (const FVector &WorldPosition, FVector &ClosestWorldPosition, FVector &Normal, FName &BoneName, float &Distance) const
 Given a world position, find the closest point on the physics asset. 更多...
 
virtual bool LineTraceComponent (FHitResult &OutHit, const FVector Start, const FVector End, const FCollisionQueryParams &Params) override
 Trace a ray against just this component. 更多...
 
void LinkAnimClassLayers (TSubclassOf< UAnimInstance > InClass)
 Runs through all layer nodes, attempting to find layer nodes that are implemented by the specified class, then sets up a linked instance of the class for each. 更多...
 
void LinkAnimGraphByTag (FName InTag, TSubclassOf< UAnimInstance > InClass)
 Runs through all nodes, attempting to find linked instance by name/tag, then sets the class of each node if the tag matches
 
virtual void NotifySkelControlBeyondLimit (class USkelControlLookAt *LookAt)
 Notifier when look at control goes beyond of limit - candidate for delegate
 
virtual void OnComponentCollisionSettingsChanged (bool bUpdateOverlaps=true) override
 Called when the BodyInstance ResponseToChannels, CollisionEnabled or bNotifyRigidBodyCollision changes, in case subclasses want to use that information.
 
virtual void OnPreEndOfFrameSync () override
 Allows components to wait on outstanding tasks prior to sending EOF update data. 更多...
 
virtual void OnUpdateTransform (EUpdateTransformFlags UpdateTransformFlags, ETeleportType Teleport=ETeleportType::None) override
 Native callback when this component is moved
 
virtual bool OverlapComponent (const FVector &Pos, const FQuat &Rot, const FCollisionShape &CollisionShape) override
 Test the collision of the supplied shape at the supplied location, and determine if it overlaps this component. 更多...
 
void OverrideAnimationData (UAnimationAsset *InAnimToPlay, bool bIsLooping=true, bool bIsPlaying=true, float Position=0.f, float PlayRate=1.f)
 This overrides current AnimationData parameter in the SkeletalMeshComponent. 更多...
 
void PerformAnimationProcessing (const USkeletalMesh *InSkeletalMesh, UAnimInstance *InAnimInstance, bool bInDoEvaluation, TArray< FTransform > &OutSpaceBases, TArray< FTransform > &OutBoneSpaceTransforms, FVector &OutRootBoneTranslation, FBlendedHeapCurve &OutCurve, FHeapCustomAttributes &OutAttributes)
 Runs the animation evaluation for the current pose into the supplied variables PerformAnimationProcessing runs evaluation based on bInDoEvaluation. 更多...
 
bool PoseTickedThisFrame () const
 Checked whether we have already ticked the pose this frame
 
virtual void PostLoad () override
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
virtual void PutAllRigidBodiesToSleep () override
 Force all bodies in this component to sleep.
 
void RecalcRequiredBones (int32 LODIndex)
 Recalculates the RequiredBones array in this SkeletalMeshComponent based on current SkeletalMesh, LOD and PhysicsAsset. 更多...
 
void RecalcRequiredCurves ()
 Recalculates the AnimCurveUids array in RequiredBone of this SkeletalMeshComponent based on current required bone set Is called when Skeleton->IsRequiredCurvesUpToDate() = false
 
void RecreateClothingActors ()
 Destroys and recreates the clothing actors in the current simulation
 
virtual void RefreshBoneTransforms (FActorComponentTickFunction *TickFunction=NULL) override
 Update functions 更多...
 
FDelegateHandle RegisterOnPhysicsCreatedDelegate (const FOnSkelMeshPhysicsCreated &Delegate)
 Register/Unregister for physics state creation callback
 
FDelegateHandle RegisterOnTeleportDelegate (const FOnSkelMeshTeleported &Delegate)
 Register/Unregister for teleport callback
 
void ReleaseAllClothingResources ()
 Remove all clothing actors from their simulation and clear any other necessary clothing data to leave the simulations in a clean state
 
void RemoveAllClothingActors ()
 Remove clothing actors from their simulation
 
virtual bool RequiresPreEndOfFrameSync () const override
 return true if this component needs to sync to tasks before end of frame updates are executed
 
void ResetAllBodiesSimulatePhysics ()
 Allows you to reset bodies Simulate state based on where bUsePhysics is set to true in the BodySetup.
 
void ResetAllowedAnimCurveEvaluation ()
 By reset, it will allow all the curves to be evaluated
 
void ResetAnimInstanceDynamics (ETeleportType InTeleportType=ETeleportType::ResetPhysics)
 Informs any active anim instances (main instance, linked instances, post instance) that a dynamics reset is required for example if a teleport occurs.
 
void ResetClothTeleportMode ()
 Reset the teleport mode of a next update to 'Continuous'
 
void ResetRootBodyIndex ()
 Reset Root Body Index
 
void ResumeClothingSimulation ()
 Resumes a previously suspended clothing simulation, teleporting the clothing on the next tick
 
virtual void SendRenderDebugPhysics (FPrimitiveSceneProxy *OverrideSceneProxy=nullptr) override
 Updates the renderer with the center of mass data
 
virtual void Serialize (FArchive &Ar) override
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
void SetAllBodiesBelowPhysicsBlendWeight (const FName &InBoneName, float PhysicsBlendWeight, bool bSkipCustomPhysicsType=false, bool bIncludeSelf=true)
 Set all of the bones below passed in bone to be simulated
 
void SetAllBodiesBelowSimulatePhysics (const FName &InBoneName, bool bNewSimulate, bool bIncludeSelf=true)
 Set all of the bones below passed in bone to be simulated
 
void SetAllBodiesCollisionObjectType (ECollisionChannel NewChannel)
 Set the movement channel of all bodies
 
void SetAllBodiesNotifyRigidBodyCollision (bool bNewNotifyRigidBodyCollision)
 Set the rigid body notification state for all bodies.
 
void SetAllBodiesSimulatePhysics (bool bNewSimulate)
 Set bSimulatePhysics to true for all bone bodies. 更多...
 
virtual void SetAllMassScale (float InMassScale=1.f) override
 Change the mass scale used fo all bodies in this component
 
void SetAllMotorsAngularDriveParams (float InSpring, float InDamping, float InForceLimit, bool bSkipCustomPhysicsType=false)
 Set Angular Drive motors params for all constraint instances
 
void SetAllMotorsAngularPositionDrive (bool bEnableSwingDrive, bool bEnableTwistDrive, bool bSkipCustomPhysicsType=false)
 Enable or Disable AngularPositionDrive. 更多...
 
void SetAllMotorsAngularVelocityDrive (bool bEnableSwingDrive, bool bEnableTwistDrive, bool bSkipCustomPhysicsType=false)
 Enable or Disable AngularVelocityDrive. 更多...
 
void SetAllowedAnimCurvesEvaluation (const TArray< FName > &List, bool bAllow)
 resets, and then only allow the following list to be allowed/disallowed
 
void SetAllowRigidBodyAnimNode (bool bInAllow, bool bReinitAnim=true)
 Sets whether or not to allow rigid body animation nodes for this component
 
virtual void SetAllPhysicsAngularVelocityInRadians (FVector const &NewVel, bool bAddToCurrent=false) override
 Set the angular velocity of all bodies in this component. 更多...
 
virtual void SetAllPhysicsLinearVelocity (FVector NewVel, bool bAddToCurrent=false) override
 Set the linear velocity of all bodies in this component. 更多...
 
virtual void SetAllPhysicsPosition (FVector NewPos) override
 Set the position of all bodies in this component. 更多...
 
virtual void SetAllPhysicsRotation (const FQuat &NewRot) override
 Set the rotation of all bodies in this component. 更多...
 
virtual void SetAllPhysicsRotation (FRotator NewRot) override
 Set the rotation of all bodies in this component. 更多...
 
virtual void SetAllUseCCD (bool InUseCCD) override
 Set whether all bodies in this component should use Continuous Collision Detection
 
void SetAngularLimits (FName InBoneName, float Swing1LimitAngle, float TwistLimitAngle, float Swing2LimitAngle)
 Sets the Angular Motion Ranges for a named bone 更多...
 
void SetAnimationMode (EAnimationMode::Type InAnimationMode)
 Below are the interface to control animation when animation mode, not blueprint mode
 
virtual void SetAnimClass (class UClass *NewClass)
 Set the anim instance class. 更多...
 
void SetAnimInstanceClass (class UClass *NewClass)
 Set the anim instance class. 更多...
 
virtual void SetBodyNotifyRigidBodyCollision (bool bNewNotifyRigidBodyCollision, FName BoneName=NAME_None)
 Changes the value of bNotifyRigidBodyCollision for a given body 更多...
 
virtual void SetCollisionObjectType (ECollisionChannel Channel) override
 Set the collision object type on the skeletal mesh
 
void SetConstraintProfile (FName JointName, FName ProfileName, bool bDefaultIfNotFound=false)
 Sets the constraint profile properties (limits, motors, etc...) to match the constraint profile as defined in the physics asset. 更多...
 
void SetConstraintProfileForAll (FName ProfileName, bool bDefaultIfNotFound=false)
 Sets the constraint profile properties (limits, motors, etc...) to match the constraint profile as defined in the physics asset for all constraints. 更多...
 
void SetDisablePostProcessBlueprint (bool bInDisablePostProcess)
 Sets whether the post process blueprint is currently running for this component. 更多...
 
void SetEnableBodyGravity (bool bEnableGravity, FName BoneName)
 Enables or disables gravity for the given bone. 更多...
 
virtual void SetEnableGravity (bool bGravityEnabled)
 Enables/disables whether this component is affected by gravity. 更多...
 
void SetEnableGravityOnAllBodiesBelow (bool bEnableGravity, FName BoneName, bool bIncludeSelf=true)
 Enables or disables gravity to all bodies below the given bone. 更多...
 
void SetEnablePhysicsBlending (bool bNewBlendPhysics)
 Disable physics blending of bones
 
void SetForceRefPose (bool bNewForceRefPose)
 Change whether to force mesh into ref pose (and use cheaper vertex shader) 更多...
 
void SetMorphTarget (FName MorphTargetName, float Value, bool bRemoveZeroWeight=true)
 Set Morph Target with Name and Value(0-1) 更多...
 
void SetNamedMotorsAngularPositionDrive (bool bEnableSwingDrive, bool bEnableTwistDrive, const TArray< FName > &BoneNames, bool bSetOtherBodiesToComplement=false)
 Enable or Disable AngularPositionDrive based on a list of bone names
 
void SetNamedMotorsAngularVelocityDrive (bool bEnableSwingDrive, bool bEnableTwistDrive, const TArray< FName > &BoneNames, bool bSetOtherBodiesToComplement=false)
 Enable or Disable AngularVelocityDrive based on a list of bone names
 
virtual void SetNotifyRigidBodyCollision (bool bNewNotifyRigidBodyCollision) override
 Changes the value of bNotifyRigidBodyCollision 更多...
 
virtual void SetNotifyRigidBodyCollisionBelow (bool bNewNotifyRigidBodyCollision, FName BoneName=NAME_None, bool bIncludeSelf=true)
 Changes the value of bNotifyRigidBodyCollision on all bodies below a given bone 更多...
 
virtual void SetPhysicsAsset (class UPhysicsAsset *NewPhysicsAsset, bool bForceReInit=false) override
 Override the Physics Asset of the mesh. 更多...
 
void SetPhysicsBlendWeight (float PhysicsBlendWeight)
 This is global set up for setting physics blend weight This does multiple things automatically If PhysicsBlendWeight == 1.f, it will enable Simulation, and if PhysicsBlendWeight == 0.f, it will disable Simulation. 更多...
 
virtual void SetPhysMaterialOverride (UPhysicalMaterial *NewPhysMaterial) override
 Changes the current PhysMaterialOverride for this component. 更多...
 
virtual void SetRefPoseOverride (const TArray< FTransform > &NewRefPoseTransforms) override
 Apply an override for the current mesh ref pose
 
void SetRootBodyIndex (int32 InBodyIndex)
 Set Root Body Index
 
virtual void SetSimulatePhysics (bool bEnabled) override
 Sets whether or not a single body should use physics simulation, or should be 'fixed' (kinematic). 更多...
 
virtual void SetSkeletalMesh (class USkeletalMesh *NewMesh, bool bReinitPose=true) override
 Change the SkeletalMesh that is rendered for this Component. 更多...
 
void SetTeleportDistanceThreshold (float Threshold)
 Sets the teleportation distance threshold. 更多...
 
void SetTeleportRotationThreshold (float Threshold)
 Sets the teleportation rotation threshold. 更多...
 
void SetUpdateAnimationInEditor (const bool NewUpdateState)
 Sets whether or not to force tick component in order to update animation and refresh transform for this component This is supported only in the editor
 
void SetUpdateClothInEditor (const bool NewUpdateState)
 Sets whether or not to animate cloth in the editor. 更多...
 
bool ShouldOnlyTickMontages (const float DeltaTime) const
 If VisibilityBasedAnimTickOption == EVisibilityBasedAnimTickOption::OnlyTickMontagesWhenNotRendered Should we tick Montages only?
 
bool ShouldTickAnimation () const
 
virtual bool ShouldTickPose () const override
 Should tick pose (by calling TickPose) in Tick 更多...
 
virtual bool ShouldUpdateTransform (bool bLODHasChanged) const override
 Should update transform in Tick 更多...
 
virtual void SkelMeshCompOnParticleSystemFinished (class UParticleSystemComponent *PSC)
 We detach the Component once we are done playing it. 更多...
 
void SnapshotPose (FPoseSnapshot &Snapshot)
 Takes a snapshot of this skeletal mesh component's pose and saves it to the specified snapshot. 更多...
 
void SuspendClothingSimulation ()
 Stops simulating clothing, but does not show clothing ref pose. 更多...
 
virtual bool SweepComponent (FHitResult &OutHit, const FVector Start, const FVector End, const FQuat &ShapRotation, const FCollisionShape &CollisionShape, bool bTraceComplex=false) override
 Trace a shape against just this component. 更多...
 
void TermArticulated ()
 Turn off all physics and remove the instance.
 
void TermBodiesBelow (FName ParentBoneName)
 Terminate physics on all bodies below the named bone, effectively disabling collision forever. 更多...
 
void TickAnimation (float DeltaTime, bool bNeedsValidRootMotion)
 Tick Animation system
 
void TickClothing (float DeltaTime, FTickFunction &ThisTickFunction)
 Tick Clothing Animation , basically this is called inside TickComponent
 
virtual void TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override
 Function called every frame on this ActorComponent. 更多...
 
virtual void TickPose (float DeltaTime, bool bNeedsValidRootMotion) override
 Tick Pose, this function ticks and do whatever it needs to do in this frame, should be called before RefreshBoneTransforms 更多...
 
void ToggleDisablePostProcessBlueprint ()
 Toggles whether the post process blueprint will run for this component
 
void UnbindClothFromMasterPoseComponent (bool bRestoreSimulationSpace=true)
 If this component has a valid MasterPoseComponent and has previously had its cloth bound to the MCP, this function will unbind the cloth and resume simulation. 更多...
 
virtual void UnHideBone (int32 BoneIndex) override
 Unhides the specified bone. 更多...
 
void UnlinkAnimClassLayers (TSubclassOf< UAnimInstance > InClass)
 Runs through all layer nodes, attempting to find layer nodes that are currently running the specified class, then resets each to its default value. 更多...
 
void UpdateBoneBodyMapping ()
 Update the bone mapping on each body instance. 更多...
 
void UpdateClothCollision ()
 Updates cloth collision inside the cloth asset (from a physics asset). 更多...
 
void UpdateClothStateAndSimulate (float DeltaTime, FTickFunction &ThisTickFunction)
 Update the clothing simulation state and trigger the simulation task
 
void UpdateClothTransform (ETeleportType TeleportType)
 Updates cloth collision outside the cloth asset (environment collision, child collision, etc...) Should be called when scene changes or world position changes
 
void UpdateHasValidBodies ()
 Update bHasValidBodies flag
 
void UpdateKinematicBonesToAnim (const TArray< FTransform > &InComponentSpaceTransforms, ETeleportType Teleport, bool bNeedsSkinning, EAllowKinematicDeferral DeferralAllowed=EAllowKinematicDeferral::AllowDeferral)
 Iterate over each physics body in the physics for this mesh, and for each 'kinematic' (ie fixed or default if owner isn't simulating) one, update its transform based on the animated transform. 更多...
 
virtual bool UpdateLODStatus () override
 Update the PredictedLODLevel and MaxDistanceFactor in the component from its MeshObject. 更多...
 
void UpdateMeshForBrokenConstraints ()
 Look up all bodies for broken constraints. 更多...
 
virtual bool UpdateOverlapsImpl (const TOverlapArrayView *PendingOverlaps=NULL, bool bDoNotifies=true, const TOverlapArrayView *OverlapsAtEndLocation=NULL) override
 Queries world and updates overlap tracking state for this component. 更多...
 
virtual void UpdatePhysicsToRBChannels () override
 Internal function that updates physics objects to match the component collision settings.
 
void UpdateRBJointMotors ()
 Iterate over each joint in the physics for this mesh, setting its AngularPositionTarget based on the animation information.
 
virtual void UpdateSlaveComponent () override
 Update Slave Component. 更多...
 
virtual void WakeAllRigidBodies () override
 Ensure simulation is running for all bodies in this component.
 
- Public 成员函数 继承自 USkinnedMeshComponent
virtual void BeginDestroy () override
 Called before destroying the object. 更多...
 
bool BoneIsChildOf (FName BoneName, FName ParentBoneName) const
 Tests if BoneName is child of (or equal to) ParentBoneName. 更多...
 
void CacheRefToLocalMatrices (TArray< FMatrix > &OutRefToLocal) const
 Caches the RefToLocal matrices.
 
virtual FBoxSphereBounds CalcBounds (const FTransform &LocalToWorld) const override
 Calculate the bounds of the component. 更多...
 
virtual void ClearRefPoseOverride ()
 Clear any applied ref pose override
 
void ClearSkinWeightOverride (int32 LODIndex)
 Clear any applied skin weight override
 
void ClearSkinWeightProfile ()
 Clear the Skin Weight Profile from this component, in case it is set
 
void ClearVertexColorOverride (int32 LODIndex)
 Clear any applied vertex color override
 
int32 ComputeMinLOD () const
 Compute SkeletalMesh MinLOD that will be used by this component
 
virtual FPrimitiveSceneProxy * CreateSceneProxy () override
 Creates a proxy to represent the primitive to the scene manager in the rendering thread. 更多...
 
virtual bool DoesSocketExist (FName InSocketName) const override
 Return true if socket with the given name exists 更多...
 
void EnableExternalEvaluationRateLimiting (bool bInEnable)
 Manually enable/disable animation evaluation rate limiting
 
void EnableExternalInterpolation (bool bInEnable)
 Enable non-URO-based interpolation
 
void EnableExternalTickRateControl (bool bInEnable)
 Set whether we have our tick rate externally controlled non-URO-based interpolation
 
void EnableExternalUpdate (bool bInEnable)
 Set us to tick this frame for non-URO-based interpolation
 
virtual void FinalizeBoneTransform ()
 Finalize bone transform of this current tick After this function, any query to bone transform should be latest of the data
 
FName FindClosestBone (FVector TestLocation, FVector *BoneLocation=NULL, float IgnoreScale=0.f, bool bRequirePhysicsAsset=false) const
 finds the closest bone to the given location 更多...
 
FName FindClosestBone_K2 (FVector TestLocation, FVector &BoneLocation, float IgnoreScale=0.f, bool bRequirePhysicsAsset=false) const
 finds the closest bone to the given location 更多...
 
virtual class UMorphTarget * FindMorphTarget (FName MorphTargetName) const
 Find a named MorphTarget from the current SkeletalMesh 更多...
 
FVector GetBoneAxis (FName BoneName, EAxis::Type Axis) const
 finds a vector pointing along the given axis of the given bone 更多...
 
int32 GetBoneIndex (FName BoneName) const
 Find the index of bone by name. 更多...
 
FVector GetBoneLocation (FName BoneName, EBoneSpaces::Type Space=EBoneSpaces::WorldSpace) const
 Get Bone Location 更多...
 
FMatrix GetBoneMatrix (int32 BoneIndex) const
 Get Bone Matrix from index 更多...
 
FName GetBoneName (int32 BoneIndex) const
 Get Bone Name from index 更多...
 
void GetBoneNames (TArray< FName > &BoneNames)
 Fills the given array with the names of all the bones in this component's current SkeletalMesh 更多...
 
FQuat GetBoneQuaternion (FName BoneName, EBoneSpaces::Type Space=EBoneSpaces::WorldSpace) const
 Get Bone Rotation in Quaternion 更多...
 
FTransform GetBoneTransform (int32 BoneIndex) const
 Get Bone Transform from index 更多...
 
FTransform GetBoneTransform (int32 BoneIndex, const FTransform &LocalToWorld) const
 Get world space bone transform from bone index, also specifying the component transform to use 更多...
 
const TArray< uint8 > & GetBoneVisibilityStates () const
 Access BoneVisibilityStates for reading
 
const TArray< FTransform > & GetComponentSpaceTransforms () const
 Access ComponentSpaceTransforms for reading
 
void GetCPUSkinnedVertices (TArray< struct FFinalSkinVertex > &OutVertices, int32 InLODIndex)
 Get CPU skinned vertices for the specified LOD level. 更多...
 
bool GetCPUSkinningEnabled () const
 Getter for bCPUSkinning member variable May return a different value from ShouldCPUSkin()
 
FName GetCurrentSkinWeightProfileName () const
 Return the name of the Skin Weight Profile that is currently set otherwise returns 'None'
 
const TOptional< FLinearColor > & GetDebugDrawColor () const
 Get debug draw color
 
FTransform GetDeltaTransformFromRefPose (FName BoneName, FName BaseName=NAME_None) const
 Get delta transform from reference pose based on BaseNode. 更多...
 
virtual FString GetDetailedInfoInternal () const override
 This function actually does the work for the GetDetailedInfo() and is virtual. 更多...
 
TArray< uint8 > & GetEditableBoneVisibilityStates ()
 Get Access to the current editable bone visibility states
 
TArray< FTransform > & GetEditableComponentSpaceTransforms ()
 Get Access to the current editable space bases
 
uint8 GetExternalTickRate () const
 Get the external tick rate
 
int32 GetForcedLOD () const
 Get ForcedLodModel of the mesh component. 更多...
 
virtual UMaterialInterface * GetMaterial (int32 MaterialIndex) const override
 Returns the material used by the element at the specified index 更多...
 
virtual bool GetMaterialStreamingData (int32 MaterialIndex, FPrimitiveMaterialInfo &MaterialData) const override
 Get the material info for texture stremaing. 更多...
 
int32 GetNumBones () const
 Returns the number of bones in the skeleton.
 
int32 GetNumComponentSpaceTransforms () const
 Get current number of component space transorms
 
int32 GetNumLODs () const
 Get the number of LODs on this component
 
virtual int32 GetNumMaterials () const override
 Return number of material elements in this primitive
 
FName GetParentBone (FName BoneName) const
 Get Parent Bone of the input bone 更多...
 
class UPhysicsAsset * GetPhysicsAsset () const
 Return PhysicsAsset for this SkeletalMeshComponent It will return SkeletalMesh's PhysicsAsset unless PhysicsAssetOverride is set for this component 更多...
 
void GetPreSkinnedLocalBounds (FBoxSphereBounds &OutBounds) const
 Get the pre-skinning local space bounds for this component.
 
virtual const FSkelMeshRefPoseOverride * GetRefPoseOverride () const
 Accessor for RefPoseOverride
 
FVector GetRefPosePosition (int32 BoneIndex)
 Gets the local-space position of a bone in the reference pose. 更多...
 
virtual void GetResourceSizeEx (FResourceSizeEx &CumulativeResourceSize) override
 Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). 更多...
 
FSkeletalMeshRenderData * GetSkeletalMeshRenderData () const
 Gets the skeletal mesh resource used for rendering the component.
 
FSkinWeightVertexBuffer * GetSkinWeightBuffer (int32 LODIndex) const
 Returns skin weight vertex buffer to use for specific LOD (will look at override)
 
const TArray< TWeakObjectPtr< USkinnedMeshComponent > > & GetSlavePoseComponents () const
 Return current active list of slave components
 
FName GetSocketBoneName (FName InSocketName) const
 Returns bone name linked to a given named socket on the skeletal mesh component. 更多...
 
class USkeletalMeshSocket const * GetSocketByName (FName InSocketName) const
 
class USkeletalMeshSocket const * GetSocketInfoByName (FName InSocketName, FTransform &OutTransform, int32 &OutBoneIndex) const
 
virtual FTransform GetSocketTransform (FName InSocketName, ERelativeTransformSpace TransformSpace=RTS_World) const override
 Get world-space socket transform. 更多...
 
virtual void GetStreamingRenderAssetInfo (FStreamingTextureLevelContext &LevelContext, TArray< FStreamingRenderAssetPrimitiveInfo > &OutStreamingRenderAssets) const override
 Enumerates the streaming textures/meshes used by the primitive. 更多...
 
bool GetTwistAndSwingAngleOfDeltaRotationFromRefPose (FName BoneName, float &OutTwistAngle, float &OutSwingAngle) const
 Get Twist and Swing Angle in Degree of Delta Rotation from Reference Pose in Local space 更多...
 
virtual void GetUsedMaterials (TArray< UMaterialInterface * > &OutMaterials, bool bGetDebugMaterials=false) const override
 Retrieves the materials used in this component 更多...
 
FColor GetVertexColor (int32 VertexIndex) const
 Returns color of the vertex. 更多...
 
FVector2D GetVertexUV (int32 VertexIndex, uint32 UVChannel) const
 Returns texture coordinates of the vertex. 更多...
 
virtual bool HasAnySockets () const override
 Returns true if this component has any sockets
 
virtual void HideBone (int32 BoneIndex, EPhysBodyOp PhysBodyOption)
 Hides the specified bone. 更多...
 
void HideBoneByName (FName BoneName, EPhysBodyOp PhysBodyOption)
 Hides the specified bone with name. 更多...
 
void InitLODInfos ()
 Initialize the LOD entries for the component
 
void InvalidateCachedBounds ()
 Invalidate Cached Bounds, when Mesh Component has been updated.
 
bool IsBoneHidden (int32 BoneIndex) const
 Determines if the specified bone is hidden. 更多...
 
bool IsBoneHiddenByName (FName BoneName)
 Determines if the specified bone is hidden. 更多...
 
bool IsMaterialSectionShown (int32 MaterialID, int32 LODIndex)
 Returns whether a specific material section is currently hidden on this component (by using ShowMaterialSection)
 
bool IsSkinWeightProfilePending () const
 Check whether or not a Skin Weight Profile is currently pending load / create
 
bool IsUsingExternalInterpolation () const
 Check whether we should be interpolating due to external settings
 
bool IsUsingExternalTickRateControl () const
 Check whether we we have our tick rate externally controlled
 
bool IsUsingSkinWeightProfile () const
 Check whether or not a Skin Weight Profile is currently set
 
virtual void PostInitMeshObject (class FSkeletalMeshObject *)
 Function to operate on mesh object after its created, but before it's attached. 更多...
 
virtual void QuerySupportedSockets (TArray< FComponentSocketDescription > &OutSockets) const override
 Get a list of sockets this component contains
 
void RebuildVisibilityArray ()
 Rebuild BoneVisibilityStates array. 更多...
 
virtual void RefreshBoneTransforms (FActorComponentTickFunction *TickFunction=NULL)
 Update functions 更多...
 
void RefreshSlaveComponents ()
 Refresh Slave Components if exists 更多...
 
virtual void RegisterLODStreamingCallback (FLODStreamingCallback &&Callback, int32 LODIdx, float TimeoutSecs, bool bOnStreamIn) override
 Register a one-time callback that will be called when criteria met 更多...
 
void ReleaseResources ()
 Release any rendering resources owned by this component
 
virtual void Serialize (FArchive &Ar) override
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
void SetCPUSkinningEnabled (bool bEnable, bool bRecreateRenderStateImmediately=false)
 Set whether this component uses CPU skinning Notes: 更多...
 
void SetDebugDrawColor (const FLinearColor &InColor)
 Set debug draw color
 
void SetDrawDebugSkeleton (bool bInDraw)
 Set whether to draw this mesh's debug skeleton
 
void SetExternalDeltaTime (float InDeltaTime)
 Set non-URO-based delta time
 
void SetExternalInterpolationAlpha (float InAlpha)
 Set non-URO-based interpolation alpha
 
void SetExternalTickRate (uint8 InTickRate)
 Set the external tick rate
 
void SetForcedLOD (int32 InNewForcedLOD)
 Set ForcedLodModel of the mesh component 更多...
 
void SetForceWireframe (bool InForceWireframe)
 Sets the value of the bForceWireframe flag and reattaches the component as necessary. 更多...
 
void SetMasterPoseComponent (USkinnedMeshComponent *NewMasterBoneComponent, bool bForceUpdate=false)
 Set MasterPoseComponent for this component 更多...
 
void SetMinLOD (int32 InNewMinLOD)
 Set MinLodModel of the mesh component 更多...
 
virtual void SetPhysicsAsset (class UPhysicsAsset *NewPhysicsAsset, bool bForceReInit=false)
 Override the Physics Asset of the mesh. 更多...
 
virtual void SetRefPoseOverride (const TArray< FTransform > &NewRefPoseTransforms)
 Apply an override for the current mesh ref pose
 
void SetRenderStatic (bool bNewValue)
 Set whether this skinned mesh should be rendered as static mesh in a reference pose 更多...
 
virtual void SetSkeletalMesh (class USkeletalMesh *NewMesh, bool bReinitPose=true)
 Change the SkeletalMesh that is rendered for this Component. 更多...
 
void SetSkinWeightOverride (int32 LODIndex, const TArray< FSkelMeshSkinWeightInfo > &SkinWeights)
 Allow override of skin weights on a per-component basis.
 
bool SetSkinWeightProfile (FName InProfileName)
 Setup an override Skin Weight Profile for this component
 
void SetVertexColorOverride (int32 LODIndex, const TArray< FColor > &VertexColors)
 Allow override of vertex colors on a per-component basis.
 
void SetVertexColorOverride_LinearColor (int32 LODIndex, const TArray< FLinearColor > &VertexColors)
 Allow override of vertex colors on a per-component basis, taking array of Blueprint-friendly LinearColors.
 
virtual bool ShouldCPUSkin ()
 Function returns whether or not CPU skinning should be applied Allows the editor to override the skinning state for editor tools 更多...
 
bool ShouldDrawDebugSkeleton () const
 Get whether to draw this mesh's debug skeleton
 
virtual bool ShouldUpdateTransform (bool bLODHasChanged) const
 Should update transform in Tick 更多...
 
void ShowAllMaterialSections (int32 LODIndex)
 Clear any material visibility modifications made by ShowMaterialSection
 
void ShowMaterialSection (int32 MaterialID, int32 SectionIndex, bool bShow, int32 LODIndex)
 Allows hiding of a particular material (by ID) on this instance of a SkeletalMesh. 更多...
 
virtual void TickPose (float DeltaTime, bool bNeedsValidRootMotion)
 Tick Pose, this function ticks and do whatever it needs to do in this frame, should be called before RefreshBoneTransforms 更多...
 
void TransformFromBoneSpace (FName BoneName, FVector InPosition, FRotator InRotation, FVector &OutPosition, FRotator &OutRotation)
 Transform a location/rotation in bone relative space to world space. 更多...
 
void TransformToBoneSpace (FName BoneName, FVector InPosition, FRotator InRotation, FVector &OutPosition, FRotator &OutRotation) const
 Transform a location/rotation from world space to bone relative space. 更多...
 
virtual void UnHideBone (int32 BoneIndex)
 Unhides the specified bone. 更多...
 
void UnHideBoneByName (FName BoneName)
 UnHide the specified bone with name. 更多...
 
void UnloadSkinWeightProfile (FName InProfileName)
 Unload a Skin Weight Profile's skin weight buffer (if created)
 
virtual bool UpdateLODStatus ()
 Update the PredictedLODLevel and MaxDistanceFactor in the component from its MeshObject. 更多...
 
void UpdateMasterBoneMap ()
 Update MasterBoneMap for MasterPoseComponent and this component
 
void UpdateMorphMaterialUsageOnProxy ()
 Checks/updates material usage on proxy based on current morph target usage
 
virtual bool UpdateOverlapsImpl (const TOverlapArrayView *PendingOverlaps=NULL, bool bDoNotifies=true, const TOverlapArrayView *OverlapsAtEndLocation=NULL) override
 Queries world and updates overlap tracking state for this component. 更多...
 
void UpdateSkinWeightOverrideBuffer ()
 Queues an update of the Skin Weight Buffer used by the current MeshObject
 
virtual void UpdateSlaveComponent ()
 Update Slave Component. 更多...
 
- Public 成员函数 继承自 UMeshComponent
void EmptyOverrideMaterials ()
 This empties all override materials and used by editor when replacing preview mesh
 
virtual UMaterialInterface * GetMaterial (int32 ElementIndex) const override
 Returns the material used by the element at the specified index 更多...
 
FMaterialRelevance GetMaterialRelevance (ERHIFeatureLevel::Type InFeatureLevel) const
 Accesses the scene relevance information for the materials applied to the mesh. 更多...
 
virtual bool GetMaterialStreamingData (int32 MaterialIndex, FPrimitiveMaterialInfo &MaterialData) const
 Get the material info for texture stremaing. 更多...
 
virtual int32 GetNumMaterials () const override
 Return number of material elements in this primitive
 
virtual int32 GetNumOverrideMaterials () const
 Returns override Materials count
 
float GetScalarParameterDefaultValue (const FName ParameterName)
 Returns default value for the parameter input. 更多...
 
void GetStreamingTextureInfoInner (FStreamingTextureLevelContext &LevelContext, const TArray< FStreamingTextureBuildInfo > *PreBuiltData, float ComponentScaling, TArray< FStreamingRenderAssetPrimitiveInfo > &OutStreamingTextures) const
 Generate streaming data for all materials.
 
virtual void GetUsedMaterials (TArray< UMaterialInterface * > &OutMaterials, bool bGetDebugMaterials=false) const override
 Retrieves the materials used in this component 更多...
 
virtual void LogMaterialsAndTextures (FOutputDevice &Ar, int32 Indent) const
 Output to the log which materials and textures are used by this component. 更多...
 
virtual void PrestreamTextures (float Seconds, bool bPrioritizeCharacterTextures, int32 CinematicTextureGroups=0)
 Tell the streaming system to start loading all textures with all mip-levels. 更多...
 
virtual void RegisterLODStreamingCallback (FLODStreamingCallback &&Callback, int32 LODIdx, float TimeoutSecs, bool bOnStreamIn)
 Register a one-time callback that will be called when criteria met 更多...
 
virtual void SetMaterial (int32 ElementIndex, UMaterialInterface *Material) override
 Changes the material applied to an element of the mesh. 更多...
 
virtual void SetMaterialByName (FName MaterialSlotName, class UMaterialInterface *Material) override
 Changes the material applied to an element of the mesh. 更多...
 
void SetScalarParameterValueOnMaterials (const FName ParameterName, const float ParameterValue)
 Material parameter setting and caching 更多...
 
virtual void SetTextureForceResidentFlag (bool bForceMiplevelsToBeResident)
 Tell the streaming system whether or not all mip levels of all textures used by this component should be loaded and remain loaded. 更多...
 
void SetVectorParameterValueOnMaterials (const FName ParameterName, const FVector ParameterValue)
 Set all occurrences of Vector Material Parameters with ParameterName in the set of materials of the SkeletalMesh to ParameterValue
 
- Public 成员函数 继承自 UPrimitiveComponent
virtual void AddAngularImpulse (FVector Impulse, FName BoneName=NAME_None, bool bVelChange=false)
 Add an angular impulse to a single rigid body. 更多...
 
void AddAngularImpulseInDegrees (FVector Impulse, FName BoneName=NAME_None, bool bVelChange=false)
 Add an angular impulse to a single rigid body. 更多...
 
virtual void AddAngularImpulseInRadians (FVector Impulse, FName BoneName=NAME_None, bool bVelChange=false)
 Add an angular impulse to a single rigid body. 更多...
 
virtual void AddForce (FVector Force, FName BoneName=NAME_None, bool bAccelChange=false)
 Add a force to a single rigid body. 更多...
 
virtual void AddForceAtLocation (FVector Force, FVector Location, FName BoneName=NAME_None)
 Add a force to a single rigid body at a particular location in world space. 更多...
 
virtual void AddForceAtLocationLocal (FVector Force, FVector Location, FName BoneName=NAME_None)
 Add a force to a single rigid body at a particular location. 更多...
 
virtual void AddImpulse (FVector Impulse, FName BoneName=NAME_None, bool bVelChange=false)
 Add an impulse to a single rigid body. 更多...
 
virtual void AddImpulseAtLocation (FVector Impulse, FVector Location, FName BoneName=NAME_None)
 Add an impulse to a single rigid body at a specific location. 更多...
 
virtual void AddRadialForce (FVector Origin, float Radius, float Strength, enum ERadialImpulseFalloff Falloff, bool bAccelChange=false)
 Add a force to all bodies in this component, originating from the supplied world-space location. 更多...
 
virtual void AddRadialImpulse (FVector Origin, float Radius, float Strength, enum ERadialImpulseFalloff Falloff, bool bVelChange=false)
 Add an impulse to all rigid bodies in this component, radiating out from the specified position. 更多...
 
void AddTorque (FVector Torque, FName BoneName=NAME_None, bool bAccelChange=false)
 Add a torque to a single rigid body. 更多...
 
void AddTorqueInDegrees (FVector Torque, FName BoneName=NAME_None, bool bAccelChange=false)
 Add a torque to a single rigid body. 更多...
 
virtual void AddTorqueInRadians (FVector Torque, FName BoneName=NAME_None, bool bAccelChange=false)
 Add a torque to a single rigid body. 更多...
 
virtual bool AreSymmetricRotations (const FQuat &A, const FQuat &B, const FVector &Scale3D) const
 Returns true if the given transforms result in the same bounds, due to rotational symmetry. 更多...
 
void BeginComponentOverlap (const FOverlapInfo &OtherOverlap, bool bDoNotifies)
 Begin tracking an overlap interaction with the component specified. 更多...
 
virtual void BeginDestroy () override
 Called before destroying the object. 更多...
 
virtual void BeginPlay () override
 Used to detach physics objects before simulation begins. 更多...
 
virtual bool BuildTextureStreamingData (ETextureStreamingBuildType BuildType, EMaterialQualityLevel::Type QualityLevel, ERHIFeatureLevel::Type FeatureLevel, TSet< FGuid > &DependentResources)
 Update the streaming data of this component. 更多...
 
virtual float CalculateMass (FName BoneName=NAME_None)
 Returns the calculated mass in kg. 更多...
 
virtual bool CanCharacterStepUp (class APawn *Pawn) const
 Return true if the given Pawn can step up onto this component. 更多...
 
virtual bool CanEditSimulatePhysics ()
 Determines whether or not the simulate physics setting can be edited interactively on this component
 
void ClearMoveIgnoreActors ()
 Clear the list of actors we ignore when moving.
 
void ClearMoveIgnoreComponents ()
 Clear the list of components we ignore when moving.
 
bool ComponentOverlapComponent (class UPrimitiveComponent *PrimComp, const FVector Pos, const FQuat &Rot, const FCollisionQueryParams &Params)
 Test the collision of the supplied component at the supplied location/rotation, and determine if it overlaps this component. 更多...
 
bool ComponentOverlapMulti (TArray< struct FOverlapResult > &OutOverlaps, const class UWorld *InWorld, const FVector &Pos, const FQuat &Rot, ECollisionChannel TestChannel, const struct FComponentQueryParams &Params=FComponentQueryParams::DefaultComponentQueryParams, const struct FCollisionObjectQueryParams &ObjectQueryParams=FCollisionObjectQueryParams::DefaultObjectQueryParam) const
 Test the collision of the supplied component at the supplied location/rotation, and determine the set of components that it overlaps. 更多...
 
virtual bool ComputePenetration (FMTDResult &OutMTD, const FCollisionShape &CollisionShape, const FVector &Pos, const FQuat &Rot)
 Computes the minimum translation direction (MTD) when an overlap exists between the component and the given shape. 更多...
 
TArray< AActor * > CopyArrayOfMoveIgnoreActors ()
 Returns the list of actors we currently ignore when moving.
 
TArray< UPrimitiveComponent * > CopyArrayOfMoveIgnoreComponents ()
 Returns the list of actors we currently ignore when moving.
 
virtual class UMaterialInstanceDynamic * CreateAndSetMaterialInstanceDynamic (int32 ElementIndex)
 Creates a Dynamic Material Instance for the specified element index. 更多...
 
virtual class UMaterialInstanceDynamic * CreateAndSetMaterialInstanceDynamicFromMaterial (int32 ElementIndex, class UMaterialInterface *Parent)
 Creates a Dynamic Material Instance for the specified element index. 更多...
 
virtual class UMaterialInstanceDynamic * CreateDynamicMaterialInstance (int32 ElementIndex, class UMaterialInterface *SourceMaterial=NULL, FName OptionalName=NAME_None)
 Creates a Dynamic Material Instance for the specified element index, optionally from the supplied material. 更多...
 
virtual void CreateRenderState_Concurrent (FRegisterComponentContext *Context) override
 Used to create any rendering thread information for this component 更多...
 
virtual FPrimitiveSceneProxy * CreateSceneProxy ()
 Creates a proxy to represent the primitive to the scene manager in the rendering thread. 更多...
 
virtual void DestroyRenderState_Concurrent () override
 Used to shut down any rendering thread structure for this component 更多...
 
void DispatchBlockingHit (AActor &OutOwner, FHitResult const &BlockingHit)
 Dispatch notifications for the given HitResult. 更多...
 
void DispatchWakeEvents (ESleepEvent WakeEvent, FName BoneName)
 Dispatch notification for wake events and propagate to any welded bodies
 
virtual bool DoCustomNavigableGeometryExport (FNavigableGeometryExport &GeomExport) const
 Collects custom navigable geometry of component. 更多...
 
void EndComponentOverlap (const FOverlapInfo &OtherOverlap, bool bDoNotifies=true, bool bSkipNotifySelf=false)
 Finish tracking an overlap interaction that is no longer occurring between this component and the component specified. 更多...
 
virtual void FinishDestroy () override
 Called to finish destroying the object. 更多...
 
virtual float GetAngularDamping () const
 Returns the angular damping of this component.
 
virtual FBodyInstance * GetBodyInstance (FName BoneName=NAME_None, bool bGetWelded=true) const
 Returns BodyInstance of the component. 更多...
 
virtual class UBodySetup * GetBodySetup ()
 Return the BodySetup to use for this PrimitiveComponent (single body case)
 
FVector GetCenterOfMass (FName BoneName=NAME_None) const
 Get the center of mass of a single body. 更多...
 
float GetClosestPointOnCollision (const FVector &Point, FVector &OutPointOnBody, FName BoneName=NAME_None) const
 Returns the distance and closest point to the collision surface. 更多...
 
virtual ECollisionEnabled::Type GetCollisionEnabled () const override
 Returns the form of collision for this component
 
virtual ECollisionChannel GetCollisionObjectType () const override
 Gets the collision object type
 
FName GetCollisionProfileName () const
 Get the collision profile name
 
virtual ECollisionResponse GetCollisionResponseToChannel (ECollisionChannel Channel) const override
 Gets the response type given a specific channel
 
virtual const FCollisionResponseContainer & GetCollisionResponseToChannels () const override
 Return const reference to CollsionResponseContainer
 
virtual struct FCollisionShape GetCollisionShape (float Inflation=0.0f) const
 Return a CollisionShape that most closely matches this primitive.
 
virtual TStructOnScope< FActorComponentInstanceData > GetComponentInstanceData () const override
 Called before we throw away components during RerunConstructionScripts, to cache any data we wish to persist across that operation
 
virtual FTransform GetComponentTransformFromBodyInstance (FBodyInstance *UseBI)
 Called to get the Component To World Transform from the Root BodyInstance This needs to be virtual since SkeletalMeshComponent Root has to undo its own transform Without this, the root LocalToAtom is overridden by physics simulation, causing kinematic velocity to accelerate simulation 更多...
 
virtual FVector GetComponentVelocity () const override
 Get velocity of the component: either ComponentVelocity, or the velocity of the physics body if simulating physics. 更多...
 
const FCustomPrimitiveData & GetCustomPrimitiveData () const
 Get the custom primitive data for this primitive component. 更多...
 
const FCustomPrimitiveData & GetDefaultCustomPrimitiveData () const
 Get the default custom primitive data for this primitive component. 更多...
 
virtual float GetDiffuseBoost (int32 ElementIndex) const
 Gets the diffuse boost for the primitive component.
 
float GetDistanceToCollision (const FVector &Point, FVector &ClosestPointOnCollision) const
 Returns Distance to closest Body Instance surface. 更多...
 
virtual float GetEmissiveBoost (int32 ElementIndex) const
 Gets the emissive boost for the primitive component.
 
bool GetGenerateOverlapEvents () const
 If true, this component will generate overlap events when it is overlapping other components (eg Begin Overlap). 更多...
 
virtual FVector GetInertiaTensor (FName BoneName=NAME_None) const
 Returns the inertia tensor of this component in kg cm^2. 更多...
 
virtual void GetLightAndShadowMapMemoryUsage (int32 &LightMapMemoryUsage, int32 &ShadowMapMemoryUsage) const
 Returns the light and shadow map memory for this primitive in its out variables. 更多...
 
const UPrimitiveComponent * GetLightingAttachmentRoot () const
 Walks up the attachment tree until a primitive component with LightAttachmentsAsGroup enabled is found. 更多...
 
virtual bool GetLightMapResolution (int32 &Width, int32 &Height) const
 Returns the lightmap resolution used for this primitive instance in the case of it supporting texture light/ shadow maps. 更多...
 
virtual float GetLinearDamping () const
 Returns the linear damping of this component.
 
UPrimitiveComponent * GetLODParentPrimitive () const
 Gets the LOD Parent, which is used to compute visibility when hierarchical LOD is enabled
 
FMaskFilter GetMaskFilterOnBodyInstance (FMaskFilter InMaskFilter) const
 Get the mask filter checked when others move into us.
 
virtual float GetMass () const
 Returns the mass of this component in kg.
 
virtual float GetMassScale (FName BoneName=NAME_None) const
 Returns the mass scale used to calculate the mass of a single physics body
 
virtual class UMaterialInterface * GetMaterial (int32 ElementIndex) const
 Returns the material used by the element at the specified index 更多...
 
virtual UMaterialInterface * GetMaterialFromCollisionFaceIndex (int32 FaceIndex, int32 &SectionIndex) const
 Try and retrieve the material applied to a particular collision face of mesh. 更多...
 
const TArray< AActor * > & GetMoveIgnoreActors () const
 Returns the list of actors (as WeakObjectPtr) we currently ignore when moving.
 
const TArray< UPrimitiveComponent * > & GetMoveIgnoreComponents () const
 Returns the list of components we currently ignore when moving.
 
FMaskFilter GetMoveIgnoreMask () const
 Get the mask filter we use when moving.
 
virtual int32 GetNumMaterials () const
 Return number of material elements in this primitive
 
const TArray< FOverlapInfo > & GetOverlapInfos () const
 Returns list of components this component is overlapping.
 
void GetOverlappingActors (TArray< AActor * > &OverlappingActors, TSubclassOf< AActor > ClassFilter=nullptr) const
 Returns a list of actors that this component is overlapping. 更多...
 
void GetOverlappingActors (TSet< AActor * > &OverlappingActors, TSubclassOf< AActor > ClassFilter=nullptr) const
 Returns the set of actors that this component is overlapping. 更多...
 
void GetOverlappingComponents (TArray< UPrimitiveComponent * > &OutOverlappingComponents) const
 Returns unique list of components this component is overlapping.
 
void GetOverlappingComponents (TSet< UPrimitiveComponent * > &OutOverlappingComponents) const
 Returns unique set of components this component is overlapping.
 
bool GetOverlapsWithActor (const AActor *Actor, TArray< FOverlapInfo > &OutOverlaps) const
 Appends list of overlaps with components owned by the given actor to the 'OutOverlaps' array. 更多...
 
FVector GetPhysicsAngularVelocity (FName BoneName=NAME_None) const
 Get the angular velocity of a single body, in degrees per second. 更多...
 
FVector GetPhysicsAngularVelocityInDegrees (FName BoneName=NAME_None) const
 Get the angular velocity of a single body, in degrees per second. 更多...
 
FVector GetPhysicsAngularVelocityInRadians (FName BoneName=NAME_None) const
 Get the angular velocity of a single body, in radians per second. 更多...
 
FVector GetPhysicsLinearVelocity (FName BoneName=NAME_None)
 Get the linear velocity of a single body. 更多...
 
FVector GetPhysicsLinearVelocityAtPoint (FVector Point, FName BoneName=NAME_None)
 Get the linear velocity of a point on a single body. 更多...
 
virtual FMatrix GetRenderMatrix () const
 Returns the matrix that should be used to render this component. 更多...
 
virtual void GetResourceSizeEx (FResourceSizeEx &CumulativeResourceSize) override
 Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). 更多...
 
bool GetRigidBodyState (FRigidBodyState &OutState, FName BoneName=NAME_None)
 Get the state of the rigid body responsible for this Actor's physics, and fill in the supplied FRigidBodyState struct based on it. 更多...
 
virtual TArray< URuntimeVirtualTexture * > const & GetRuntimeVirtualTextures () const
 Get the array of runtime virtual textures into which we render the mesh for this actor.
 
virtual bool GetShadowIndirectOnly () const
 Disable dynamic shadow casting if the primitive only casts indirect shadows, since dynamic shadows are always shadowing direct lighting
 
virtual bool GetSquaredDistanceToCollision (const FVector &Point, float &OutSquaredDistance, FVector &OutClosestPointOnCollision) const
 Returns The square of the distance to closest Body Instance surface. 更多...
 
virtual uint8 GetStaticDepthPriorityGroup () const
 Determines the DPG the primitive's primary elements are drawn in. 更多...
 
virtual ELightMapInteractionType GetStaticLightingType () const
 Requests whether the component will use texture, vertex or no lightmaps. 更多...
 
virtual int32 GetStaticLightMapResolution () const
 Returns the static lightmap resolution used for this primitive. 更多...
 
virtual void GetStreamingRenderAssetInfo (FStreamingTextureLevelContext &LevelContext, TArray< FStreamingRenderAssetPrimitiveInfo > &OutStreamingRenderAssets) const
 Enumerates the streaming textures/meshes used by the primitive. 更多...
 
void GetStreamingRenderAssetInfoWithNULLRemoval (FStreamingTextureLevelContext &LevelContext, TArray< FStreamingRenderAssetPrimitiveInfo > &OutStreamingRenderAssets) const
 Call GetStreamingRenderAssetInfo and remove the elements with a NULL texture 更多...
 
virtual void GetUsedMaterials (TArray< UMaterialInterface * > &OutMaterials, bool bGetDebugMaterials=false) const
 Retrieves the materials used in this component 更多...
 
virtual void GetUsedTextures (TArray< UTexture * > &OutTextures, EMaterialQualityLevel::Type QualityLevel)
 Returns the material textures used to render this primitive for the given platform. 更多...
 
virtual float GetVirtualTextureMainPassMaxDrawDistance () const
 Get the max draw distance to use in the main pass when also rendering to a runtime virtual texture. 更多...
 
virtual ERuntimeVirtualTextureMainPassType GetVirtualTextureRenderPassType () const
 Get the runtime virtual texture pass settings.
 
const struct FWalkableSlopeOverride & GetWalkableSlopeOverride () const
 Returns the slope override struct for this component.
 
virtual void GetWeldedBodies (TArray< FBodyInstance * > &OutWeldedBodies, TArray< FName > &OutLabels, bool bIncludingAutoWeld=false)
 Adds the bodies that are currently welded to the OutWeldedBodies array
 
FORCEINLINE EHasCustomNavigableGeometry::Type HasCustomNavigableGeometry () const
 If true then DoCustomNavigableGeometryExport will be called to collect navigable geometry of this component.
 
bool HasStaticLighting () const
 Return True if a primitive's parameters as well as its position is static during gameplay, and can thus use static lighting.
 
virtual bool HasValidPhysicsState () const override
 Used to check that DestroyPhysicsState() is working correctly
 
virtual bool HasValidSettingsForStaticLighting (bool bOverlookInvalidComponents) const
 Returns true if the component is static and has the right static mesh setup to support lightmaps.
 
void IgnoreActorWhenMoving (AActor *Actor, bool bShouldIgnore)
 Tells this component whether to ignore collision with all components of a specific Actor when this component is moved. 更多...
 
void IgnoreComponentWhenMoving (UPrimitiveComponent *Component, bool bShouldIgnore)
 Tells this component whether to ignore collision with another component when this component is moved. 更多...
 
virtual void InitSweepCollisionParams (FCollisionQueryParams &OutParams, FCollisionResponseParams &OutResponseParam) const
 Set collision params on OutParams (such as CollisionResponse) to match the settings on this PrimitiveComponent.
 
virtual void InvalidateLightingCacheDetailed (bool bInvalidateBuildEnqueuedLighting, bool bTranslationOnly) override
 Called when this actor component has moved, allowing it to discard statically cached lighting information.
 
virtual bool IsAnyRigidBodyAwake ()
 Returns if any body in this component is currently awake and simulating.
 
FORCEINLINE bool IsAttachedToStreamingManager () const
 Whether this primitive is referenced by the streaming manager and should sent callbacks when detached or destroyed
 
bool IsComponentIndividuallySelected () const
 Component is directly selected in the editor separate from its parent actor
 
virtual bool IsEditorOnly () const override
 Called during saving to determine if the object is forced to be editor only or not 更多...
 
virtual bool IsGravityEnabled () const
 Returns whether this component is affected by gravity. 更多...
 
virtual bool IsNavigationRelevant () const override
 Override to specify that a component is relevant to the navigation system
 
bool IsOverlappingActor (const AActor *Other) const
 Check whether this component is overlapping any component of the given Actor. 更多...
 
bool IsOverlappingComponent (const FOverlapInfo &Overlap) const
 Check whether this component has the specified overlap.
 
bool IsOverlappingComponent (const UPrimitiveComponent *OtherComp) const
 Check whether this component is overlapping another component. 更多...
 
virtual bool IsReadyForFinishDestroy () override
 Called to check if the object is ready for FinishDestroy. 更多...
 
virtual bool IsSimulatingPhysics (FName BoneName=NAME_None) const override
 Returns whether the specified body is currently using physics simulation
 
bool IsWelded () const
 Whether the component has been welded to another simulating component
 
virtual bool IsWorldGeometry () const override
 Is this component considered 'world' geometry, by default checks if this uses the WorldStatic collision channel
 
virtual bool IsZeroExtent () const
 This isn't bound extent, but for shape component to utilize extent is 0. 更多...
 
bool K2_BoxOverlapComponent (FVector InBoxCentre, const FBox InBox, bool bTraceComplex, bool bShowTrace, bool bPersistentShowTrace, FVector &HitLocation, FVector &HitNormal, FName &BoneName, FHitResult &OutHit)
 Perform a box overlap against a single component as an AABB (No rotation) 更多...
 
bool K2_IsCollisionEnabled () const
 Utility to see if there is any form of collision (query or physics) enabled on this component.
 
bool K2_IsPhysicsCollisionEnabled () const
 Utility to see if there is any physics collision enabled on this component.
 
bool K2_IsQueryCollisionEnabled () const
 Utility to see if there is any query collision enabled on this component.
 
bool K2_LineTraceComponent (FVector TraceStart, FVector TraceEnd, bool bTraceComplex, bool bShowTrace, bool bPersistentShowTrace, FVector &HitLocation, FVector &HitNormal, FName &BoneName, FHitResult &OutHit)
 Perform a line trace against a single component 更多...
 
bool K2_SphereOverlapComponent (FVector InSphereCentre, float InSphereRadius, bool bTraceComplex, bool bShowTrace, bool bPersistentShowTrace, FVector &HitLocation, FVector &HitNormal, FName &BoneName, FHitResult &OutHit)
 Perform a sphere overlap against a single component 更多...
 
bool K2_SphereTraceComponent (FVector TraceStart, FVector TraceEnd, float SphereRadius, bool bTraceComplex, bool bShowTrace, bool bPersistentShowTrace, FVector &HitLocation, FVector &HitNormal, FName &BoneName, FHitResult &OutHit)
 Perform a sphere trace against a single component 更多...
 
virtual bool LineTraceComponent (FHitResult &OutHit, const FVector Start, const FVector End, const FCollisionQueryParams &Params)
 Trace a ray against just this component. 更多...
 
virtual bool MoveComponentImpl (const FVector &Delta, const FQuat &NewRotation, bool bSweep, FHitResult *OutHit=NULL, EMoveComponentFlags MoveFlags=MOVECOMP_NoFlags, ETeleportType Teleport=ETeleportType::None) override
 Override this method for custom behavior for MoveComponent
 
virtual bool NeedsLoadForClient () const override
 Called during saving to determine the load flags to save with the object. 更多...
 
virtual bool NeedsLoadForServer () const override
 Called during saving to determine the load flags to save with the object. 更多...
 
virtual void OnActorEnableCollisionChanged () override
 Called on each component when the Actor's bEnableCollisionChanged flag changes
 
virtual void OnAttachmentChanged () override
 Called when AttachParent changes, to allow the scene to update its attachment state.
 
virtual void OnComponentDestroyed (bool bDestroyingHierarchy) override
 Called when a component is destroyed 更多...
 
virtual void OnCreatePhysicsState () override
 Used to create any physics engine information for this component
 
virtual void OnDestroyPhysicsState () override
 Used to shut down and physics engine structure for this component
 
virtual void OnRegister () override
 Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called.
 
virtual void OnUnregister () override
 Called when a component is unregistered. 更多...
 
virtual void OnUpdateTransform (EUpdateTransformFlags UpdateTransformFlags, ETeleportType Teleport=ETeleportType::None) override
 Native callback when this component is moved
 
virtual bool OverlapComponent (const FVector &Pos, const FQuat &Rot, const FCollisionShape &CollisionShape)
 Test the collision of the supplied shape at the supplied location, and determine if it overlaps this component. 更多...
 
virtual void PostDuplicate (bool bDuplicateForPIE) override
 Called after duplication & serialization and before PostLoad. 更多...
 
virtual void PostInitProperties () override
 Called after the C++ constructor and after the properties have been initialized, including those loaded from config. 更多...
 
virtual void PostLoad () override
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
void PushEditorVisibilityToProxy (uint64 InVisibility)
 Sends editor visibility updates to the render thread
 
void PushHoveredToProxy (const bool bInHovered)
 Pushes new hover state to the render thread primitive proxy 更多...
 
void PushSelectionToProxy ()
 Pushes new selection state to the render thread primitive proxy
 
virtual void PutAllRigidBodiesToSleep ()
 Force all bodies in this component to sleep.
 
void PutRigidBodyToSleep (FName BoneName=NAME_None)
 Force a single body back to sleep. 更多...
 
virtual void ReceiveComponentDamage (float DamageAmount, FDamageEvent const &DamageEvent, AController *EventInstigator, AActor *DamageCauser)
 Event called when a component is 'damaged', allowing for component class specific behaviour
 
bool RigidBodyIsAwake (FName BoneName=NAME_None) const
 Returns if a single body is currently awake and simulating. 更多...
 
virtual FVector ScaleByMomentOfInertia (FVector InputVector, FName BoneName=NAME_None) const
 Scales the given vector by the world space moment of inertia. 更多...
 
virtual void SendRenderDebugPhysics (FPrimitiveSceneProxy *OverrideSceneProxy=nullptr)
 Updates the renderer with the center of mass data
 
virtual void SendRenderTransform_Concurrent () override
 Called to send a transform update for this component to the rendering thread 更多...
 
virtual void Serialize (FArchive &Ar) override
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
virtual void SetAllMassScale (float InMassScale=1.f)
 Change the mass scale used fo all bodies in this component
 
void SetAllPhysicsAngularVelocityInDegrees (const FVector &NewAngVel, bool bAddToCurrent=false)
 Set the angular velocity of all bodies in this component. 更多...
 
virtual void SetAllPhysicsAngularVelocityInRadians (const FVector &NewAngVel, bool bAddToCurrent=false)
 Set the angular velocity of all bodies in this component. 更多...
 
virtual void SetAllPhysicsLinearVelocity (FVector NewVel, bool bAddToCurrent=false)
 Set the linear velocity of all bodies in this component. 更多...
 
virtual void SetAllPhysicsPosition (FVector NewPos)
 Set the position of all bodies in this component. 更多...
 
virtual void SetAllPhysicsRotation (const FQuat &NewRot)
 Set the rotation of all bodies in this component. 更多...
 
virtual void SetAllPhysicsRotation (FRotator NewRot)
 Set the rotation of all bodies in this component. 更多...
 
virtual void SetAllUseCCD (bool InUseCCD)
 Set whether all bodies in this component should use Continuous Collision Detection
 
virtual void SetAngularDamping (float InDamping)
 Sets the angular damping of this component.
 
void SetBoundsScale (float NewBoundsScale=1.f)
 Scale the bounds of this object, used for frustum culling. 更多...
 
void SetCachedMaxDrawDistance (const float NewCachedMaxDrawDistance)
 Utility to cache the max draw distance based on cull distance volumes or the desired max draw distance
 
void SetCastInsetShadow (bool bInCastInsetShadow)
 Changes the value of CastInsetShadow.
 
void SetCastShadow (bool NewCastShadow)
 Changes the value of CastShadow.
 
void SetCenterOfMass (FVector CenterOfMassOffset, FName BoneName=NAME_None)
 Set the center of mass of a single body. 更多...
 
virtual void SetCollisionEnabled (ECollisionEnabled::Type NewType)
 Controls what kind of collision is enabled for this body
 
virtual void SetCollisionObjectType (ECollisionChannel Channel)
 Changes the collision channel that this object uses when it moves 更多...
 
virtual void SetCollisionProfileName (FName InCollisionProfileName, bool bUpdateOverlaps=true)
 Set Collision Profile Name This function is called by constructors when they set ProfileName This will change current CollisionProfileName to be this, and overwrite Collision Setting 更多...
 
virtual void SetCollisionResponseToAllChannels (ECollisionResponse NewResponse)
 Changes all ResponseToChannels container for this PrimitiveComponent. 更多...
 
virtual void SetCollisionResponseToChannel (ECollisionChannel Channel, ECollisionResponse NewResponse)
 Changes a member of the ResponseToChannels container for this PrimitiveComponent. 更多...
 
virtual void SetCollisionResponseToChannels (const FCollisionResponseContainer &NewReponses)
 Changes the whole ResponseToChannels container for this PrimitiveComponent. 更多...
 
virtual void SetConstraintMode (EDOFMode::Type ConstraintMode)
 Sets the constraint mode of the component. 更多...
 
void SetCullDistance (float NewCullDistance)
 Changes the value of CullDistance. 更多...
 
void SetCustomDepthStencilValue (int32 Value)
 Sets the CustomDepth stencil value (0 - 255) and marks the render state dirty.
 
void SetCustomDepthStencilWriteMask (ERendererStencilMask WriteMaskBit)
 Sets the CustomDepth stencil write mask and marks the render state dirty.
 
void SetCustomNavigableGeometry (const EHasCustomNavigableGeometry::Type InType)
 Set value of HasCustomNavigableGeometry
 
void SetCustomPrimitiveDataFloat (int32 DataIndex, float Value)
 Set custom primitive data at index DataIndex. 更多...
 
void SetCustomPrimitiveDataVector2 (int32 DataIndex, FVector2D Value)
 Set custom primitive data, two floats at once, from index DataIndex to index DataIndex + 1. 更多...
 
void SetCustomPrimitiveDataVector3 (int32 DataIndex, FVector Value)
 Set custom primitive data, three floats at once, from index DataIndex to index DataIndex + 2. 更多...
 
void SetCustomPrimitiveDataVector4 (int32 DataIndex, FVector4 Value)
 Set custom primitive data, four floats at once, from index DataIndex to index DataIndex + 3. 更多...
 
void SetDefaultCustomPrimitiveDataFloat (int32 DataIndex, float Value)
 Set default custom primitive data at index DataIndex, and marks the render state dirty
 
void SetDefaultCustomPrimitiveDataVector2 (int32 DataIndex, FVector2D Value)
 Set default custom primitive data, two floats at once, from index DataIndex to index DataIndex + 1, and marks the render state dirty
 
void SetDefaultCustomPrimitiveDataVector3 (int32 DataIndex, FVector Value)
 Set default custom primitive data, three floats at once, from index DataIndex to index DataIndex + 2, and marks the render state dirty
 
void SetDefaultCustomPrimitiveDataVector4 (int32 DataIndex, FVector4 Value)
 Set default custom primitive data, four floats at once, from index DataIndex to index DataIndex + 3, and marks the render state dirty
 
void SetDepthPriorityGroup (ESceneDepthPriorityGroup NewDepthPriorityGroup)
 Changes the value of DepthPriorityGroup. 更多...
 
virtual void SetEnableGravity (bool bGravityEnabled)
 Enables/disables whether this component is affected by gravity. 更多...
 
void SetExcludeFromLightAttachmentGroup (bool bInExcludeFromLightAttachmentGroup)
 Changes the value of ExcludeFromLightAttachmentGroup.
 
void SetGenerateOverlapEvents (bool bInGenerateOverlapEvents)
 Modifies value returned by GetGenerateOverlapEvents()
 
void SetLightAttachmentsAsGroup (bool bInLightAttachmentsAsGroup)
 Changes the value of LightAttachmentsAsGroup.
 
virtual void SetLinearDamping (float InDamping)
 Sets the linear damping of this component.
 
void SetLODParentPrimitive (UPrimitiveComponent *InLODParentPrimitive)
 Set LOD Parent component, normally associated with an ALODActor
 
void SetMaskFilterOnBodyInstance (FMaskFilter InMaskFilter)
 Set the mask filter checked when others move into us.
 
virtual void SetMassOverrideInKg (FName BoneName=NAME_None, float MassInKg=1.f, bool bOverrideMass=true)
 Override the mass (in Kg) of a single physics body. 更多...
 
virtual void SetMassScale (FName BoneName=NAME_None, float InMassScale=1.f)
 Change the mass scale used to calculate the mass of a single physics body
 
virtual void SetMaterial (int32 ElementIndex, class UMaterialInterface *Material)
 Changes the material applied to an element of the mesh. 更多...
 
virtual void SetMaterialByName (FName MaterialSlotName, class UMaterialInterface *Material)
 Changes the material applied to an element of the mesh. 更多...
 
void SetMoveIgnoreMask (FMaskFilter InMoveIgnoreMask)
 Set the mask filter we use when moving.
 
virtual void SetNotifyRigidBodyCollision (bool bNewNotifyRigidBodyCollision)
 Changes the value of bNotifyRigidBodyCollision
 
void SetOnlyOwnerSee (bool bNewOnlyOwnerSee)
 Changes the value of bOnlyOwnerSee.
 
void SetOwnerNoSee (bool bNewOwnerNoSee)
 Changes the value of bOwnerNoSee.
 
void SetPhysicsAngularVelocity (FVector NewAngVel, bool bAddToCurrent=false, FName BoneName=NAME_None)
 Set the angular velocity of a single body. 更多...
 
void SetPhysicsAngularVelocityInDegrees (FVector NewAngVel, bool bAddToCurrent=false, FName BoneName=NAME_None)
 Set the angular velocity of a single body. 更多...
 
virtual void SetPhysicsAngularVelocityInRadians (FVector NewAngVel, bool bAddToCurrent=false, FName BoneName=NAME_None)
 Set the angular velocity of a single body. 更多...
 
virtual void SetPhysicsLinearVelocity (FVector NewVel, bool bAddToCurrent=false, FName BoneName=NAME_None)
 Set the linear velocity of a single body. 更多...
 
void SetPhysicsMaxAngularVelocity (float NewMaxAngVel, bool bAddToCurrent=false, FName BoneName=NAME_None)
 Set the maximum angular velocity of a single body. 更多...
 
void SetPhysicsMaxAngularVelocityInDegrees (float NewMaxAngVel, bool bAddToCurrent=false, FName BoneName=NAME_None)
 Set the maximum angular velocity of a single body. 更多...
 
void SetPhysicsMaxAngularVelocityInRadians (float NewMaxAngVel, bool bAddToCurrent=false, FName BoneName=NAME_None)
 Set the maximum angular velocity of a single body. 更多...
 
virtual void SetPhysMaterialOverride (class UPhysicalMaterial *NewPhysMaterial)
 Changes the current PhysMaterialOverride for this component. 更多...
 
void SetReceivesDecals (bool bNewReceivesDecals)
 Changes the value of bReceivesDecals.
 
void SetRenderCustomDepth (bool bValue)
 Sets the bRenderCustomDepth property and marks the render state dirty.
 
void SetRenderInMainPass (bool bValue)
 Sets bRenderInMainPass property and marks the render state dirty.
 
void SetRigidBodyReplicatedTarget (FRigidBodyState &UpdatedState, const FName BoneName=NAME_None)
 Applies RigidBodyState only if it needs to be updated NeedsUpdate flag will be removed from UpdatedState after all velocity corrections are finished
 
virtual void SetSimulatePhysics (bool bSimulate)
 Sets whether or not a single body should use physics simulation, or should be 'fixed' (kinematic). 更多...
 
void SetSingleSampleShadowFromStationaryLights (bool bNewSingleSampleShadowFromStationaryLights)
 Changes the value of bSingleSampleShadowFromStationaryLights.
 
void SetTranslucentSortPriority (int32 NewTranslucentSortPriority)
 Changes the value of TranslucentSortPriority.
 
virtual void SetUseCCD (bool InUseCCD, FName BoneName=NAME_None)
 Set whether this component should use Continuous Collision Detection
 
void SetViewOwnerDepthPriorityGroup (bool bNewUseViewOwnerDepthPriorityGroup, ESceneDepthPriorityGroup NewViewOwnerDepthPriorityGroup)
 Changes the value of bUseViewOwnerDepthPriorityGroup and ViewOwnerDepthPriorityGroup. 更多...
 
virtual void SetWalkableSlopeOverride (const FWalkableSlopeOverride &NewOverride)
 Sets a new slope override for this component instance.
 
bool ShouldComponentAddToScene () const
 Looking at various values of the component, determines if this component should be added to the scene 更多...
 
virtual bool ShouldCreatePhysicsState () const override
 Return true if CreatePhysicsState() should be called. 更多...
 
virtual bool ShouldRecreateProxyOnUpdateTransform () const
 Determines whether the proxy for this primitive type needs to be recreated whenever the primitive moves. 更多...
 
virtual bool ShouldRenderSelected () const
 Return true if the owner is selected and this component is selectable
 
virtual bool SweepComponent (FHitResult &OutHit, const FVector Start, const FVector End, const FQuat &ShapeWorldRotation, const FCollisionShape &CollisionShape, bool bTraceComplex=false)
 Trace a shape against just this component. 更多...
 
void SyncComponentToRBPhysics ()
 Move this component to match the physics rigid body pose. 更多...
 
virtual void UnWeldChildren ()
 Unwelds the children of this component. 更多...
 
virtual void UnWeldFromParent ()
 UnWelds this component from its parent component. 更多...
 
virtual bool UpdateOverlapsImpl (const TOverlapArrayView *NewPendingOverlaps=nullptr, bool bDoNotifies=true, const TOverlapArrayView *OverlapsAtEndLocation=nullptr) override
 Queries world and updates overlap tracking state for this component. 更多...
 
virtual void UpdatePhysicsVolume (bool bTriggerNotifiers) override
 Update current physics volume for this component, if bShouldUpdatePhysicsVolume is true. 更多...
 
 UPrimitiveComponent (const FObjectInitializer &ObjectInitializer=FObjectInitializer::Get())
 Default UObject constructor.
 
virtual bool UsesOnlyUnlitMaterials () const
 Returns true if only unlit materials are used for rendering, false otherwise.
 
virtual void WakeAllRigidBodies ()
 Ensure simulation is running for all bodies in this component.
 
virtual void WakeRigidBody (FName BoneName=NAME_None)
 'Wake' physics simulation for a single body. 更多...
 
bool WasRecentlyRendered (float Tolerance=0.2) const
 Returns true if this component has been rendered "recently", with a tolerance in seconds to define what "recent" means. 更多...
 
virtual void WeldTo (class USceneComponent *InParent, FName InSocketName=NAME_None)
 Welds this component to another scene component, optionally at a named socket. 更多...
 
virtual bool WeldToImplementation (USceneComponent *InParent, FName ParentSocketName=NAME_None, bool bWeldSimulatedChild=true)
 Does the actual work for welding. 更多...
 
- Public 成员函数 继承自 USceneComponent
virtual void ApplyWorldOffset (const FVector &InOffset, bool bWorldShift) override
 Called by owner actor on position shifting Component should update all relevant data structures to reflect new actor location 更多...
 
bool AttachToComponent (USceneComponent *InParent, const FAttachmentTransformRules &AttachmentRules, FName InSocketName=NAME_None)
 Attach this component to another scene component, optionally at a named socket. 更多...
 
virtual void BeginDestroy () override
 Called before destroying the object. 更多...
 
virtual void CalcBoundingCylinder (float &CylinderRadius, float &CylinderHalfHeight) const
 Calculate the axis-aligned bounding cylinder of the component (radius in X-Y, half-height along Z axis). 更多...
 
virtual FBoxSphereBounds CalcBounds (const FTransform &LocalToWorld) const
 Calculate the bounds of the component. 更多...
 
virtual FBoxSphereBounds CalcLocalBounds () const
 Calculate the local bounds of the component. 更多...
 
virtual bool CanAttachAsChild (USceneComponent *ChildComponent, FName SocketName) const
 Called to see if it's possible to attach another scene component as a child. 更多...
 
bool CanEverRender () const
 return true if it can ever render
 
virtual const bool CanHaveStaticMobility () const
 Determines whether or not the component can have its mobility set to static
 
void ClearSkipUpdateOverlaps ()
 Clears the skip update overlaps flag. 更多...
 
void ConditionalUpdateComponentToWorld ()
 Call UpdateComponentToWorld if bComponentToWorldUpdated is false.
 
virtual void DestroyComponent (bool bPromoteChildren=false) override
 Unregister the component, remove it from its outer Actor's Components array and mark for pending kill.
 
virtual void DetachFromComponent (const FDetachmentTransformRules &DetachmentRules)
 Detach this component from whatever it is attached to. 更多...
 
virtual void DetachFromParent (bool bMaintainWorldPosition=false, bool bCallModify=true)
 DEPRECATED - Use DetachFromComponent() instead
 
virtual bool DoesSocketExist (FName InSocketName) const
 Return true if socket with the given name exists 更多...
 
TArray< FName > GetAllSocketNames () const
 Gets the names of all the sockets on the component. 更多...
 
const TArray< USceneComponent * > & GetAttachChildren () const
 Get the SceneComponents that are attached to this component.
 
USceneComponent * GetAttachmentRoot () const
 Walks up the attachment chain from this SceneComponent and returns the SceneComponent at the top. 更多...
 
AActor * GetAttachmentRootActor () const
 Walks up the attachment chain from this SceneComponent and returns the top-level actor it's attached to. 更多...
 
USceneComponent * GetAttachParent () const
 Get the SceneComponent we are attached to.
 
FName GetAttachSocketName () const
 Get the socket we are attached to.
 
USceneComponent * GetChildComponent (int32 ChildIndex) const
 Gets the attached child component at the specified location
 
void GetChildrenComponents (bool bIncludeAllDescendants, TArray< USceneComponent * > &Children) const
 Gets all components that are attached to this component, possibly recursively 更多...
 
virtual ECollisionEnabled::Type GetCollisionEnabled () const
 Returns the form of collision for this component
 
virtual ECollisionChannel GetCollisionObjectType () const
 Returns the channel that this component belongs to when it moves.
 
virtual ECollisionResponse GetCollisionResponseToChannel (ECollisionChannel Channel) const
 Returns the response that this component has to a specific collision channel.
 
virtual const FCollisionResponseContainer & GetCollisionResponseToChannels () const
 Return const reference to CollsionResponseContainer
 
ECollisionResponse GetCollisionResponseToComponent (USceneComponent *OtherComponent) const
 Compares the CollisionObjectType of each component against the Response of the other, to see what kind of response we should generate
 
virtual TStructOnScope< FActorComponentInstanceData > GetComponentInstanceData () const override
 Called before we throw away components during RerunConstructionScripts, to cache any data we wish to persist across that operation
 
FORCEINLINE FVector GetComponentLocation () const
 Return location of the component, in world space
 
FORCEINLINE FQuat GetComponentQuat () const
 Return rotation quaternion of the component, in world space
 
FORCEINLINE FRotator GetComponentRotation () const
 Return rotation of the component, in world space
 
FORCEINLINE FVector GetComponentScale () const
 Return scale of the component, in world space
 
FORCEINLINE const FTransform & GetComponentToWorld () const
 Get the current component-to-world transform for this component TODO: probably deprecate this in favor of GetComponentTransform
 
FORCEINLINE const FTransform & GetComponentTransform () const
 Get the current component-to-world transform for this component
 
virtual FVector GetComponentVelocity () const
 Get velocity of the component: either ComponentVelocity, or the velocity of the physics body if simulating physics. 更多...
 
class FScopedMovementUpdate * GetCurrentScopedMovement () const
 Returns the current scoped movement update, or NULL if there is none. 更多...
 
FVector GetForwardVector () const
 Get the forward (X) unit direction vector from this component, in world space. 更多...
 
virtual void GetLifetimeReplicatedProps (TArray< FLifetimeProperty > &OutLifetimeProps) const override
 Returns properties that are replicated for the lifetime of the actor channel
 
int32 GetNumChildrenComponents () const
 Gets the number of attached children components
 
void GetParentComponents (TArray< USceneComponent * > &Parents) const
 Gets all attachment parent components up to and including the root component
 
APhysicsVolume * GetPhysicsVolume () const
 Get the PhysicsVolume overlapping this component.
 
virtual FBoxSphereBounds GetPlacementExtent () const
 Get the extent used when placing this component in the editor, used for 'pulling back' hit.
 
FVector GetRelativeLocation () const
 Gets the literal value of RelativeLocation. 更多...
 
FVector & GetRelativeLocation_DirectMutable ()
 Gets a refence to RelativeLocation with the expectation that it will be modified. 更多...
 
FRotator GetRelativeRotation () const
 Gets the literal value of RelativeRotation. 更多...
 
FRotator & GetRelativeRotation_DirectMutable ()
 Gets a refence to RelativeRotation with the expectation that it will be modified. 更多...
 
FORCEINLINE const FRotationConversionCache & GetRelativeRotationCache () const
 Get the RelativeRotationCache. 更多...
 
FQuat GetRelativeRotationFromWorld (const FQuat &WorldRotation)
 Convenience function to get the relative rotation from the passed in world rotation 更多...
 
FVector GetRelativeScale3D () const
 Gets the literal value of RelativeScale3D. 更多...
 
FVector & GetRelativeScale3D_DirectMutable ()
 Gets a refence to RelativeRotation with the expectation that it will be modified. 更多...
 
FTransform GetRelativeTransform () const
 Returns the transform of the component relative to its parent
 
FVector GetRightVector () const
 Get the right (Y) unit direction vector from this component, in world space. 更多...
 
bool GetShouldUpdatePhysicsVolume () const
 Gets whether or not the cached PhysicsVolume this component overlaps should be updated when the component is moved.
 
virtual FVector GetSocketLocation (FName InSocketName) const
 Get world-space socket or bone location. 更多...
 
virtual FQuat GetSocketQuaternion (FName InSocketName) const
 Get world-space socket or bone FQuat rotation. 更多...
 
virtual FRotator GetSocketRotation (FName InSocketName) const
 Get world-space socket or bone FRotator rotation. 更多...
 
virtual FTransform GetSocketTransform (FName InSocketName, ERelativeTransformSpace TransformSpace=RTS_World) const
 Get world-space socket transform. 更多...
 
void GetSocketWorldLocationAndRotation (FName InSocketName, FVector &OutLocation, FRotator &OutRotation) const
 Find the world-space location and rotation of the given named socket. 更多...
 
FVector GetUpVector () const
 Get the up (Z) unit direction vector from this component, in world space. 更多...
 
bool GetVisibleFlag () const
 Gets the literal value of bVisible. 更多...
 
virtual bool HasAnySockets () const
 Returns true if this component has any sockets
 
virtual bool IsAnySimulatingPhysics () const
 Returns whether the specified body is currently using physics simulation
 
bool IsAttachedTo (const USceneComponent *TestComp) const
 Walks up the attachment chain to see if this component is attached to the supplied component. 更多...
 
FORCEINLINE_DEBUGGABLE bool IsCollisionEnabled () const
 Utility to see if there is any form of collision (query or physics) enabled on this component.
 
bool IsDeferringMovementUpdates () const
 Returns true if movement is currently within the scope of an FScopedMovementUpdate.
 
FORCEINLINE_DEBUGGABLE bool IsPhysicsCollisionEnabled () const
 Utility to see if there is any physics collision enabled on this component.
 
virtual bool IsPostLoadThreadSafe () const override
 Called during async load to determine if PostLoad can be called on the loading thread. 更多...
 
virtual bool IsPrecomputedLightingValid () const
 True if our precomputed lighting is up to date
 
FORCEINLINE_DEBUGGABLE bool IsQueryCollisionEnabled () const
 Utility to see if there is any query collision enabled on this component.
 
virtual bool IsSimulatingPhysics (FName BoneName=NAME_None) const
 Returns whether the specified body is currently using physics simulation
 
bool IsUsingAbsoluteLocation () const
 Gets the literal value of bAbsoluteLocation. 更多...
 
bool IsUsingAbsoluteRotation () const
 Gets the literal value of bAbsoluteRotation. 更多...
 
bool IsUsingAbsoluteScale () const
 Gets the literal value of bAbsoluteScale. 更多...
 
virtual bool IsVisible () const
 Returns true if this component is visible in the current context
 
virtual bool IsVisibleInEditor () const
 Return true if visible in editor
 
virtual bool IsWorldGeometry () const
 Is this component considered 'world' geometry, by default checks if this uses the WorldStatic collision channel
 
void K2_AddLocalOffset (FVector DeltaLocation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport)
 Adds a delta to the location of the component in its local reference frame 更多...
 
void K2_AddLocalRotation (FRotator DeltaRotation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport)
 Adds a delta to the rotation of the component in its local reference frame 更多...
 
void K2_AddLocalTransform (const FTransform &DeltaTransform, bool bSweep, FHitResult &SweepHitResult, bool bTeleport)
 Adds a delta to the transform of the component in its local reference frame. 更多...
 
void K2_AddRelativeLocation (FVector DeltaLocation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport)
 Adds a delta to the translation of the component relative to its parent 更多...
 
void K2_AddRelativeRotation (FRotator DeltaRotation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport)
 Adds a delta the rotation of the component relative to its parent 更多...
 
void K2_AddWorldOffset (FVector DeltaLocation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport)
 Adds a delta to the location of the component in world space. 更多...
 
void K2_AddWorldRotation (FRotator DeltaRotation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport)
 Adds a delta to the rotation of the component in world space. 更多...
 
void K2_AddWorldTransform (const FTransform &DeltaTransform, bool bSweep, FHitResult &SweepHitResult, bool bTeleport)
 Adds a delta to the transform of the component in world space. 更多...
 
void K2_AddWorldTransformKeepScale (const FTransform &DeltaTransform, bool bSweep, FHitResult &SweepHitResult, bool bTeleport)
 Adds a delta to the transform of the component in world space. 更多...
 
bool K2_AttachTo (USceneComponent *InParent, FName InSocketName=NAME_None, EAttachLocation::Type AttachType=EAttachLocation::KeepRelativeOffset, bool bWeldSimulatedBodies=true)
 DEPRECATED - Use AttachToComponent() instead
 
bool K2_AttachToComponent (USceneComponent *Parent, FName SocketName, EAttachmentRule LocationRule, EAttachmentRule RotationRule, EAttachmentRule ScaleRule, bool bWeldSimulatedBodies)
 Attach this component to another scene component, optionally at a named socket. 更多...
 
void K2_DetachFromComponent (EDetachmentRule LocationRule=EDetachmentRule::KeepRelative, EDetachmentRule RotationRule=EDetachmentRule::KeepRelative, EDetachmentRule ScaleRule=EDetachmentRule::KeepRelative, bool bCallModify=true)
 Detach this component from whatever it is attached to. 更多...
 
FVector K2_GetComponentLocation () const
 Return location of the component, in world space
 
FRotator K2_GetComponentRotation () const
 Returns rotation of the component, in world space.
 
FVector K2_GetComponentScale () const
 Returns scale of the component, in world space.
 
FTransform K2_GetComponentToWorld () const
 Get the current component-to-world transform for this component
 
void K2_SetRelativeLocation (FVector NewLocation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport)
 Set the location of the component relative to its parent 更多...
 
void K2_SetRelativeLocationAndRotation (FVector NewLocation, FRotator NewRotation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport)
 Set the location and rotation of the component relative to its parent 更多...
 
void K2_SetRelativeRotation (FRotator NewRotation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport)
 Set the rotation of the component relative to its parent 更多...
 
void K2_SetRelativeTransform (const FTransform &NewTransform, bool bSweep, FHitResult &SweepHitResult, bool bTeleport)
 Set the transform of the component relative to its parent 更多...
 
void K2_SetWorldLocation (FVector NewLocation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport)
 Put this component at the specified location in world space. 更多...
 
void K2_SetWorldLocationAndRotation (FVector NewLocation, FRotator NewRotation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport)
 Set the relative location and rotation of the component to put it at the supplied pose in world space. 更多...
 
void K2_SetWorldTransform (const FTransform &NewTransform, bool bSweep, FHitResult &SweepHitResult, bool bTeleport)
 Set the transform of the component in world space. 更多...
 
bool MoveComponent (const FVector &Delta, const FQuat &NewRotation, bool bSweep, FHitResult *Hit=NULL, EMoveComponentFlags MoveFlags=MOVECOMP_NoFlags, ETeleportType Teleport=ETeleportType::None)
 Tries to move the component by a movement vector (Delta) and sets rotation to NewRotation. 更多...
 
virtual void OnAttachmentChanged ()
 Called when AttachParent changes, to allow the scene to update its attachment state.
 
virtual void OnComponentDestroyed (bool bDestroyingHierarchy) override
 Called when a component is destroyed 更多...
 
virtual void OnRegister () override
 Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called.
 
virtual void OnUnregister () override
 Called when a component is unregistered. 更多...
 
virtual void PostInterpChange (FProperty *PropertyThatChanged) override
 This is called when property is modified by InterpPropertyTracks 更多...
 
virtual void PostNetReceive () override
 Called right after receiving a bunch
 
virtual void PostRepNotifies () override
 Called right after calling all OnRep notifies (called even when there are no notifies)
 
virtual void PreNetReceive () override
 Called right before receiving a bunch
 
virtual void PropagateLightingScenarioChange ()
 Updates any visuals after the lighting has changed
 
virtual void QuerySupportedSockets (TArray< FComponentSocketDescription > &OutSockets) const
 Get a list of sockets this component contains
 
void ResetRelativeTransform ()
 Reset the transform of the component relative to its parent. 更多...
 
void SetAbsolute (bool bNewAbsoluteLocation=false, bool bNewAbsoluteRotation=false, bool bNewAbsoluteScale=false)
 Set which parts of the relative transform should be relative to parent, and which should be relative to world
 
FORCEINLINE void SetComponentToWorld (const FTransform &NewComponentToWorld)
 Sets the cached component to world directly. 更多...
 
void SetHiddenInGame (bool NewHidden, bool bPropagateToChildren=false)
 Changes the value of bHiddenInGame, if false this will disable Visibility during gameplay
 
virtual void SetMobility (EComponentMobility::Type NewMobility)
 Set how often this component is allowed to move during runtime. 更多...
 
void SetPhysicsVolume (APhysicsVolume *NewVolume, bool bTriggerNotifiers)
 Replace current PhysicsVolume to input NewVolume 更多...
 
void SetRelativeLocation_Direct (const FVector NewRelativeLocation)
 Sets the value of RelativeLocation without causing other side effects to this instance. 更多...
 
void SetRelativeRotation_Direct (const FRotator NewRelativeRotation)
 Sets the value of RelativeRotation without causing other side effects to this instance. 更多...
 
void SetRelativeRotationCache (const FRotationConversionCache &InCache)
 Sets the RelativeRotationCache. 更多...
 
void SetRelativeRotationExact (FRotator NewRotation, bool bSweep=false, FHitResult *OutSweepHitResult=nullptr, ETeleportType Teleport=ETeleportType::None)
 Set the rotation of the component relative to its parent and force RelativeRotation to be equal to new rotation. 更多...
 
void SetRelativeScale3D (FVector NewScale3D)
 Set the non-uniform scale of the component relative to its parent
 
void SetRelativeScale3D_Direct (const FVector NewRelativeScale3D)
 Sets the value of RelativeScale3D without causing other side effects to this instance. 更多...
 
void SetRelativeTransform_Direct (const FTransform &NewRelativeTransform)
 Helper function to set the location, rotation, and scale without causing other side effects to this instance. 更多...
 
void SetShouldUpdatePhysicsVolume (bool bInShouldUpdatePhysicsVolume)
 Sets whether or not the cached PhysicsVolume this component overlaps should be updated when the component is moved.
 
void SetupAttachment (USceneComponent *InParent, FName InSocketName=NAME_None)
 Initializes desired Attach Parent and SocketName to be attached to when the component is registered. 更多...
 
void SetUsingAbsoluteLocation (const bool bInAbsoluteLocation)
 Sets the value of bAbsoluteLocation without causing other side effects to this instance.
 
void SetUsingAbsoluteRotation (const bool bInAbsoluteRotation)
 Sets the value of bAbsoluteRotation without causing other side effects to this instance.
 
void SetUsingAbsoluteScale (const bool bInAbsoluteRotation)
 Sets the value of bAbsoluteScale without causing other side effects to this instance.
 
void SetVisibility (bool bNewVisibility, bool bPropagateToChildren=false)
 Set visibility of the component, if during game use this to turn on/off
 
void SetVisibleFlag (const bool bInVisible)
 Sets the value of bVisible without causing other side effects to this instance. 更多...
 
void SetWorldLocationAndRotation (FVector NewLocation, const FQuat &NewRotation, bool bSweep=false, FHitResult *OutSweepHitResult=nullptr, ETeleportType Teleport=ETeleportType::None)
 Set the relative location and FQuat rotation of the component to put it at the supplied pose in world space.
 
void SetWorldLocationAndRotationNoPhysics (const FVector &NewLocation, const FRotator &NewRotation)
 Special version of SetWorldLocationAndRotation that does not affect physics.
 
void SetWorldScale3D (FVector NewScale)
 Set the relative scale of the component to put it at the supplied scale in world space. 更多...
 
virtual bool ShouldCollideWhenPlacing () const
 If true, bounds should be used when placing component/actor in level. 更多...
 
bool ShouldComponentAddToScene () const
 Looking at various values of the component, determines if this component should be added to the scene 更多...
 
virtual bool ShouldCreateRenderState () const override
 Return true if CreateRenderState() should be called
 
bool ShouldRender () const
 return true if it should render
 
bool ShouldSkipUpdateOverlaps () const
 If true, we can use the old computed overlaps
 
bool SnapTo (USceneComponent *InParent, FName InSocketName=NAME_None)
 DEPRECATED - Use AttachToComponent() instead
 
void ToggleVisibility (bool bPropagateToChildren=false)
 Toggle visibility of the component
 
virtual void UpdateBounds ()
 Update the Bounds of the component.
 
void UpdateChildTransforms (EUpdateTransformFlags UpdateTransformFlags=EUpdateTransformFlags::None, ETeleportType Teleport=ETeleportType::None)
 Update transforms of any components attached to this one.
 
virtual void UpdateComponentToWorld (EUpdateTransformFlags UpdateTransformFlags=EUpdateTransformFlags::None, ETeleportType Teleport=ETeleportType::None) override final
 Recalculate the value of our component to world transform
 
bool UpdateOverlaps (const TOverlapArrayView *PendingOverlaps=nullptr, bool bDoNotifies=true, const TOverlapArrayView *OverlapsAtEndLocation=nullptr)
 Queries world and updates overlap tracking state for this component
 
virtual void UpdatePhysicsVolume (bool bTriggerNotifiers)
 Updates the PhysicsVolume of this SceneComponent, if bShouldUpdatePhysicsVolume is true. 更多...
 
 USceneComponent (const FObjectInitializer &ObjectInitializer=FObjectInitializer::Get())
 UObject constructor that takes an optional ObjectInitializer
 
- Public 成员函数 继承自 UActorComponent
virtual void Activate (bool bReset=false)
 Activates the SceneComponent, should be overridden by native child classes. 更多...
 
virtual UObject const * AdditionalStatObject () const
 Give a readable name for this component, including asset name if applicable
 
virtual void AddTickPrerequisiteActor (AActor *PrerequisiteActor)
 Make this component tick after PrerequisiteActor
 
virtual void AddTickPrerequisiteComponent (UActorComponent *PrerequisiteComponent)
 Make this component tick after PrerequisiteComponent.
 
FORCEINLINE bool AllowReregistration () const
 Check whether the component class allows reregistration during ReregisterAllComponents
 
virtual void ApplyWorldOffset (const FVector &InOffset, bool bWorldShift)
 Called by owner actor on position shifting Component should update all relevant data structures to reflect new actor location 更多...
 
virtual void BeginDestroy () override
 Called before destroying the object. 更多...
 
virtual void BeginPlay ()
 Begins Play for the component. 更多...
 
virtual bool CallRemoteFunction (UFunction *Function, void *Parameters, FOutParmRec *OutParms, FFrame *Stack) override
 Call the actor's function remotely 更多...
 
bool CanEverAffectNavigation () const
 Can this component potentially influence navigation
 
void ClearNeedEndOfFrameUpdate ()
 If we belong to a world, clear the request to do a deferred update.
 
bool ComponentHasTag (FName Tag) const
 See if this component contains the supplied tag
 
bool ComponentIsInLevel (const class ULevel *TestLevel) const
 Returns true if this actor is contained by TestLevel.
 
bool ComponentIsInPersistentLevel (bool bIncludeLevelStreamingPersistent) const
 See if this component is in the persistent level
 
void CreatePhysicsState (bool bAllowDeferral=false)
 Create any physics engine information for this component
 
virtual void Deactivate ()
 Deactivates the SceneComponent.
 
virtual void DestroyComponent (bool bPromoteChildren=false)
 Unregister the component, remove it from its outer Actor's Components array and mark for pending kill.
 
void DestroyPhysicsState ()
 Shut down any physics engine structure for this component
 
void DetermineUCSModifiedProperties ()
 Initializes the list of properties that are modified by the UserConstructionScript
 
void DoDeferredRenderUpdates_Concurrent ()
 Uses the bRenderStateDirty/bRenderTransformDirty to perform any necessary work on this component. 更多...
 
virtual void EndPlay (const EEndPlayReason::Type EndPlayReason)
 Ends gameplay for this component. 更多...
 
virtual bool GetComponentClassCanReplicate () const
 Returns true if this type of component can ever replicate, override to disable the default behavior
 
virtual TStructOnScope< FActorComponentInstanceData > GetComponentInstanceData () const
 Called before we throw away components during RerunConstructionScripts, to cache any data we wish to persist across that operation
 
ULevel * GetComponentLevel () const
 Return the ULevel that this Component is part of.
 
float GetComponentTickInterval () const
 Returns the tick interval for this component's primary tick function, which is the frequency in seconds at which it will be executed
 
virtual int32 GetFunctionCallspace (UFunction *Function, FFrame *Stack) override
 Return the space this function should be called. 更多...
 
FORCEINLINE bool GetIsReplicated () const
 Returns whether replication is enabled or not.
 
virtual void GetLifetimeReplicatedProps (TArray< FLifetimeProperty > &OutLifetimeProps) const override
 Returns properties that are replicated for the lifetime of the actor channel
 
uint32 GetMarkedForEndOfFrameUpdateState () const
 Tracks whether the component has been added to one of the world's end of frame update lists
 
uint32 GetMarkedForPreEndOfFrameSync () const
 Tracks whether the component has been added to one of the world's end of frame update lists
 
ENetMode GetNetMode () const
 Get the network mode (dedicated server, client, standalone, etc) for this component. 更多...
 
AActor * GetOwner () const
 Follow the Outer chain to get the AActor that 'Owns' this component
 
template<class T >
T * GetOwner () const
 Templated version of GetOwner(), will return nullptr if cast fails
 
ENetRole GetOwnerRole () const
 Get the network role of the Owner, or ROLE_None if there is no owner.
 
virtual FString GetReadableName () const
 Returns a readable name for this component, including the asset name if applicable By default this appends a space plus AdditionalStatObject()
 
class FSceneInterface * GetScene () const
 Returns the rendering scene associated with this component
 
void GetUCSModifiedProperties (TSet< const FProperty * > &ModifiedProperties) const
 Returns the list of properties that are modified by the UserConstructionScript
 
int32 GetUCSSerializationIndex () const
 Returns the UCS serialization index. 更多...
 
virtual UWorld * GetWorld () const override final
 Getter for the cached world pointer, will return null if the component is not actually spawned in a level
 
bool HasBeenCreated () const
 Indicates that OnCreatedComponent has been called, but OnDestroyedComponent has not yet
 
bool HasBeenInitialized () const
 Indicates that InitializeComponent has been called, but UninitializeComponent has not yet
 
bool HasBegunPlay () const
 Indicates that BeginPlay has been called, but EndPlay has not yet
 
virtual void InitializeComponent ()
 Initializes the component. 更多...
 
void InvalidateLightingCache ()
 Invalidate lighting cache with default options.
 
virtual void InvalidateLightingCacheDetailed (bool bInvalidateBuildEnqueuedLighting, bool bTranslationOnly)
 Called when this actor component has moved, allowing it to discard statically cached lighting information.
 
bool IsActive () const
 Returns whether the component is active or not 更多...
 
bool IsBeingDestroyed () const
 Returns whether the component is in the process of being destroyed.
 
virtual bool IsComponentTickEnabled () const
 Returns whether this component has tick enabled or not
 
bool IsCreatedByConstructionScript () const
 Returns true if instances of this component are created by either the user or simple construction script
 
bool IsEditableWhenInherited () const
 True if this component can be modified when it was inherited from a parent actor class
 
virtual bool IsNameStableForNetworking () const override
 IsNameStableForNetworking means an object can be referred to its path name (relative to outer) over the network
 
virtual bool IsNavigationRelevant () const
 Override to specify that a component is relevant to the navigation system
 
bool IsNetMode (ENetMode Mode) const
 Test whether net mode is the given mode. 更多...
 
bool IsNetSimulating () const
 Returns true if we are replicating and this client is not authoritative
 
bool IsNetStartupComponent () const
 Returns true if this component was owned by a net startup actor during level load.
 
bool IsOwnerRunningUserConstructionScript () const
 See if the owning Actor is currently running the UCS
 
bool IsOwnerSelected () const
 Returns whether the component's owner is selected in the editor
 
bool IsPhysicsStateCreated () const
 Returns true if the physics 'state' (e.g. 更多...
 
virtual bool IsReadyForOwnerToAutoDestroy () const
 Overridable check for a component to indicate to its Owner that it should prevent the Actor from auto destroying when finished
 
FORCEINLINE bool IsRegistered () const
 See if this component is currently registered
 
bool IsRenderStateCreated () const
 Returns true if the render 'state' (e.g. 更多...
 
bool IsRenderStateDirty () const
 Is this component in need of its whole state being sent to the renderer?
 
bool IsRenderTransformDirty () const
 Is this component's transform in need of sending to the renderer?
 
virtual bool IsSupportedForNetworking () const override
 IsSupportedForNetworking means an object can be referenced over the network
 
void K2_DestroyComponent (UObject *Object)
 Unregister and mark for pending kill a component. 更多...
 
void MarkForNeededEndOfFrameRecreate ()
 If we belong to a world, mark this for a deferred update, otherwise do it now.
 
void MarkForNeededEndOfFrameUpdate ()
 If we belong to a world, mark this for a deferred update, otherwise do it now.
 
void MarkRenderDynamicDataDirty ()
 Indicate that dynamic data for this component needs to be sent at the end of the frame.
 
void MarkRenderStateDirty ()
 Mark the render state as dirty - will be sent to the render thread at the end of the frame.
 
void MarkRenderTransformDirty ()
 Marks the transform as dirty - will be sent to the render thread at the end of the frame
 
virtual bool NeedsLoadForClient () const override
 Called during saving to determine the load flags to save with the object. 更多...
 
virtual bool NeedsLoadForEditorGame () const override
 Called during saving to include this object in client/servers running in editor builds, even if they wouldn't normally be. 更多...
 
virtual bool NeedsLoadForServer () const override
 Called during saving to determine the load flags to save with the object. 更多...
 
virtual void OnActorEnableCollisionChanged ()
 Called on each component when the Actor's bEnableCollisionChanged flag changes
 
virtual void OnComponentCreated ()
 Called when a component is created (not loaded). 更多...
 
virtual void OnComponentDestroyed (bool bDestroyingHierarchy)
 Called when a component is destroyed 更多...
 
virtual void OnEndOfFrameUpdateDuringTick ()
 Allows components to handle an EOF update happening mid tick. 更多...
 
virtual void OnPreEndOfFrameSync ()
 Allows components to wait on outstanding tasks prior to sending EOF update data. 更多...
 
virtual void OnRep_IsActive ()
 Handles replication of active state, handles ticking by default but should be overridden as needed
 
virtual void PostInitProperties () override
 Called after the C++ constructor and after the properties have been initialized, including those loaded from config. 更多...
 
virtual void PostLoad () override
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
virtual void PostRename (UObject *OldOuter, const FName OldName) override
 Called at the end of Rename(), but only if the rename was actually carried out
 
virtual void PreReplication (IRepChangedPropertyTracker &ChangedPropertyTracker)
 Called on the component right before replication occurs
 
void ReceiveBeginPlay ()
 Blueprint implementable event for when the component is beginning play, called before its owning actor's BeginPlay or when the component is dynamically created if the Actor has already BegunPlay.
 
void ReceiveEndPlay (EEndPlayReason::Type EndPlayReason)
 Blueprint implementable event for when the component ends play, generally via destruction or its Actor's EndPlay.
 
void ReceiveTick (float DeltaSeconds)
 Event called every frame if tick is enabled
 
void RecreatePhysicsState ()
 Recreate the physics state right way.
 
void RecreateRenderState_Concurrent ()
 Recreate the render state right away. 更多...
 
void RegisterAllComponentTickFunctions (bool bRegister)
 When called, will call the virtual call chain to register all of the tick functions Do not override this function or make it virtual 更多...
 
void RegisterComponent ()
 Register this component, creating any rendering/physics state. 更多...
 
void RegisterComponentWithWorld (UWorld *InWorld, FRegisterComponentContext *Context=nullptr)
 Registers a component with a specific world, which creates any visual/physical state 更多...
 
virtual void RemoveTickPrerequisiteActor (AActor *PrerequisiteActor)
 Remove tick dependency on PrerequisiteActor.
 
virtual void RemoveTickPrerequisiteComponent (UActorComponent *PrerequisiteComponent)
 Remove tick dependency on PrerequisiteComponent.
 
void RemoveUCSModifiedProperties (const TArray< FProperty * > &Properties)
 Removes specified properties from the list of UCS-modified properties
 
virtual bool Rename (const TCHAR *NewName=NULL, UObject *NewOuter=NULL, ERenameFlags Flags=REN_None) override
 Rename this object to a unique name, or change its outer. 更多...
 
virtual bool ReplicateSubobjects (class UActorChannel *Channel, class FOutBunch *Bunch, FReplicationFlags *RepFlags)
 Allows a component to replicate other subobject on the actor

 
virtual bool RequiresGameThreadEndOfFrameRecreate () const
 return true if this component requires end of frame recreates to happen from the game thread.
 
virtual bool RequiresGameThreadEndOfFrameUpdates () const
 return true if this component requires end of frame updates to happen from the game thread.
 
virtual bool RequiresPreEndOfFrameSync () const
 return true if this component needs to sync to tasks before end of frame updates are executed
 
void ReregisterComponent ()
 Unregisters and immediately re-registers component.
 
virtual void Serialize (FArchive &Ar) override
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
virtual void SetActive (bool bNewActive, bool bReset=false)
 Sets whether the component is active or not 更多...
 
void SetActiveFlag (const bool bNewIsActive)
 Sets the value of bIsActive without causing other side effects to this instance. 更多...
 
virtual void SetAutoActivate (bool bNewAutoActivate)
 Sets whether the component should be auto activate or not. 更多...
 
void SetCanEverAffectNavigation (bool bRelevant)
 set value of bCanEverAffectNavigation flag and update navigation octree if needed
 
virtual void SetComponentTickEnabled (bool bEnabled)
 Set this component's tick functions to be enabled or disabled. 更多...
 
virtual void SetComponentTickEnabledAsync (bool bEnabled)
 Spawns a task on GameThread that will call SetComponentTickEnabled 更多...
 
void SetComponentTickInterval (float TickInterval)
 Sets the tick interval for this component's primary tick function. 更多...
 
void SetComponentTickIntervalAndCooldown (float TickInterval)
 Sets the tick interval for this component's primary tick function. 更多...
 
void SetIsNetStartupComponent (const bool bInIsNetStartupComponent)
 This should only be called by the engine in ULevel::InitializeNetworkActors to initialize bIsNetStartupComponent.
 
void SetIsReplicated (bool ShouldReplicate)
 Enable or disable replication. 更多...
 
void SetNetAddressable ()
 This signifies the component can be ID'd by name over the network. 更多...
 
void SetTickableWhenPaused (bool bTickableWhenPaused)
 Sets whether this component can tick when paused.
 
void SetTickGroup (ETickingGroup NewTickGroup)
 Changes the ticking group for this component
 
bool SetupActorComponentTickFunction (struct FTickFunction *TickFunction)
 Set up a tick function for a component in the standard way. 更多...
 
virtual void TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction)
 Function called every frame on this ActorComponent. 更多...
 
virtual void ToggleActive ()
 Toggles the active state of the component
 
 UActorComponent (const FObjectInitializer &ObjectInitializer=FObjectInitializer::Get())
 Default UObject constructor that takes an optional ObjectInitializer.
 
virtual void UninitializeComponent ()
 Handle this component being Uninitialized. 更多...
 
void UnregisterComponent ()
 Unregister this component, destroying any rendering/physics state.
 
virtual void UpdateComponentToWorld (EUpdateTransformFlags UpdateTransformFlags=EUpdateTransformFlags::None, ETeleportType Teleport=ETeleportType::None)
 Recalculate the value of our component to world transform
 
- Public 成员函数 继承自 UObject
void AbortInsideMemberFunction () const
 Abort with a member function call at the top of the callstack, helping to ensure that most platforms will stuff this object's memory into the resulting minidump.
 
virtual bool AreNativePropertiesIdenticalTo (UObject *Other) const
 Returns whether native properties are identical to the one of the passed in component. 更多...
 
virtual void BeginDestroy ()
 Called before destroying the object. 更多...
 
virtual void BuildSubobjectMapping (UObject *OtherObject, TMap< UObject *, UObject * > &ObjectMapping) const
 Given OtherObject (which will be the same type as 'this'), recursively find any matching sub-objects from 'this' that also exist within OtherObject, and add the mappings to ObjectMapping. 更多...
 
void CallAddReferencedObjects (FReferenceCollector &Collector)
 Helper function to call AddReferencedObjects for this object's class. 更多...
 
void CallFunction (FFrame &Stack, RESULT_DECL, UFunction *Function)
 Internal VM method for executing a function
 
bool CallFunctionByNameWithArguments (const TCHAR *Cmd, FOutputDevice &Ar, UObject *Executor, bool bForceCallWithNonExec=false)
 Handle calling a function by name when executed from the console or a command line
 
virtual bool CallRemoteFunction (UFunction *Function, void *Parms, struct FOutParmRec *OutParms, FFrame *Stack)
 Call the actor's function remotely 更多...
 
bool CheckDefaultSubobjects (bool bForceCheck=false) const
 Checks default sub-object assumptions. 更多...
 
void CollectDefaultSubobjects (TArray< UObject * > &OutDefaultSubobjects, bool bIncludeNestedSubobjects=false) const
 Uses the TArchiveObjectReferenceCollector to build a list of all components referenced by this object which have this object as the outer 更多...
 
bool ConditionalBeginDestroy ()
 Called before destroying the object. 更多...
 
bool ConditionalFinishDestroy ()
 Called when an object is actually destroyed, memory should never be accessed again
 
void ConditionalPostLoad ()
 PostLoad if needed.
 
void ConditionalPostLoadSubobjects (struct FObjectInstancingGraph *OuterInstanceGraph=NULL)
 Instances subobjects and components for objects being loaded from disk, if necessary. 更多...
 
 DECLARE_FUNCTION (execBreakpoint)
 Breakpoint; only observed in the editor; executing it at any other time is a NOP
 
 DECLARE_FUNCTION (execInstrumentation)
 Instrumentation event for profiling; only observed in the builds with blueprint instrumentation
 
 DECLARE_FUNCTION (execPopExecutionFlow)
 Pops a code offset from the execution flow stack and starts execution there. 更多...
 
 DECLARE_FUNCTION (execPopExecutionFlowIfNot)
 Pops a code offset from the execution flow stack and starts execution there, if a condition is not true. 更多...
 
 DECLARE_FUNCTION (execPushExecutionFlow)
 Push a code offset onto the execution flow stack for future execution. 更多...
 
 DECLARE_FUNCTION (execReturnNothing)
 failsafe for functions that return a value - returns the zero value for a property and logs that control reached the end of a non-void function
 
 DECLARE_FUNCTION (execTracepoint)
 Tracepoint; only observed in the editor; executing it at any other time is a NOP
 
 DECLARE_FUNCTION (ProcessInternal)
 Internal function call processing. 更多...
 
void DestroyNonNativeProperties ()
 Destroy properties that won't be destroyed by the native destructor
 
void ExecuteUbergraph (int32 EntryPoint)
 Execute the ubergraph from a specific entry point
 
virtual void ExportCustomProperties (FOutputDevice &Out, uint32 Indent)
 Exports the property values for the specified object as text to the output device. 更多...
 
UFunction * FindFunction (FName InName) const
 Returns a UFunction with the specified name, wrapper for UClass::FindFunctionByName()
 
UFunction * FindFunctionChecked (FName InName) const
 Version of FindFunction() that will assert if the function was not found
 
virtual void FinishDestroy ()
 Called to finish destroying the object. 更多...
 
UObject * GetArchetype () const
 Return the template this object is based on. 更多...
 
void GetArchetypeInstances (TArray< UObject * > &Instances)
 Builds a list of objects which have this object in their archetype chain. 更多...
 
virtual void GetAssetRegistryTags (TArray< FAssetRegistryTag > &OutTags) const
 Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects 更多...
 
virtual const TCHAR * GetConfigOverridePlatform () const
 Returns the override config hierarchy platform (if NDAd platforms need defaults to not be in Base*.ini but still want editor to load them)
 
FString GetDefaultConfigFilename () const
 Get the default config filename for the specified UObject
 
virtual FString GetDesc ()
 Return a one line description of an object for viewing in the thumbnail view of the generic browser
 
FString GetDetailedInfo () const
 This will return detail info about this specific object. 更多...
 
virtual FName GetExporterName (void)
 Returns the name of the exporter factory used to export this object Used when multiple factories have the same extension
 
virtual int32 GetFunctionCallspace (UFunction *Function, FFrame *Stack)
 Return the space this function should be called. 更多...
 
FString GetGlobalUserConfigFilename () const
 Get the global user override config filename for the specified UObject
 
virtual void GetLifetimeReplicatedProps (TArray< class FLifetimeProperty > &OutLifetimeProps) const
 Returns properties that are replicated for the lifetime of the actor channel
 
virtual bool GetNativePropertyValues (TMap< FString, FString > &out_PropertyValues, uint32 ExportFlags=0) const
 Callback for retrieving a textual representation of natively serialized properties. 更多...
 
virtual int32 GetNetPushIdDynamic () const
 Should only ever be used by internal systems.
 
virtual void GetPreloadDependencies (TArray< UObject * > &OutDeps)
 Called during cooking. 更多...
 
virtual void GetPrestreamPackages (TArray< UObject * > &OutPrestream)
 Called during cooking. 更多...
 
virtual FPrimaryAssetId GetPrimaryAssetId () const
 Returns an Type:Name pair representing the PrimaryAssetId for this object. 更多...
 
FString GetProjectUserConfigFilename () const
 Get the project user override config filename for the specified UObject
 
SIZE_T GetResourceSizeBytes (EResourceSizeMode::Type Mode)
 Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the simple version which just returns the total number of bytes used by this object. 更多...
 
virtual void GetResourceSizeEx (FResourceSizeEx &CumulativeResourceSize)
 Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). 更多...
 
virtual FRestoreForUObjectOverwrite * GetRestoreForUObjectOverwrite ()
 Save information for StaticAllocateObject in the case of overwriting an existing object. 更多...
 
virtual UScriptStruct * GetSparseClassDataStruct () const
 Return the UStruct corresponding to the sidecar data structure that stores data that is constant for all instances of this class.
 
virtual void GetSubobjectsWithStableNamesForNetworking (TArray< UObject * > &ObjList)
 Returns a list of sub-objects that have stable names for networking
 
template<class T >
FORCEINLINE bool Implements () const
 Returns true if this object implements the interface T, false otherwise.
 
template<class T >
bool Implements () const
 Returns true if this object implements the interface T, false otherwise.
 
virtual void ImportCustomProperties (const TCHAR *SourceText, FFeedbackContext *Warn)
 Exports the property values for the specified object as text to the output device. 更多...
 
void InstanceSubobjectTemplates (struct FObjectInstancingGraph *InstanceGraph=NULL)
 Wrapper for calling UClass::InstanceSubobjectTemplates() for this object.
 
virtual bool IsAsset () const
 Returns true if this object is considered an asset.
 
bool IsBasedOnArchetype (const UObject *const SomeObject) const
 Determine if this object has SomeObject in its archetype chain.
 
virtual bool IsDestructionThreadSafe () const
 Called during garbage collection to determine if an object can have its destructor called on a worker thread. 更多...
 
virtual bool IsEditorOnly () const
 Called during saving to determine if the object is forced to be editor only or not 更多...
 
virtual bool IsFullNameStableForNetworking () const
 IsFullNameStableForNetworking means an object can be referred to its full path name over the network
 
bool IsInBlueprint () const
 Returns whether this object is contained in or part of a blueprint object
 
virtual bool IsLocalizedResource () const
 Returns true if this object is considered a localized resource.
 
virtual bool IsNameStableForNetworking () const
 IsNameStableForNetworking means an object can be referred to its path name (relative to outer) over the network
 
virtual bool IsPostLoadThreadSafe () const
 Called during async load to determine if PostLoad can be called on the loading thread. 更多...
 
virtual bool IsReadyForAsyncPostLoad () const
 Called before calling PostLoad() in FAsyncPackage::PostLoadObjects(). 更多...
 
virtual bool IsReadyForFinishDestroy ()
 Called to check if the object is ready for FinishDestroy. 更多...
 
virtual bool IsSafeForRootSet () const
 Returns true if this object is safe to add to the root set.
 
bool IsSelected () const
 Test the selection state of a UObject 更多...
 
virtual bool IsSupportedForNetworking () const
 IsSupportedForNetworking means an object can be referenced over the network
 
void LoadConfig (UClass *ConfigClass=NULL, const TCHAR *Filename=NULL, uint32 PropagationFlags=UE4::LCPF_None, class FProperty *PropertyToLoad=NULL)
 Imports property values from an .ini file. 更多...
 
virtual void MarkAsEditorOnlySubobject ()
 Called during subobject creation to mark this component as editor only, which causes it to get stripped in packaged builds
 
FORCEINLINE bool Modify (bool bAlwaysMarkDirty=true)
 Note that the object will be modified. 更多...
 
virtual bool NeedsLoadForClient () const
 Called during saving to determine the load flags to save with the object. 更多...
 
virtual bool NeedsLoadForEditorGame () const
 Called during saving to include this object in client/servers running in editor builds, even if they wouldn't normally be. 更多...
 
virtual bool NeedsLoadForServer () const
 Called during saving to determine the load flags to save with the object. 更多...
 
virtual bool NeedsLoadForTargetPlatform (const class ITargetPlatform *TargetPlatform) const
 Called during saving to determine the load flags to save with the object. 更多...
 
void OutputReferencers (FOutputDevice &Ar, FReferencerInformationList *Referencers=NULL)
 Outputs a string to an arbitrary output device, describing the list of objects which are holding references to this one. 更多...
 
virtual void OverridePerObjectConfigSection (FString &SectionName)
 Allows PerObjectConfig classes, to override the ini section name used for the PerObjectConfig object. 更多...
 
void ParseParms (const TCHAR *Parms)
 Import an object from a file.
 
virtual void PostCDOContruct ()
 Called after the C++ constructor has run on the CDO for a class. 更多...
 
virtual void PostDuplicate (bool bDuplicateForPIE)
 Called after duplication & serialization and before PostLoad. 更多...
 
virtual void PostEditImport ()
 Called after importing property values for this object (paste, duplicate or .t3d import) Allow the object to perform any cleanup for properties which shouldn't be duplicated or are unsupported by the script serialization
 
virtual void PostInitProperties ()
 Called after the C++ constructor and after the properties have been initialized, including those loaded from config. 更多...
 
virtual void PostInterpChange (FProperty *PropertyThatChanged)
 This is called when property is modified by InterpPropertyTracks 更多...
 
virtual void PostLoad ()
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
virtual void PostLoadSubobjects (FObjectInstancingGraph *OuterInstanceGraph)
 Instances components for objects being loaded from disk, if necessary. 更多...
 
virtual void PostNetReceive ()
 Called right after receiving a bunch
 
virtual void PostReloadConfig (class FProperty *PropertyThatWasLoaded)
 Called from ReloadConfig after the object has reloaded its configuration data.
 
virtual void PostRename (UObject *OldOuter, const FName OldName)
 Called at the end of Rename(), but only if the rename was actually carried out
 
virtual void PostRepNotifies ()
 Called right after calling all OnRep notifies (called even when there are no notifies)
 
virtual void PostSaveRoot (bool bCleanupIsRequired)
 Called from within SavePackage on the passed in base/root object. 更多...
 
virtual void PreDestroyFromReplication ()
 Called right before being marked for destruction due to network replication
 
virtual void PreDuplicate (FObjectDuplicationParameters &DupParams)
 Called before duplication. 更多...
 
virtual void PreNetReceive ()
 Called right before receiving a bunch
 
virtual void PreSave (const class ITargetPlatform *TargetPlatform)
 Presave function. 更多...
 
virtual bool PreSaveRoot (const TCHAR *Filename)
 Called from within SavePackage on the passed in base/root object. 更多...
 
virtual bool ProcessConsoleExec (const TCHAR *Cmd, FOutputDevice &Ar, UObject *Executor)
 This function handles a console exec sent to the object; it is virtual so 'nexus' objects like a player controller can reroute the command to several different objects.
 
virtual void ProcessEvent (UFunction *Function, void *Parms)
 Called by VM to execute a UFunction with a filled in UStruct of parameters
 
virtual UClass * RegenerateClass (UClass *ClassToRegenerate, UObject *PreviousCDO)
 Called on the target when a class is loaded with ClassGeneratedBy is loaded. 更多...
 
void ReinitializeProperties (UObject *SourceObject=NULL, struct FObjectInstancingGraph *InstanceGraph=NULL)
 Wrapper function for InitProperties() which handles safely tearing down this object before re-initializing it from the specified source object. 更多...
 
void ReloadConfig (UClass *ConfigClass=NULL, const TCHAR *Filename=NULL, uint32 PropagationFlags=UE4::LCPF_None, class FProperty *PropertyToLoad=NULL)
 Wrapper method for LoadConfig that is used when reloading the config data for objects at runtime which have already loaded their config data at least once. 更多...
 
virtual bool Rename (const TCHAR *NewName=nullptr, UObject *NewOuter=nullptr, ERenameFlags Flags=REN_None)
 Rename this object to a unique name, or change its outer. 更多...
 
void RetrieveReferencers (TArray< FReferencerInformation > *OutInternalReferencers, TArray< FReferencerInformation > *OutExternalReferencers)
 Called by OutputReferencers() to get the internal list of referencers to write
 
void SaveConfig (uint64 Flags=CPF_Config, const TCHAR *Filename=NULL, FConfigCacheIni *Config=GConfig, bool bAllowCopyToDefaultObject=true)
 Save configuration out to ini files 更多...
 
virtual void Serialize (FArchive &Ar)
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
void SerializeScriptProperties (FArchive &Ar) const
 Serializes the script property data located at Data. 更多...
 
void SerializeScriptProperties (FStructuredArchive::FSlot Slot) const
 Serializes the script property data located at Data. 更多...
 
void SetLinker (FLinkerLoad *LinkerLoad, int32 LinkerIndex, bool bShouldDetachExisting=true)
 Changes the linker and linker index to the passed in one. 更多...
 
virtual void ShutdownAfterError ()
 After a critical error, perform any mission-critical cleanup, such as restoring the video mode orreleasing hardware resources.
 
void SkipFunction (FFrame &Stack, RESULT_DECL, UFunction *Function)
 advances Stack's code past the parameters to the given Function and if the function has a return value, copies the zero value for that property to the memory for the return value 更多...
 
virtual void TagSubobjects (EObjectFlags NewFlags)
 Tags objects that are part of the same asset with the specified object flag, used for GC checking 更多...
 
void UpdateDefaultConfigFile (const FString &SpecificFileLocation="")
 Saves just the section(s) for this class into the default ini file for the class (with just the changes from base)
 
void UpdateGlobalUserConfigFile ()
 Saves just the section(s) for this class into the global user ini file for the class (with just the changes from base)
 
void UpdateProjectUserConfigFile ()
 Saves just the section(s) for this class into the project user ini file for the class (with just the changes from base)
 
void UpdateSinglePropertyInConfigFile (const FProperty *InProperty, const FString &InConfigIniName)
 Saves just the property into the global user ini file for the class (with just the changes from base)
 
- Public 成员函数 继承自 UObjectBaseUtility
void AddToCluster (UObjectBaseUtility *ClusterRootOrObjectFromCluster, bool bAddAsMutableObject=false)
 Adds this objects to a GC cluster that already exists 更多...
 
FORCEINLINE void AddToRoot ()
 Add an object to the root set. 更多...
 
FORCEINLINE void AppendName (FString &ResultString) const
 Optimized version of GetName that appends to an existing string
 
FORCEINLINE bool AtomicallyClearInternalFlags (EInternalObjectFlags FlagsToClear) const
 Atomically clears passed in internal flags. 更多...
 
virtual bool CanBeClusterRoot () const
 Called after load to determine if the object can be a cluster root 更多...
 
virtual bool CanBeInCluster () const
 Called during cluster construction if the object can be added to a cluster 更多...
 
FORCEINLINE void ClearFlags (EObjectFlags NewFlags)
 Clears subset of flags for a specific object
 
FORCEINLINE void ClearInternalFlags (EInternalObjectFlags FlagsToClear) const
 Clears passed in internal flags. 更多...
 
FORCEINLINE void ClearPendingKill ()
 Unmarks this object as PendingKill.
 
virtual void CreateCluster ()
 Called after PostLoad to create UObject cluster
 
void DetachExternalPackage ()
 Utility function to temporarily detach the object external package, if any GetPackage will report the outer's package once detached
 
const UClass * FindNearestCommonBaseClass (const UClass *TestClass) const
 Finds the most-derived class which is a parent of both TestClass and this object's class. 更多...
 
FORCEINLINE EObjectMark GetAllMarks () const
 Returns all of the object marks on a specific object 更多...
 
FString GetFullGroupName (bool bStartWithOuter) const
 Walks up the chain of packages until it reaches the top level, which it ignores. 更多...
 
void GetFullName (const UObject *StopOuter, FString &ResultString, EObjectFullNameFlags Flags=EObjectFullNameFlags::None) const
 Version of GetFullName() that eliminates unnecessary copies.
 
FString GetFullName (const UObject *StopOuter=NULL, EObjectFullNameFlags Flags=EObjectFullNameFlags::None) const
 Returns the fully qualified pathname for this object as well as the name of the class, in the format: 'ClassName Outermost[.Outer].Name'. 更多...
 
void * GetInterfaceAddress (UClass *InterfaceClass)
 Returns a pointer to this object safely converted to a pointer of the specified interface class. 更多...
 
FORCEINLINE EInternalObjectFlags GetInternalFlags () const
 Gets internal flags. 更多...
 
class FLinkerLoad * GetLinker () const
 Returns the linker for this object. 更多...
 
int32 GetLinkerCustomVersion (FGuid CustomVersionKey) const
 Returns the custom version of the linker for this object corresponding to the given custom version key. 更多...
 
int32 GetLinkerIndex () const
 Returns this object's LinkerIndex. 更多...
 
int32 GetLinkerLicenseeUE4Version () const
 Returns the licensee version of the linker for this object. 更多...
 
int32 GetLinkerUE4Version () const
 Returns the UE4 version of the linker for this object. 更多...
 
FORCEINLINE EObjectFlags GetMaskedFlags (EObjectFlags Mask=RF_AllFlags) const
 Returns object flags that are both in the mask and set on the object. 更多...
 
FORCEINLINE FString GetName () const
 Returns the name of this object (with no path information) 更多...
 
FORCEINLINE void GetName (FString &ResultString) const
 Optimized version of GetName that overwrites an existing string
 
void * GetNativeInterfaceAddress (UClass *InterfaceClass)
 Returns a pointer to the I* native interface object that this object implements. 更多...
 
const void * GetNativeInterfaceAddress (UClass *InterfaceClass) const
 Returns a pointer to the const I* native interface object that this object implements. 更多...
 
UPackage * GetOutermost () const
 Legacy function, has the same behavior as GetPackage use GetPackage instead. 更多...
 
UObject * GetOutermostObject () const
 Walks up the list of outers until it finds the top-level one that isn't a package. 更多...
 
UPackage * GetPackage () const
 Walks up the list of outers until it finds a package directly associated with the object. 更多...
 
void GetPathName (const UObject *StopOuter, FString &ResultString) const
 Versions of GetPathName() that eliminates unnecessary copies and allocations.
 
FString GetPathName (const UObject *StopOuter=NULL) const
 Returns the fully qualified pathname for this object, in the format: 'Outermost[.Outer].Name' 更多...
 
FORCEINLINE TStatId GetStatID (bool bForDeferredUse=false) const
 Returns the stat ID of the object, used for profiling. 更多...
 
template<typename T >
T * GetTypedOuter () const
 Traverses the outer chain searching for the next object of a certain type. 更多...
 
UObject * GetTypedOuter (UClass *Target) const
 Traverses the outer chain searching for the next object of a certain type. 更多...
 
FORCEINLINE bool HasAllFlags (EObjectFlags FlagsToCheck) const
 Used to safely check whether all of the passed in flags are set. 更多...
 
FORCEINLINE bool HasAllMarks (EObjectMark Marks) const
 Tests an object for having ALL of a set of marks 更多...
 
FORCEINLINE bool HasAnyFlags (EObjectFlags FlagsToCheck) const
 Used to safely check whether any of the passed in flags are set. 更多...
 
FORCEINLINE bool HasAnyInternalFlags (EInternalObjectFlags FlagsToCheck) const
 Used to safely check whether any of the passed in internal flags are set. 更多...
 
FORCEINLINE bool HasAnyMarks (EObjectMark Marks) const
 Tests an object for having ANY of a set of marks 更多...
 
template<class T >
bool IsA () const
 Returns true if this object is of the template type.
 
template<typename OtherClassType >
FORCEINLINE bool IsA (OtherClassType SomeBase) const
 Returns true if this object is of the specified type.
 
bool IsDefaultSubobject () const
 Returns whether this component was instanced from a component/subobject template, or if it is a component/subobject template. 更多...
 
bool IsIn (const UObject *SomeOuter) const
 Return the dispatch to IsInOuter or IsInPackage depending on SomeOuter's class. 更多...
 
bool IsIn (const UPackage *SomePackage) const
 Overload to determine if an object is in the specified package which can now be different than its outer chain. 更多...
 
bool IsInA (const UClass *SomeBaseClass) const
 Find out if this object is inside (has an outer) that is of the specified class 更多...
 
bool IsInOuter (const UObject *SomeOuter) const
 Returns true if the object is contained in the specified outer.
 
bool IsInPackage (const UPackage *SomePackage) const
 Returns true if the object is contained in the specified package.
 
FORCEINLINE bool IsNative () const
 Checks if the object is native.
 
FORCEINLINE bool IsPendingKill () const
 Checks the PendingKill flag to see if it is dead but memory still valid
 
FORCEINLINE bool IsPendingKillOrUnreachable () const
 Checks if the object is pending kill or unreachable.
 
FORCEINLINE bool IsRooted () const
 Returns true if this object is explicitly rooted 更多...
 
bool IsTemplate (EObjectFlags TemplateTypes=RF_ArchetypeObject|RF_ClassDefaultObject) const
 Determines whether this object is a template object 更多...
 
FORCEINLINE bool IsUnreachable () const
 Checks if the object is unreachable.
 
FORCEINLINE void Mark (EObjectMark Marks) const
 Adds marks to an object 更多...
 
bool MarkPackageDirty () const
 Finds the outermost package and marks it dirty. 更多...
 
FORCEINLINE void MarkPendingKill ()
 Marks this object as RF_PendingKill.
 
virtual void OnClusterMarkedAsPendingKill ()
 Called during Garbage Collection to perform additional cleanup when the cluster is about to be destroyed due to PendingKill flag being set on it.
 
FORCEINLINE bool operator< (const UObjectBaseUtility &Other) const
 Overloaded < operator. 更多...
 
void ReattachExternalPackage ()
 Utility function to reattach the object external package, if any GetPackage will report the object external package if set after this call
 
FORCEINLINE void RemoveFromRoot ()
 Remove an object from the root set.
 
bool RootPackageHasAnyFlags (uint32 CheckFlagMask) const
 Checks whether this object's top-most package has any of the specified flags 更多...
 
FORCEINLINE void SetFlags (EObjectFlags NewFlags)
 Modifies object flags for a specific object
 
FORCEINLINE void SetInternalFlags (EInternalObjectFlags FlagsToSet) const
 Clears passed in internal flags. 更多...
 
FORCEINLINE bool ThisThreadAtomicallyClearedRFUnreachable ()
 Atomically clear the unreachable flag 更多...
 
FORCEINLINE void UnMark (EObjectMark Marks) const
 Removes marks from and object 更多...
 
- Public 成员函数 继承自 UObjectBase
FORCENOINLINE void AtomicallyClearFlags (EObjectFlags FlagsToClear)
 Atomically clears the specified flags. 更多...
 
FORCENOINLINE void AtomicallySetFlags (EObjectFlags FlagsToAdd)
 Atomically adds the specified flags. 更多...
 
FORCEINLINE UClass * GetClass () const
 Returns the UClass that defines the fields of this object
 
UPackage * GetExternalPackage () const
 Returns the external UPackage associated with this object, if any
 
UPackage * GetExternalPackageInternal () const
 Returns the external UPackage for this object, if any, NOT THREAD SAFE, used by internal gc reference collecting.
 
FORCEINLINE EObjectFlags GetFlags () const
 Retrieve the object flags directly 更多...
 
FORCEINLINE FName GetFName () const
 Returns the logical name of this object
 
FORCEINLINE UObject * GetOuter () const
 Returns the UObject this object resides in
 
FORCEINLINE uint32 GetUniqueID () const
 Returns the unique ID of the object...these are reused so it is only unique while the object is alive. 更多...
 
bool IsValidLowLevel () const
 Checks to see if the object appears to be valid 更多...
 
bool IsValidLowLevelFast (bool bRecursive=true) const
 Faster version of IsValidLowLevel. 更多...
 
void SetExternalPackage (UPackage *InPackage)
 Associate an external package directly to this object.
 
 UObjectBase (UClass *InClass, EObjectFlags InFlags, EInternalObjectFlags InInternalFlags, UObject *InOuter, FName InName)
 Constructor used by StaticAllocateObject 更多...
 
virtual ~UObjectBase ()
 Final destructor, removes the object from the object array, and indirectly, from any annotations
 

Public 属性

FPhysicsAggregateHandle Aggregate
 Physics-engine representation of aggregate which contains a physics asset instance with more than numbers of bodies.
 
class UAnimBlueprintGeneratedClass * AnimBlueprintGeneratedClass
 Animation 更多...
 
FBlendedHeapCurve AnimCurves
 Temporary storage for curves
 
UAnimInstance * AnimScriptInstance
 The active animation graph program instance.
 
uint8 bAnimTreeInitialised:1
 If true, AnimTree has been initialised.
 
uint8 bBlendPhysics:1
 Enables blending in of physics bodies whether Simulate or not
 
uint8 bCollideWithAttachedChildren:1
 can't collide with part of attached children if total collision volumes exceed 16 capsules or 32 planes per convex
 
uint8 bCollideWithEnvironment:1
 can't collide with part of environment if total collision volumes exceed 16 capsules or 32 planes per convex
 
uint8 bDeferKinematicBoneUpdate: 1
 Optimization 更多...
 
uint8 bDisableClothSimulation:1
 Disable cloth simulation and play original animation without simulation
 
uint8 bEnableLineCheckWithBounds:1
 If true, line checks will test against the bounding box of this skeletal mesh component and return a hit if there is a collision.
 
uint8 bEnablePerPolyCollision:1
 Uses skinned data for collision data.
 
uint8 bEnablePhysicsOnDedicatedServer:1
 If true, simulate physics for this component on a dedicated server. 更多...
 
uint8 bForceRefpose:1
 Misc 更多...
 
uint8 bHasValidBodies:1
 If true, there is at least one body in the current PhysicsAsset with a valid bone in the current SkeletalMesh
 
uint8 bIncludeComponentLocationIntoBounds: 1
 If true, the Location of this Component will be included into its bounds calculation (this can be useful when using SMU_OnlyTickPoseWhenRendered on a character that moves away from the root and no bones are left near the origin of the component)
 
uint8 bIsAutonomousTickPose: 1
 True if calling TickPose() from Autonomous networking updates. 更多...
 
uint8 bLocalSpaceKinematics:1
 Temporary fix for local space kinematics. 更多...
 
uint8 bLocalSpaceSimulation: 1
 It's worth trying this option when you feel that the current cloth simulation is unstable. 更多...
 
uint8 bNoSkeletonUpdate:1
 Skips Ticking and Bone Refresh.
 
TArray< struct FBodyInstance * > Bodies
 Array of FBodyInstance objects, storing per-instance state about about each body.
 
class UBodySetup * BodySetup
 Used for per poly collision. 更多...
 
uint8 bOldForceRefPose:1
 If bForceRefPose was set last tick.
 
TArray< FTransform > BoneSpaceTransforms
 Temporary array of local-space (relative to parent bone) rotation/translation for each bone. 更多...
 
uint8 bOnlyAllowAutonomousTickPose: 1
 If true TickPose() will not be called from the Component's TickComponent function. 更多...
 
uint8 bPauseAnims:1
 pauses this component's animations (doesn't tick them, but still refreshes bones)
 
uint8 bPrevDisableClothSimulation: 1
 To save previous state
 
uint8 bPropagateCurvesToSlaves: 1
 If true, propagates calls to ApplyAnimationCurvesToComponent for slave components, only needed if slave components do not tick themselves
 
uint8 bRequiredBonesUpToDate:1
 If false, indicates that on the next call to UpdateSkelPose the RequiredBones array should be recalculated.
 
uint8 bResetAfterTeleport:1
 reset the clothing after moving the clothing position (called teleport)
 
uint8 bShowPrePhysBones:1
 Bool that enables debug drawing of the skeleton before it is passed to the physics. 更多...
 
uint8 bSimulationUpdatesChildTransforms:1
 Indicates that simulation (if it's enabled) is entirely responsible for children transforms. 更多...
 
uint8 bSkipBoundsUpdateWhenInterpolating:1
 Whether to skip bounds update when interpolating. 更多...
 
uint8 bSkipKinematicUpdateWhenInterpolating:1
 Whether to skip UpdateKinematicBonesToAnim() when interpolating. 更多...
 
uint8 bUpdateJointsFromAnimation:1
 If we should pass joint position to joints each frame, so that they can be used by motorized joints to drive the ragdoll based on the animation.
 
uint8 bUpdateOverlapsOnAnimationFinalize:1
 Controls whether blending in physics bones will refresh overlaps on this component, defaults to true but can be disabled in cases where we know anim->physics blending doesn't meaningfully change overlaps
 
uint8 bUseRefPoseOnInitAnim:1
 On InitAnim should we set to ref pose (if false use first tick of animation data)
 
bool bWaitForParallelClothTask
 Whether we should stall the Cloth tick task until the cloth simulation is complete. 更多...
 
uint16 CachedAnimCurveUidVersion
 Cache AnimCurveUidVersion from Skeleton and this will be used to identify if it needs to be updated
 
float ClothBlendWeight
 weight to blend between simulated results and key-framed positions if weight is 1.0, shows only cloth simulation results and 0.0 will show only skinned results
 
TSubclassOf< class UClothingSimulationFactory > ClothingSimulationFactory
 Class of the object responsible for

 
EClothingTeleportMode ClothTeleportMode
 whether we need to teleport cloth.
 
TArray< struct FConstraintInstance * > Constraints
 Array of FConstraintInstance structs, storing per-instance state about each constraint.
 
int32 DeferredKinematicUpdateIndex
 Indicates that this SkeletalMeshComponent has deferred kinematic bone updates until next physics sim if not INDEX_NONE.
 
float Density_DEPRECATED
 Water: 1.0 Cotton: 0.155 Wool: 0.13 Silk: 0.133
 
TArray< FBoneIndexType > FillComponentSpaceTransformsRequiredBones
 Temporary array of bone indices required to populate component space transforms
 
float GlobalAnimRateScale
 Used to scale speed of all animations on this skeletal mesh.
 
TEnumAsByte< EKinematicBonesUpdateToPhysics::Type > KinematicBonesUpdateType
 If we are running physics, should we update non-simulated bones based on the animation bone positions.
 
FVector LineCheckBoundsScale
 If bEnableLineCheckWithBounds is true, scale the bounds by this value before doing line check.
 
FConstraintBrokenSignature OnConstraintBroken
 Notification when constraint is broken.
 
TArray< FPendingRadialForces > PendingRadialForces
 Array of physical interactions for the frame. 更多...
 
TEnumAsByte< EPhysicsTransformUpdateMode::Type > PhysicsTransformUpdateMode
 Whether physics simulation updates component transform.
 
UAnimInstance * PostProcessAnimInstance
 An instance created from the PostPhysicsBlueprint property of the skeletal mesh we're using, Runs after (and receives pose from) the main anim instance.
 
int32 RagdollAggregateThreshold
 Threshold for physics asset bodies above which we use an aggregate for broadphase collisions
 
TArray< FBoneIndexType > RequiredBones
 Temporary array of bone indices required this frame. 更多...
 
struct {
} RootBodyData
 Index of the 'Root Body', or top body in the asset hierarchy. 更多...
 
FVector RootBoneTranslation
 Offset of the root bone from the reference pose. 更多...
 
- Public 属性 继承自 USkinnedMeshComponent
TArray< FActiveMorphTarget > ActiveMorphTargets
 Array indicating all active morph targets. 更多...
 
struct FAnimUpdateRateParameters * AnimUpdateRateParams
 Animation Update Rate optimization parameters.
 
uint8 bCanHighlightSelectedSections:1
 Whether or not we can highlight selected sections - this should really only be done in the editor
 
uint8 bCastCapsuleDirectShadow:1
 Whether to use the capsule representation (when present) from a skeletal mesh's ShadowPhysicsAsset for direct shadowing from lights. 更多...
 
uint8 bCastCapsuleIndirectShadow:1
 Whether to use the capsule representation (when present) from a skeletal mesh's ShadowPhysicsAsset for shadowing indirect lighting (from lightmaps or skylight).
 
uint8 bComponentUseFixedSkelBounds:1
 When true, skip using the physics asset etc. 更多...
 
uint8 bConsiderAllBodiesForBounds:1
 If true, when updating bounds from a PhysicsAsset, consider all BodySetups, not just those flagged with bConsiderForBounds.
 
uint8 bCPUSkinning: 1
 Whether or not to CPU skin this component, requires render data refresh after changing
 
uint8 bDisableMorphTarget:1
 Disable Morphtarget for this component.
 
uint8 bDisplayBones_DEPRECATED:1
 Draw the skeleton hierarchy for this skel mesh.
 
uint8 bDisplayDebugUpdateRateOptimizations:1
 Enable on screen debugging of update rate optimization. 更多...
 
uint8 bEnableUpdateRateOptimizations:1
 if TRUE, Owner will determine how often animation will be updated and evaluated. 更多...
 
uint8 bForceWireframe:1
 Forces the mesh to draw in wireframe mode.
 
uint8 bHideSkin:1
 Don't bother rendering the skin.
 
uint8 bIgnoreMasterPoseComponentLOD: 1
 Flag that when set will ensure UpdateLODStatus will not take the MasterPoseComponent's current LOD in consideration when determining the correct LOD level (this requires MasterPoseComponent's LOD to always be >= determined LOD otherwise bone transforms could be missing
 
uint8 bOverrideMinLod:1
 Whether we should use the min lod specified in MinLodModel for this component instead of the min lod in the mesh
 
uint8 bPerBoneMotionBlur:1
 If true, use per-bone motion blur on this skeletal mesh (requires additional rendering, can be disabled to save performance).
 
uint8 bRecentlyRendered:1
 true if mesh has been recently rendered, false otherwise
 
uint8 bRenderStatic:1
 If true, render as static in reference pose.
 
uint8 bSyncAttachParentLOD: 1
 If true, this component uses its parents LOD when attached if available ForcedLOD can override this change. 更多...
 
uint8 bUseBoundsFromMasterPoseComponent:1
 When true, we will just using the bounds from our MasterPoseComponent. 更多...
 
float CapsuleIndirectShadowMinVisibility
 Controls how dark the capsule indirect shadow can be.
 
TOptional< FLinearColor > DebugDrawColor
 Debug draw color
 
int32 ForcedLodModel
 If 0, auto-select LOD level. 更多...
 
TArray< struct FSkelMeshComponentLODInfo > LODInfo
 LOD array info. 更多...
 
float MaxDistanceFactor
 High (best) DistanceFactor that was desired for rendering this USkeletalMesh last frame. 更多...
 
class FSkeletalMeshObject * MeshObject
 Object responsible for sending bone transforms, morph target state etc. 更多...
 
int32 MinLodModel
 This is the min LOD that this component will use. 更多...
 
TArray< float > MorphTargetWeights
 Array of weights for all morph targets. 更多...
 
FOnAnimUpdateRateParamsCreated OnAnimUpdateRateParamsCreated
 Delegate when AnimUpdateRateParams is created, to override its default settings.
 
class UPhysicsAsset * PhysicsAssetOverride
 PhysicsAsset is set in SkeletalMesh by default, but you can override with this value
 
int32 PredictedLODLevel
 Best LOD that was 'predicted' by UpdateSkelPose. 更多...
 
float StreamingDistanceMultiplier
 Allows adjusting the desired streaming distance of streaming textures that uses UV 0. 更多...
 
- Public 属性 继承自 UMeshComponent
TArray< class UMaterialInterface * > OverrideMaterials
 Per-Component material overrides. 更多...
 
- Public 属性 继承自 UPrimitiveComponent
uint8 AlwaysLoadOnClient:1
 If this is True, this component must always be loaded on clients, even if Hidden and CollisionEnabled is NoCollision.
 
uint8 AlwaysLoadOnServer:1
 If this is True, this component must always be loaded on servers, even if Hidden and CollisionEnabled is NoCollision
 
FThreadSafeCounter AttachmentCounter
 Incremented by the main thread before being attached to the scene, decremented by the rendering thread after removal. 更多...
 
uint8 bAffectDistanceFieldLighting:1
 Controls whether the primitive should affect dynamic distance field lighting methods. 更多...
 
uint8 bAffectDynamicIndirectLighting:1
 Controls whether the primitive should inject light into the Light Propagation Volume. 更多...
 
uint8 bAllowCullDistanceVolume:1
 Whether to accept cull distance volumes to modify cached cull distance.
 
uint8 bAlwaysCreatePhysicsState:1
 Indicates if we'd like to create physics state all the time (for collision and simulation). 更多...
 
uint8 bApplyImpulseOnDamage: 1
 True for damage to this component to apply physics impulse, false to opt out of these impulses.
 
uint8 bAttachedToStreamingManagerAsDynamic: 1
 Whether this primitive is referenced by a FDynamicRenderAssetInstanceManager
 
uint8 bAttachedToStreamingManagerAsStatic: 1
 Whether this primitive is referenced by a FLevelRenderAssetManager

 
uint8 bBatchImpostersAsInstances: 1
 If true, the proxy generation process will use instancing to render this imposter
 
uint8 bCastCinematicShadow:1
 Whether this component should cast shadows from lights that have bCastShadowsFromCinematicObjectsOnly enabled. 更多...
 
uint8 bCastContactShadow:1
 Whether the object should cast contact shadows. 更多...
 
uint8 bCastDynamicShadow:1
 Controls whether the primitive should cast shadows in the case of non precomputed shadowing. 更多...
 
uint8 bCastFarShadow:1
 When enabled, the component will be rendering into the far shadow cascades (only for directional lights).
 
uint8 bCastHiddenShadow:1
 If true, the primitive will cast shadows even if bHidden is true. 更多...
 
uint8 bCastInsetShadow:1
 Whether this component should create a per-object shadow that gives higher effective shadow resolution. 更多...
 
uint8 bCastShadowAsTwoSided:1
 Whether this primitive should cast dynamic shadows as if it were a two sided material.
 
uint8 bCastStaticShadow:1
 Whether the object should cast a static shadow from shadow casting lights. 更多...
 
uint8 bCastVolumetricTranslucentShadow:1
 Whether the object should cast a volumetric translucent shadow. 更多...
 
uint8 bExcludeFromLightAttachmentGroup:1
 If set, then it overrides any bLightAttachmentsAsGroup set in a parent.
 
uint8 bFillCollisionUnderneathForNavmesh:1
 If set, navmesh will not be generated under the surface of the geometry
 
uint8 bForceMipStreaming:1
 If true, forces mips for textures used by this component to be resident when this component's level is loaded.
 
uint8 bHandledByStreamingManagerAsDynamic: 1
 Whether this primitive is handled as dynamic, although it could have no references
 
TEnumAsByte< EHasCustomNavigableGeometry::Type > bHasCustomNavigableGeometry
 If true then DoCustomNavigableGeometryExport will be called to collect navigable geometry of this component.
 
uint8 bHasMotionBlurVelocityMeshes:1
 True if the primitive has motion blur velocity meshes
 
uint8 bHasPerInstanceHitProxies:1
 If true a hit-proxy will be generated for each instance of instanced static meshes
 
uint8 bIgnoreRadialForce:1
 Will ignore radial forces applied to this component.
 
uint8 bIgnoreRadialImpulse:1
 Will ignore radial impulses applied to this component.
 
uint8 bIgnoreStreamingManagerUpdate: 1
 When true, texture streaming manager won't update the component state. 更多...
 
uint8 bLightAsIfStatic_DEPRECATED:1
 
uint8 bLightAttachmentsAsGroup:1
 Whether to light this component and any attachments as a group. 更多...
 
uint8 bMultiBodyOverlap:1
 If true, this component will generate individual overlaps for each overlapping physics body if it is a multi-body component. 更多...
 
uint8 bNeverDistanceCull:1
 When enabled this object will not be culled by distance. 更多...
 
FBodyInstance BodyInstance
 Physics scene information for this component, holds a single rigid body with multiple shapes.
 
uint8 bOnlyOwnerSee:1
 If this is True, this component will only be visible when the view actor is the component's owner, directly or indirectly.
 
float BoundsScale
 Scales the bounds of the object. 更多...
 
uint8 bOwnerNoSee:1
 If this is True, this component won't be visible when the view actor is the component's owner, directly or indirectly.
 
uint8 bReceiveMobileCSMShadows: 1
 Mobile only: If disabled this component will not receive CSM shadows. 更多...
 
uint8 bReceivesDecals:1
 Whether the primitive receives decals.
 
uint8 bRenderCustomDepth:1
 If true, this component will be rendered in the CustomDepth pass (usually used for outlines)
 
uint8 bRenderInDepthPass:1
 If true, this component will be rendered in the depth pass even if it's not rendered in the main pass
 
uint8 bRenderInMainPass:1
 If true, this component will be rendered in the main pass (z prepass, basepass, transparency)
 
uint8 bReplicatePhysicsToAutonomousProxy: 1
 True if physics should be replicated to autonomous proxies. 更多...
 
uint8 bReturnMaterialOnMove:1
 If true, component sweeps will return the material in their hit result. 更多...
 
uint8 bSelectable:1
 If this is True, this component can be selected in the editor.
 
uint8 bSelfShadowOnly:1
 When enabled, the component will only cast a shadow on itself and not other components in the world. 更多...
 
uint8 bSingleSampleShadowFromStationaryLights:1
 Whether the whole component should be shadowed as one from stationary lights, which makes shadow receiving much cheaper. 更多...
 
uint8 bTraceComplexOnMove:1
 If true, component sweeps with this component should trace against complex collision during movement (for example, each triangle of a mesh). 更多...
 
uint8 bTreatAsBackgroundForOcclusion:1
 Treat this primitive as part of the background for occlusion purposes. 更多...
 
uint8 bUseAsOccluder:1
 Whether to render the primitive in the depth only pass. 更多...
 
uint8 bUseEditorCompositing:1
 Composite the drawing of this component onto the scene after post processing (only applies to editor drawing)
 
uint8 bUseMaxLODAsImposter: 1
 Use the Maximum LOD Mesh (imposter) instead of including Mesh data from this component in the Proxy Generation process
 
uint8 bUseViewOwnerDepthPriorityGroup:1
 True if the primitive should be rendered using ViewOwnerDepthPriorityGroup if viewed by its owner.
 
uint8 bVisibleInRayTracing: 1
 If true, this component will be visible in ray tracing effects. 更多...
 
uint8 bVisibleInRealTimeSkyCaptures:1
 If true, this component will be visible in real-time sky light reflection captures.
 
uint8 bVisibleInReflectionCaptures:1
 If true, this component will be visible in reflection captures.
 
float CachedMaxDrawDistance
 The distance to cull this primitive at. 更多...
 
TEnumAsByte< enum ECanBeCharacterBase > CanCharacterStepUpOn
 Determine whether a Character can step up onto this component. 更多...
 
uint8 CastShadow:1
 Controls whether the primitive component should cast a shadow or not.
 
FPrimitiveComponentId ComponentId
 Used by the renderer, to identify a component across re-registers.
 
int32 CustomDepthStencilValue
 Optionally write this 0-255 value to the stencil buffer in CustomDepth pass (Requires project setting or r.CustomDepth == 3)
 
ERendererStencilMask CustomDepthStencilWriteMask
 Mask used for stencil buffer writes.
 
FPhysScene * DeferredCreatePhysicsStateScene
 If non-null, physics state creation has been deferred to ULevel::IncrementalUpdateComponents or this scene's StartFrame.
 
TEnumAsByte< enum ESceneDepthPriorityGroup > DepthPriorityGroup
 The scene depth priority group to draw the primitive in.
 
FRenderCommandFence DetachFence
 A fence to track when the primitive is detached from the scene in the rendering thread.
 
TEnumAsByte< EIndirectLightingCacheQuality > IndirectLightingCacheQuality
 Quality of indirect lighting for Movable primitives. 更多...
 
float LastSubmitTime
 Last time the component was submitted for rendering (called FScene::AddPrimitive).
 
float LDMaxDrawDistance
 Max draw distance exposed to LDs. 更多...
 
FLightingChannels LightingChannels
 Channels that this component should be in. 更多...
 
ELightmapType LightmapType
 Controls the type of lightmap used for this component.
 
float LpvBiasMultiplier
 Multiplier used to scale the Light Propagation Volume light injection bias, to reduce light bleeding. 更多...
 
float MinDrawDistance
 The minimum distance at which the primitive should be rendered, measured in world space units from the center of the primitive's bounding sphere to the camera position.
 
TArray< AActor * > MoveIgnoreActors
 Set of actors to ignore during component sweeps in MoveComponent(). 更多...
 
TArray< UPrimitiveComponent * > MoveIgnoreComponents
 Set of components to ignore during component sweeps in MoveComponent(). 更多...
 
FComponentBeginCursorOverSignature OnBeginCursorOver
 Event called when the mouse cursor is moved over this component and mouse over events are enabled in the player controller
 
FComponentOnClickedSignature OnClicked
 Event called when the left mouse button is clicked while the mouse is over this component and click events are enabled in the player controller
 
FComponentBeginOverlapSignature OnComponentBeginOverlap
 Event called when something starts to overlaps this component, for example a player walking into a trigger. 更多...
 
FComponentCollisionSettingsChangedSignature OnComponentCollisionSettingsChangedEvent
 Event called when collision settings change for this component.
 
FComponentEndOverlapSignature OnComponentEndOverlap
 Event called when something stops overlapping this component 更多...
 
FComponentHitSignature OnComponentHit
 Event called when a component hits (or is hit by) something solid. 更多...
 
FComponentSleepSignature OnComponentSleep
 Event called when the underlying physics objects is put to sleep
 
FComponentWakeSignature OnComponentWake
 Event called when the underlying physics objects is woken up
 
FComponentEndCursorOverSignature OnEndCursorOver
 Event called when the mouse cursor is moved off this component and mouse over events are enabled in the player controller
 
FComponentOnInputTouchBeginSignature OnInputTouchBegin
 Event called when a touch input is received over this component when touch events are enabled in the player controller
 
FComponentOnInputTouchEndSignature OnInputTouchEnd
 Event called when a touch input is released over this component when touch events are enabled in the player controller
 
FComponentBeginTouchOverSignature OnInputTouchEnter
 Event called when a finger is moved over this component when touch over events are enabled in the player controller
 
FComponentEndTouchOverSignature OnInputTouchLeave
 Event called when a finger is moved off this component when touch over events are enabled in the player controller
 
FComponentOnReleasedSignature OnReleased
 Event called when the left mouse button is released while the mouse is over this component click events are enabled in the player controller
 
TArray< URuntimeVirtualTexture * > RuntimeVirtualTextures
 Array of runtime virtual textures into which we draw the mesh for this actor. 更多...
 
FPrimitiveSceneProxy * SceneProxy
 The primitive's scene info.
 
int32 TranslucencySortPriority
 Translucent objects with a lower sort priority draw behind objects with a higher priority. 更多...
 
TEnumAsByte< enum ESceneDepthPriorityGroup > ViewOwnerDepthPriorityGroup
 The scene depth priority group to draw the primitive in, if it's being viewed by its owner.
 
int8 VirtualTextureCullMips = 0
 Number of lower mips in the runtime virtual texture to skip for rendering this primitive. 更多...
 
int8 VirtualTextureLodBias = 0
 Bias to the LOD selected for rendering to runtime virtual textures.
 
int8 VirtualTextureMinCoverage = 0
 Set the minimum pixel coverage before culling from the runtime virtual texture. 更多...
 
ERuntimeVirtualTextureMainPassType VirtualTextureRenderPassType = ERuntimeVirtualTextureMainPassType::Exclusive
 Controls if this component draws in the main pass as well as in the virtual texture.
 
int32 VisibilityId
 Used for precomputed visibility
 
- Public 属性 继承自 USceneComponent
uint8 bBoundsChangeTriggersStreamingDataRebuild:1
 If true, a change in the bounds of the component will call trigger a streaming data rebuild
 
uint8 bHiddenInGame:1
 Whether to hide the primitive in game, if the primitive is Visible.
 
FBoxSphereBounds Bounds
 Current bounds of the component
 
uint8 bUseAttachParentBound:1
 If true, this component uses its parents bounds when attached. 更多...
 
const FLevelCollection * CachedLevelCollection
 Cached level collection that contains the level this component is registered in, for fast access in IsVisible().
 
FVector ComponentVelocity
 Velocity of the component. 更多...
 
TEnumAsByte< enum EDetailMode > DetailMode
 If detail mode is >= system detail mode, primitive won't be rendered.
 
FIsRootComponentChanged IsRootComponentChanged
 Delegate invoked when this scene component becomes the actor's root component or when it no longer is.
 
TEnumAsByte< EComponentMobility::Type > Mobility
 How often this component is allowed to move, used to make various optimizations. 更多...
 
FPhysicsVolumeChanged PhysicsVolumeChangedDelegate
 Delegate that will be called when PhysicsVolume has been changed
 
FTransformUpdated TransformUpdated
 Delegate called when this component is moved
 
- Public 属性 继承自 UActorComponent
uint8 bAllowAnyoneToDestroyMe:1
 Can this component be destroyed (via K2_DestroyComponent) by any parent
 
uint8 bAllowConcurrentTick:1
 Can we tick this concurrently on other threads?
 
uint8 bAutoActivate:1
 Whether the component is activated at creation or must be explicitly activated.
 
uint8 bAutoRegister:1
 Does this component automatically register with its owner
 
uint8 bEditableWhenInherited:1
 True if this component can be modified when it was inherited from a parent actor class
 
uint8 bIsEditorOnly:1
 If true, the component will be excluded from non-editor builds
 
uint8 bNavigationRelevant: 1
 Cached navigation relevancy flag for collision updates
 
uint8 bNeverNeedsRenderUpdate:1
 If true, this component never needs a render update.
 
uint8 bTickInEditor:1
 Should this component be ticked in the editor
 
uint8 bWantsInitializeComponent:1
 If true, we call the virtual InitializeComponent
 
TArray< FName > ComponentTags
 Array of tags that can be used for grouping and categorizing. 更多...
 
EComponentCreationMethod CreationMethod
 Describes how a component instance will be created
 
FActorComponentActivatedSignature OnComponentActivated
 Called when the component has been activated, with parameter indicating if it was from a reset
 
FActorComponentDeactivateSignature OnComponentDeactivated
 Called when the component has been deactivated
 
struct FActorComponentTickFunction PrimaryComponentTick
 Main tick function for the Component
 

Protected 成员函数

virtual bool ComponentOverlapComponentImpl (class UPrimitiveComponent *PrimComp, const FVector Pos, const FQuat &Quat, const FCollisionQueryParams &Params) override
 Override this method for custom behavior for ComponentOverlapComponent()
 
virtual bool ComponentOverlapMultiImpl (TArray< struct FOverlapResult > &OutOverlaps, const class UWorld *InWorld, const FVector &Pos, const FQuat &Rot, ECollisionChannel TestChannel, const struct FComponentQueryParams &Params, const struct FCollisionObjectQueryParams &ObjectQueryParams=FCollisionObjectQueryParams::DefaultObjectQueryParam) const override
 Test the collision of the supplied component at the supplied location/rotation, and determine the set of components that it overlaps 更多...
 
FRootMotionMovementParams ConsumeRootMotion_Internal (float InAlpha)
 Consume and return pending root motion from our internal anim instances (main, sub and post)
 
virtual void DispatchParallelTickPose (FActorComponentTickFunction *TickFunction) override
 Parallel Tick Pose In the case where we do not want to refresh bone transforms (and would therefore not normally kick off a parallel eval task) we perform this 'mini tick' that kicks off the task. 更多...
 
template<typename DataType >
bool GetBoneAttribute (const FName &BoneName, const FName &AttributeName, DataType DefaultValue, DataType &OutValue, ECustomBoneAttributeLookup LookupType)
 Templated version to try and retrieve a typed bone attribute's value
 
virtual FTransform GetComponentTransformFromBodyInstance (FBodyInstance *UseBI) override
 Called to get the Component To World Transform from the Root BodyInstance This needs to be virtual since SkeletalMeshComponent Root has to undo its own transform Without this, the root LocalToAtom is overridden by physics simulation, causing kinematic velocity to accelerate simulation 更多...
 
virtual bool MoveComponentImpl (const FVector &Delta, const FQuat &NewRotation, bool bSweep, FHitResult *OutHit=NULL, EMoveComponentFlags MoveFlags=MOVECOMP_NoFlags, ETeleportType Teleport=ETeleportType::None) override
 Override this method for custom behavior for MoveComponent
 
virtual void OnCreatePhysicsState () override
 Used to create any physics engine information for this component
 
virtual void OnDestroyPhysicsState () override
 Used to shut down and physics engine structure for this component
 
virtual void OnRegister () override
 Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called.
 
virtual void OnSyncComponentToRBPhysics ()
 Notify called just before syncing physics update, called only if bNotifySyncComponentToRBPhysics flag is set
 
virtual void OnUnregister () override
 Called when a component is unregistered. 更多...
 
virtual void RegisterComponentTickFunctions (bool bRegister) override
 Virtual call chain to register all tick functions 更多...
 
virtual bool ShouldCreatePhysicsState () const override
 Return true if CreatePhysicsState() should be called. 更多...
 
- Protected 成员函数 继承自 USkinnedMeshComponent
virtual UObject const * AdditionalStatObject () const override
 Give a readable name for this component, including asset name if applicable
 
virtual void AddSlavePoseComponent (USkinnedMeshComponent *SkinnedMeshComponent)
 Add a slave component to the SlavePoseComponents array
 
virtual bool AllocateTransformData ()
 Allocate Transform Data array including SpaceBases, BoneVisibilityStates 更多...
 
FBoxSphereBounds CalcMeshBound (const FVector &RootOffset, bool UsePhysicsAsset, const FTransform &Transform) const
 Update Mesh Bound information based on input 更多...
 
virtual void CreateRenderState_Concurrent (FRegisterComponentContext *Context) override
 Used to create any rendering thread information for this component 更多...
 
virtual void DestroyRenderState_Concurrent () override
 Used to shut down any rendering thread structure for this component 更多...
 
virtual void DispatchParallelTickPose (FActorComponentTickFunction *TickFunction)
 Parallel Tick Pose In the case where we do not want to refresh bone transforms (and would therefore not normally kick off a parallel eval task) we perform this 'mini tick' that kicks off the task. 更多...
 
void FlipEditableSpaceBases ()
 Flip the editable space base buffer
 
virtual void OnRegister () override
 Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called.
 
virtual void OnUnregister () override
 Called when a component is unregistered. 更多...
 
void RefreshUpdateRateParams ()
 Recreates update rate params and internal tracker data
 
void ReleaseUpdateRateParams ()
 Removes update rate params and internal tracker data
 
virtual void RemoveSlavePoseComponent (USkinnedMeshComponent *SkinnedMeshComponent)
 Remove a slave component from the SlavePoseComponents array
 
virtual bool RequiresGameThreadEndOfFrameRecreate () const override
 return true if this component requires end of frame recreates to happen from the game thread.
 
virtual void SendRenderDynamicData_Concurrent () override
 Called to send dynamic data for this component to the rendering thread
 
virtual bool ShouldTickPose () const
 Should tick pose (by calling TickPose) in Tick 更多...
 
bool ShouldUpdateBoneVisibility () const
 return true if it needs update. 更多...
 
virtual void TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override
 Function called every frame on this ActorComponent. 更多...
 
bool UpdateLODStatus_Internal (int32 InMasterPoseComponentPredictedLODLevel)
 Helper function for UpdateLODStatus, called with a valid index for InMasterPoseComponentPredictedLODLevel when updating LOD status for slave components
 
- Protected 成员函数 继承自 UMeshComponent
void CacheMaterialParameterNameIndices ()
 Retrieves all the (scalar/vector-)parameters from within the used materials on the SkeletalMesh, and stores material index vs parameter names
 
void MarkCachedMaterialParameterNameIndicesDirty ()
 Mark cache parameters map as dirty, cache will be rebuild once SetScalar/SetVector functions are called
 
- Protected 成员函数 继承自 UPrimitiveComponent
virtual bool AreAllCollideableDescendantsRelative (bool bAllowCachedValue=true) const
 Returns true if all descendant components that we can possibly overlap with use relative location and rotation.
 
void ClearComponentOverlaps (bool bDoNotifies, bool bSkipNotifySelf)
 Ends all current component overlaps. 更多...
 
virtual bool ComponentOverlapComponentImpl (class UPrimitiveComponent *PrimComp, const FVector Pos, const FQuat &Rot, const FCollisionQueryParams &Params)
 Override this method for custom behavior for ComponentOverlapComponent()
 
virtual bool ComponentOverlapMultiImpl (TArray< struct FOverlapResult > &OutOverlaps, const class UWorld *InWorld, const FVector &Pos, const FQuat &Rot, ECollisionChannel TestChannel, const struct FComponentQueryParams &Params, const struct FCollisionObjectQueryParams &ObjectQueryParams=FCollisionObjectQueryParams::DefaultObjectQueryParam) const
 Override this method for custom behavior for ComponentOverlapMulti()
 
void EnsurePhysicsStateCreated ()
 Ensure physics state created
 
void MarkChildPrimitiveComponentRenderStateDirty ()
 Go through attached primitive components and call MarkRenderStateDirty
 
virtual void OnComponentCollisionSettingsChanged (bool bUpdateOverlaps=true)
 Called when the BodyInstance ResponseToChannels, CollisionEnabled or bNotifyRigidBodyCollision changes, in case subclasses want to use that information.
 
void ResetCustomPrimitiveData ()
 Reset the custom primitive data of this primitive to the optional user defined default
 
void SendPhysicsTransform (ETeleportType Teleport)
 Called to send a transform update for this component to the physics engine
 
void SetCustomPrimitiveDataInternal (int32 DataIndex, const TArray< float > &Values)
 Insert an array of floats into the CustomPrimitiveData, starting at the given index
 
void SetDefaultCustomPrimitiveData (int32 DataIndex, const TArray< float > &Values)
 Insert an array of floats into the CustomPrimitiveData defaults, starting at the given index
 
virtual bool SupportsStaticLighting () const
 Whether the component type supports static lighting.
 
virtual void UpdatePhysicsToRBChannels ()
 Internal function that updates physics objects to match the component collision settings.
 
- Protected 成员函数 继承自 USceneComponent
FORCEINLINE bool AreDynamicDataChangesAllowed (bool bIgnoreStationary=true) const
 Determine if dynamic data is allowed to be changed. 更多...
 
FORCEINLINE FTransform CalcNewComponentToWorld (const FTransform &NewRelativeTransform, const USceneComponent *Parent=nullptr, FName SocketName=NAME_None) const
 Calculate the new ComponentToWorld transform for this component. 更多...
 
FTransform CalcNewComponentToWorld_GeneralCase (const FTransform &NewRelativeTransform, const USceneComponent *Parent, FName SocketName) const
 Utility function to handle calculating transform with a parent
 
bool CheckStaticMobilityAndWarn (const FText &ActionText) const
 Check if mobility is set to non-static. 更多...
 
bool InternalSetWorldLocationAndRotation (FVector NewLocation, const FQuat &NewQuat, bool bNoPhysics=false, ETeleportType Teleport=ETeleportType::None)
 Internal helper, for use from MoveComponent(). 更多...
 
virtual bool MoveComponentImpl (const FVector &Delta, const FQuat &NewRotation, bool bSweep, FHitResult *Hit=NULL, EMoveComponentFlags MoveFlags=MOVECOMP_NoFlags, ETeleportType Teleport=ETeleportType::None)
 Override this method for custom behavior for MoveComponent
 
virtual void OnChildAttached (USceneComponent *ChildComponent)
 Called after a child scene component is attached to this component. 更多...
 
virtual void OnChildDetached (USceneComponent *ChildComponent)
 Called after a child scene component is detached from this component. 更多...
 
virtual void OnHiddenInGameChanged ()
 Overridable internal function to respond to changes in the hidden in game value of the component.
 
virtual void OnUpdateTransform (EUpdateTransformFlags UpdateTransformFlags, ETeleportType Teleport=ETeleportType::None)
 Native callback when this component is moved
 
virtual void OnVisibilityChanged ()
 Overridable internal function to respond to changes in the visibility of the component.
 
void PostUpdateNavigationData ()
 Called after changing transform, tries to update navigation octree for owner
 
void UpdateNavigationData ()
 Called after changing transform, tries to update navigation octree for this component
 
virtual bool UpdateOverlapsImpl (const TOverlapArrayView *PendingOverlaps=nullptr, bool bDoNotifies=true, const TOverlapArrayView *OverlapsAtEndLocation=nullptr)
 Internal helper for UpdateOverlaps
 
- Protected 成员函数 继承自 UActorComponent
virtual void CreateRenderState_Concurrent (FRegisterComponentContext *Context)
 Used to create any rendering thread information for this component 更多...
 
virtual void DestroyRenderState_Concurrent ()
 Used to shut down any rendering thread structure for this component 更多...
 
void HandleCanEverAffectNavigationChange (bool bForceUpdate=false)
 Makes sure navigation system has up to date information regarding component's navigation relevancy and if it can affect navigation at all 更多...
 
virtual bool HasValidPhysicsState () const
 Used to check that DestroyPhysicsState() is working correctly
 
bool NeedsInitialization () const
 Convenience method for testing whether or not we are still be constructed / initialized.
 
virtual void OnCreatePhysicsState ()
 Used to create any physics engine information for this component
 
virtual void OnDestroyPhysicsState ()
 Used to shut down and physics engine structure for this component
 
virtual void OnRegister ()
 Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called.
 
virtual void OnUnregister ()
 Called when a component is unregistered. 更多...
 
bool OwnerNeedsInitialization () const
 Convenience method for testing whether or not our owner is still being constructed / initialized.
 
virtual void RegisterComponentTickFunctions (bool bRegister)
 Virtual call chain to register all tick functions 更多...
 
virtual void SendRenderDynamicData_Concurrent ()
 Called to send dynamic data for this component to the rendering thread
 
virtual void SendRenderTransform_Concurrent ()
 Called to send a transform update for this component to the rendering thread 更多...
 
void SetIsReplicatedByDefault (const bool bNewReplicates)
 Sets the value of bReplicates without causing other side effects to this instance. 更多...
 
virtual bool ShouldActivate () const
 Return true if this component is in a state where it can be activated normally.
 
virtual bool ShouldCreatePhysicsState () const
 Return true if CreatePhysicsState() should be called. 更多...
 
virtual bool ShouldCreateRenderState () const
 Return true if CreateRenderState() should be called
 
- Protected 成员函数 继承自 UObject
bool CanCheckDefaultSubObjects (bool bForceCheck, bool &bResult) const
 Checks it's ok to perform subobjects check at this time.
 
virtual bool CheckDefaultSubobjectsInternal () const
 Checks default sub-object assumptions. 更多...
 
virtual FString GetDetailedInfoInternal () const
 This function actually does the work for the GetDetailedInfo() and is virtual. 更多...
 
- Protected 成员函数 继承自 UObjectBase
virtual void DeferredRegister (UClass *UClassStaticClass, const TCHAR *PackageName, const TCHAR *Name)
 Convert a boot-strap registered class into a real one, add to uobject array, etc 更多...
 
void LowLevelRename (FName NewName, UObject *NewOuter=NULL)
 Just change the FName and Outer and rehash into name hash tables. 更多...
 
void Register (const TCHAR *PackageName, const TCHAR *Name)
 Enqueue the registration for this object.
 
virtual void RegisterDependencies ()
 Force any base classes to be registered first
 
FORCEINLINE void SetFlagsTo (EObjectFlags NewFlags)
 Set the object flags directly 更多...
 
 UObjectBase (EObjectFlags InFlags)
 Constructor used for bootstrapping 更多...
 

静态 Protected 成员函数

static void ExtractCollisionsForCloth (USkeletalMeshComponent *SourceComponent, UPhysicsAsset *PhysicsAsset, USkeletalMeshComponent *DestClothComponent, FClothCollisionData &OutCollisions, FClothCollisionSource &ClothCollisionSource)
 Extract collisions for cloth from this component (given a component we want to apply the data to)
 
- 静态 Protected 成员函数 继承自 UActorComponent
static const FName GetReplicatesPropertyName ()
 Gets the property name for bReplicates. 更多...
 
- 静态 Protected 成员函数 继承自 UObjectBaseUtility
static void CreateClusterFromObject (UObjectBaseUtility *ClusterRootObject, UObjectBaseUtility *ReferencingObject)
 Helper function to create a cluster from UObject
 

Protected 属性

TEnumAsByte< EAnimationMode::Type > AnimationMode
 Whether to use Animation Blueprint or play Single Animation Asset.
 
uint8 bClothingSimulationSuspended:1
 Whether the clothing simulation is suspended (not the same as disabled, we no longer run the sim but keep the last valid sim data around)
 
uint8 bNotifySyncComponentToRBPhysics: 1
 If true, OnSyncComponentToRBPhysics() notify will be called
 
TMap< int32, FClothSimulData > CurrentSimulationData
 Simulation data written back to the component after the simulation has taken place. 更多...
 
- Protected 属性 继承自 USkinnedMeshComponent
uint8 bBoneVisibilityDirty:1
 Whether we have updated bone visibility this tick
 
uint8 bCachedLocalBoundsUpToDate:1
 true when CachedLocalBounds is up to date.
 
uint8 bDoubleBufferedComponentSpaceTransforms: 1
 Are we using double buffered ComponentSpaceTransforms
 
uint8 bExternalEvaluationRateLimited:1
 External flag indicating that we may not be evaluated every frame
 
uint8 bExternalInterpolate:1
 Non URO-based interpolation flag
 
uint8 bExternalTickRateControlled:1
 Whether we are externally controlling tick rate
 
uint8 bExternalUpdate:1
 Non URO-based update flag
 
uint8 bHasValidBoneTransform:1
 used to cache previous bone transform or not
 
uint8 bNeedToFlipSpaceBaseBuffers: 1
 Track whether we still need to flip to recently modified buffer
 
TArray< uint8 > BoneVisibilityStates [2]
 Array of bone visibilities (containing one of the values in EBoneVisibilityStatus for each bone). 更多...
 
uint8 bSkinWeightProfilePending:1
 Whether or not a Skin Weight profile is currently pending load and creation for this component
 
uint8 bSkinWeightProfileSet:1
 Whether or not a Skin Weight profile is currently set for this component
 
ERHIFeatureLevel::Type CachedSceneFeatureLevel
 Cache the scene feature level
 
FBoxSphereBounds CachedWorldSpaceBounds
 Bounds cached, so they're computed just once.
 
uint32 CurrentBoneTransformRevisionNumber
 current bone transform revision number
 
int32 CurrentEditableComponentTransforms
 The index for the ComponentSpaceTransforms buffer we can currently write to
 
int32 CurrentReadComponentTransforms
 The index for the ComponentSpaceTransforms buffer we can currently read from
 
FName CurrentSkinWeightProfileName
 Name of currently set up Skin Weight profile, otherwise is 'none'
 
float ExternalInterpolationAlpha
 Non-URO-based interpolation alpha
 
uint8 ExternalTickRate
 Record of the tick rate we are using when externally controlled
 
TArray< int32 > MasterBoneMap
 Mapping between bone indices in this component and the parent one. 更多...
 
int32 MasterBoneMapCacheCount
 Incremented every time the master bone map changes. 更多...
 
TMap< int32, FMissingMasterBoneCacheEntry > MissingMasterBoneMap
 Map of missing bone indices->transforms so that calls to GetBoneTransform() succeed when bones are not present in a master mesh when using master-pose. 更多...
 
TArray< uint8 > PreviousBoneVisibilityStates
 Array of bone visibilities (containing one of the values in EBoneVisibilityStatus for each bone). 更多...
 
TArray< FTransform > PreviousComponentSpaceTransformsArray
 Array of previous bone transforms 更多...
 
FSkelMeshRefPoseOverride * RefPoseOverride
 Information for current ref pose override, if present
 
TArray< TWeakObjectPtr< USkinnedMeshComponent > > SlavePoseComponents
 If set, this component has slave pose components that are associated with this Note this is weak object ptr, so it will go away unless you have other strong reference
 
TSortedMap< FName, FName, FDefaultAllocator, FNameFastLess > SocketOverrideLookup
 Mapping for socket overrides, key is the Source socket name and the value is the override socket name
 
- Protected 属性 继承自 UMeshComponent
uint8 bCachedMaterialParameterIndicesAreDirty: 1
 Flag whether or not the cached material parameter indices map is dirty (defaults to true, and is set from SetMaterial/Set(Skeletal)Mesh
 
- Protected 属性 继承自 UPrimitiveComponent
uint8 bCachedAllCollideableDescendantsRelative: 1
 Result of last call to AreAllCollideableDescendantsRelative().
 
float LastCheckedAllCollideableDescendantsTime
 Last time we checked AreAllCollideableDescendantsRelative(), so we can throttle those tests since it rarely changes once false.
 
TArray< FOverlapInfo > OverlappingComponents
 Set of components that this component is currently overlapping.
 
- Protected 属性 继承自 USceneComponent
uint8 bDisableDetachmentUpdateOverlaps:1
 Transient flag that temporarily disables UpdateOverlaps within DetachFromParent().
 
uint8 bWantsOnUpdateTransform:1
 If true, OnUpdateTransform virtual will be called each time this component is moved.
 
- Protected 属性 继承自 UActorComponent
TArray< UAssetUserData * > AssetUserData
 Array of user data stored with the component
 
uint8 bAllowReregistration:1
 Check whether the component class allows reregistration during ReregisterAllComponents
 
uint8 bCanEverAffectNavigation: 1
 Whether this component can potentially influence navigation
 
uint8 bNetAddressable:1
 Is this component safe to ID over the network by name?

 
uint8 bPhysicsStateCreated:1
 If the physics state is currently created for this component
 
uint8 bRegistered:1
 Indicates if this ActorComponent is currently registered with a scene.
 
uint8 bRenderStateCreated:1
 If the render state is currently created for this component
 

友元

class FClothingSimulationContextCommon
 
struct FSkeletalMeshComponentEndPhysicsTickFunction
 
class FSkinnedMeshComponentRecreateRenderStateContext
 
class UDebugSkelMeshComponent
 Debug mesh component should be able to access for visualisation
 
class USkeletalMesh
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 USkinnedMeshComponent
static void ComputeSkinnedPositions (USkinnedMeshComponent *Component, TArray< FVector > &OutPositions, TArray< FMatrix > &CachedRefToLocals, const FSkeletalMeshLODRenderData &LODData, const FSkinWeightVertexBuffer &SkinWeightBuffer)
 CPU evaluation of the positions of all vertices (returned in component space) 更多...
 
static FVector GetSkinnedVertexPosition (USkinnedMeshComponent *Component, int32 VertexIndex, const FSkeletalMeshLODRenderData &LODData, FSkinWeightVertexBuffer &SkinWeightBuffer, TArray< FMatrix > &CachedRefToLocals)
 Simple, CPU evaluation of a vertex's skinned position (returned in component space) 更多...
 
static FVector GetSkinnedVertexPosition (USkinnedMeshComponent *Component, int32 VertexIndex, const FSkeletalMeshLODRenderData &LODDatal, FSkinWeightVertexBuffer &SkinWeightBuffer)
 Simple, CPU evaluation of a vertex's skinned position (returned in component space) 更多...
 
- 静态 Public 成员函数 继承自 USceneComponent
static void ConvertAttachLocation (EAttachLocation::Type InAttachLocation, EAttachmentRule &InOutLocationRule, EAttachmentRule &InOutRotationRule, EAttachmentRule &InOutScaleRule)
 Backwards compatibility: Used to convert old-style EAttachLocation to new-style EAttachmentRules
 
static const FName GetAbsoluteLocationPropertyName ()
 Gets the property name for bAbsoluteLocation. 更多...
 
static const FName GetAbsoluteRotationPropertyName ()
 Gets the property name for bAbsoluteRotation. 更多...
 
static const FName GetAbsoluteScalePropertyName ()
 Gets the property name for bAbsoluteScale. 更多...
 
static FName GetDefaultSceneRootVariableName ()
 The name to use for the default scene root variable
 
static const FName GetRelativeLocationPropertyName ()
 Gets the property name for RelativeLocation. 更多...
 
static const FName GetRelativeRotationPropertyName ()
 Gets the property name for RelativeRotation. 更多...
 
static const FName GetRelativeScale3DPropertyName ()
 Gets the property name for RelativeScale3D. 更多...
 
static const FName GetVisiblePropertyName ()
 Gets the property name for bVisible. 更多...
 
- 静态 Public 成员函数 继承自 UObject
static void AddReferencedObjects (UObject *InThis, FReferenceCollector &Collector)
 Callback used to allow object register its direct object references that are not already covered by the token stream. 更多...
 
static bool CanCreateInCurrentContext (UObject *Template)
 Determines if you can create an object from the supplied template in the current context (editor, client only, dedicated server, game/listen) This calls NeedsLoadForClient & NeedsLoadForServer
 
static UObject * GetArchetypeFromRequiredInfo (const UClass *Class, const UObject *Outer, FName Name, EObjectFlags ObjectFlags)
 Return the template that an object with this class, outer and name would be 更多...
 
static const FName & SourceFileTagName ()
 Get the common tag name used for all asset source file import paths
 
static void UpdateClassesExcludedFromDedicatedClient (const TArray< FString > &InClassNames, const TArray< FString > &InModulesNames)
 Update the list of classes that we should exclude from dedicated client builds
 
static void UpdateClassesExcludedFromDedicatedServer (const TArray< FString > &InClassNames, const TArray< FString > &InModulesNames)
 Update the list of classes that we should exclude from dedicated server builds
 
- 静态 Public 成员函数 继承自 UObjectBase
static void EmitBaseReferences (UClass *RootClass)
 Emit GC tokens for UObjectBase, this might be UObject::StaticClass or Default__Class
 
static FString RemoveClassPrefix (const TCHAR *ClassName)
 Removes the class prefix from the given string
 
- 静态 Public 属性 继承自 UPrimitiveComponent
static uint32 GlobalOverlapEventsCounter
 Count of all component overlap events (begin or end) ever generated for any components. 更多...
 
- 静态 Public 属性 继承自 USceneComponent
static int32 SkipUpdateOverlapsOptimEnabled
 Global flag to enable/disable overlap optimizations, settable with p.SkipUpdateOverlapsOptimEnabled cvar
 
- 静态 Public 属性 继承自 UActorComponent
static const FString ComponentTemplateNameSuffix
 Prefix used to identify template component instances
 
static FActorComponentGlobalCreatePhysicsSignature GlobalCreatePhysicsDelegate
 Create component physics state global delegate.
 
static FActorComponentGlobalDestroyPhysicsSignature GlobalDestroyPhysicsDelegate
 Destroy component physics state global delegate.
 
static FOnMarkRenderStateDirty MarkRenderStateDirtyEvent
 Called When render state is marked dirty
 
- 静态 Protected 属性 继承自 UPrimitiveComponent
static FThreadSafeCounter NextComponentId
 Next id to be used by a component.
 

详细描述

SkeletalMeshComponent is used to create an instance of an animated SkeletalMesh asset.

参见
https://docs.unrealengine.com/latest/INT/Engine/Content/Types/SkeletalMeshes/
USkeletalMesh

成员函数说明

◆ AddForceToAllBodiesBelow()

virtual void USkeletalMeshComponent::AddForceToAllBodiesBelow ( FVector  Force,
FName  BoneName = NAME_None,
bool  bAccelChange = false,
bool  bIncludeSelf = true 
)
virtual

Add a force to all rigid bodies below.

This is like a 'thruster'. Good for adding a burst over some (non zero) time. Should be called every frame for the duration of the force.

参数
ForceForce vector to apply. Magnitude indicates strength of force.
BoneNameIf a SkeletalMeshComponent, name of body to apply force to. 'None' indicates root body.
bAccelChangeIf true, Force is taken as a change in acceleration instead of a physical force (i.e. mass will have no effect).
bIncludeSelfIf false, Force is only applied to bodies below but not given bone name.

◆ AddImpulseToAllBodiesBelow()

virtual void USkeletalMeshComponent::AddImpulseToAllBodiesBelow ( FVector  Impulse,
FName  BoneName = NAME_None,
bool  bVelChange = false,
bool  bIncludeSelf = true 
)
virtual

Add impulse to all single rigid bodies below.

Good for one time instant burst.

参数
ImpulseMagnitude and direction of impulse to apply.
BoneNameIf a SkeletalMeshComponent, name of body to apply impulse to. 'None' indicates root body.
bVelChangeIf true, the Strength is taken as a change in velocity instead of an impulse (ie. mass will have no effect).
bIncludeSelfIf false, Force is only applied to bodies below but not given bone name.

◆ AddRadialForce()

virtual void USkeletalMeshComponent::AddRadialForce ( FVector  Origin,
float  Radius,
float  Strength,
ERadialImpulseFalloff  Falloff,
bool  bAccelChange = false 
)
overridevirtual

Add a force to all bodies in this component, originating from the supplied world-space location.

参数
OriginOrigin of force in world space.
RadiusRadius within which to apply the force.
StrengthStrength of force to apply.
FalloffAllows you to control the strength of the force as a function of distance from Origin.
bAccelChangeIf true, Strength is taken as a change in acceleration instead of a physical force (i.e. mass will have no effect).

重载 UPrimitiveComponent .

◆ AddRadialImpulse()

virtual void USkeletalMeshComponent::AddRadialImpulse ( FVector  Origin,
float  Radius,
float  Strength,
ERadialImpulseFalloff  Falloff,
bool  bVelChange = false 
)
overridevirtual

Add an impulse to all rigid bodies in this component, radiating out from the specified position.

参数
OriginPoint of origin for the radial impulse blast, in world space
RadiusSize of radial impulse. Beyond this distance from Origin, there will be no affect.
StrengthMaximum strength of impulse applied to body.
FalloffAllows you to control the strength of the impulse as a function of distance from Origin.
bVelChangeIf true, the Strength is taken as a change in velocity instead of an impulse (ie. mass will have no effect).

重载 UPrimitiveComponent .

◆ AllocateTransformData()

virtual bool USkeletalMeshComponent::AllocateTransformData ( )
overridevirtual

Allocate Transform Data array including SpaceBases, BoneVisibilityStates

重载 USkinnedMeshComponent .

◆ BeginPlay()

virtual void USkeletalMeshComponent::BeginPlay ( )
overridevirtual

Used to detach physics objects before simulation begins.

This is needed because at runtime we can't have simulated objects inside the attachment hierarchy

重载 UPrimitiveComponent .

◆ BindClothToMasterPoseComponent()

void USkeletalMeshComponent::BindClothToMasterPoseComponent ( )

If this component has a valid MasterPoseComponent then this function makes cloth items on the slave component take the transforms of the cloth items on the master component instead of simulating separately.

@Note This will FORCE any cloth actor on the master component to simulate in local space. Also The meshes used in the components must be identical for the cloth to bind correctly

◆ BlendPhysicsBones()

void USkeletalMeshComponent::BlendPhysicsBones ( TArray< FBoneIndexType > &  Bones)
inline

Blend of Physics Bones with PhysicsWeight and Animated Bones with (1-PhysicsWeight)

参数
RequiredBonesList of bones to be blend

◆ BreakConstraint()

void USkeletalMeshComponent::BreakConstraint ( FVector  Impulse,
FVector  HitLocation,
FName  InBoneName 
)

Break a constraint off a Gore mesh.

参数
Impulsevector of impulse
HitLocationlocation of the hit
InBoneNameName of bone to break constraint for

◆ CalcBounds()

virtual FBoxSphereBounds USkeletalMeshComponent::CalcBounds ( const FTransform &  LocalToWorld) const
overridevirtual

Calculate the bounds of the component.

Default behavior is a bounding box/sphere of zero size.

重载 USkinnedMeshComponent .

◆ CalculateMass()

virtual float USkeletalMeshComponent::CalculateMass ( FName  BoneName = NAME_None)
overridevirtual

Returns the calculated mass in kg.

This is not 100% exactly the mass physx will calculate, but it is very close ( difference < 0.1kg ).

重载 UPrimitiveComponent .

◆ ComponentOverlapMultiImpl()

virtual bool USkeletalMeshComponent::ComponentOverlapMultiImpl ( TArray< struct FOverlapResult > &  OutOverlaps,
const class UWorld *  InWorld,
const FVector &  Pos,
const FQuat &  Rot,
ECollisionChannel  TestChannel,
const struct FComponentQueryParams &  Params,
const struct FCollisionObjectQueryParams &  ObjectQueryParams = FCollisionObjectQueryParams::DefaultObjectQueryParam 
) const
overrideprotectedvirtual

Test the collision of the supplied component at the supplied location/rotation, and determine the set of components that it overlaps

参数
OutOverlapsArray of overlaps found between this component in specified pose and the world
WorldWorld to use for overlap test
PosLocation of the component's geometry for the test against the world
RotRotation of the component's geometry for the test against the world
TestChannelThe 'channel' that this ray is in, used to determine which components to hit
ObjectQueryParamsList of object types it's looking for. When this enters, we do object query with component shape
返回
TRUE if OutOverlaps contains any blocking results

重载 UPrimitiveComponent .

◆ ComputeRequiredBones()

void USkeletalMeshComponent::ComputeRequiredBones ( TArray< FBoneIndexType > &  OutRequiredBones,
TArray< FBoneIndexType > &  OutFillComponentSpaceTransformsRequiredBones,
int32  LODIndex,
bool  bIgnorePhysicsAsset 
) const

Computes the required bones in this SkeletalMeshComponent based on current SkeletalMesh, LOD and PhysicsAsset

参数
LODIndexIndex of LOD [0-(MaxLOD-1)]

◆ DebugDrawClothing()

void USkeletalMeshComponent::DebugDrawClothing ( FPrimitiveDrawInterface *  PDI)

Draw the currently clothing state, using the editor extender interface

参数
PDIThe draw interface to use

◆ DebugDrawClothingTexts()

void USkeletalMeshComponent::DebugDrawClothingTexts ( FCanvas *  Canvas,
const FSceneView *  SceneView 
)

Draw the currently clothing state, using the editor extender interface

参数
CanvasThe canvas to draw the text on
SceneViewThe view to project the text with

◆ DispatchParallelTickPose()

virtual void USkeletalMeshComponent::DispatchParallelTickPose ( FActorComponentTickFunction *  TickFunction)
overrideprotectedvirtual

Parallel Tick Pose In the case where we do not want to refresh bone transforms (and would therefore not normally kick off a parallel eval task) we perform this 'mini tick' that kicks off the task.

参数
TickFunctionAllows us to create graph tasks for parallelism

重载 USkinnedMeshComponent .

◆ DoCustomNavigableGeometryExport()

virtual bool USkeletalMeshComponent::DoCustomNavigableGeometryExport ( FNavigableGeometryExport &  GeomExport) const
overridevirtual

Collects custom navigable geometry of component.

返回
true if regular navigable geometry exporting should be run as well

重载 UPrimitiveComponent .

◆ FindConstraintBoneName()

FName USkeletalMeshComponent::FindConstraintBoneName ( int32  ConstraintIndex)

Find Constraint Name from index

参数
ConstraintIndexIndex of constraint to look for
返回
Constraint Joint Name

◆ FindConstraintIndex()

int32 USkeletalMeshComponent::FindConstraintIndex ( FName  ConstraintName)

Find Constraint Index from the name

参数
ConstraintNameJoint Name of constraint to look for
返回
Constraint Index

◆ ForceClothNextUpdateTeleportAndReset()

void USkeletalMeshComponent::ForceClothNextUpdateTeleportAndReset ( )

Used to indicate we should force 'teleport and reset' during the next call to UpdateClothState.

This can be used to reset it from a bad state or by a teleport where the old state is not important anymore.

◆ ForEachBodyBelow()

int32 USkeletalMeshComponent::ForEachBodyBelow ( FName  BoneName,
bool  bIncludeSelf,
bool  bSkipCustomType,
TFunctionRef< void(FBodyInstance *)>  Func 
)

Iterates over all bodies below and executes Func.

Returns number of bodies found

◆ GetAnimClass()

class UClass * USkeletalMeshComponent::GetAnimClass ( )

Get the anim instance class via getter callable by sequencer.


◆ GetAnimInstance()

class UAnimInstance * USkeletalMeshComponent::GetAnimInstance ( ) const

Returns the animation instance that is driving the class (if available).

This is typically an instance of the class set as AnimBlueprintGeneratedClass (generated by an animation blueprint) Since this instance is transient, it is not safe to be used during construction script

◆ GetBodyInstance()

virtual FBodyInstance * USkeletalMeshComponent::GetBodyInstance ( FName  BoneName = NAME_None,
bool  bGetWelded = true 
) const
overridevirtual

Returns BodyInstance of the component.

参数
BoneNameUsed to get body associated with specific bone. NAME_None automatically gets the root most body
bGetWeldedIf the component has been welded to another component and bGetWelded is true we return the single welded BodyInstance that is used in the simulation
返回
Returns the BodyInstance based on various states (does component have multiple bodies? Is the body welded to another body?)

重载 UPrimitiveComponent .

◆ GetBoneMass()

float USkeletalMeshComponent::GetBoneMass ( FName  BoneName = NAME_None,
bool  bScaleMass = true 
) const

Returns the mass (in kg) of the given bone

参数
BoneNameName of the body to return. 'None' indicates root body.
bScaleMassIf true, the mass is scaled by the bone's MassScale.

◆ GetClosestCollidingRigidBodyLocation()

FVector USkeletalMeshComponent::GetClosestCollidingRigidBodyLocation ( const FVector &  TestLocation) const

iterates through all bodies in our PhysicsAsset and returns the location of the closest bone associated with a body that has collision enabled.

参数
TestLocation- location to check against
返回
location of closest colliding rigidbody, or TestLocation if there were no bodies to test

◆ GetClosestPointOnPhysicsAsset()

bool USkeletalMeshComponent::GetClosestPointOnPhysicsAsset ( const FVector &  WorldPosition,
FClosestPointOnPhysicsAsset &  ClosestPointOnPhysicsAsset,
bool  bApproximate 
) const

Given a world position, find the closest point on the physics asset.

Note that this is independent of collision and welding. This is based purely on animation position

参数
WorldPositionThe point we want the closest point to (i.e. for all bodies in the physics asset, find the one that has a point closest to WorldPosition)
ClosestPointOnPhysicsAssetThe data associated with the closest point (position, normal, etc...)
bApproximateThe closest body is found using bone transform distance instead of body distance. This approximation means the final point is the closest point on a potentially not closest body. This approximation gets worse as the size of Bodies gets bigger.
返回
true if we found a closest point

◆ GetComponentTransformFromBodyInstance()

virtual FTransform USkeletalMeshComponent::GetComponentTransformFromBodyInstance ( FBodyInstance *  UseBI)
overrideprotectedvirtual

Called to get the Component To World Transform from the Root BodyInstance This needs to be virtual since SkeletalMeshComponent Root has to undo its own transform Without this, the root LocalToAtom is overridden by physics simulation, causing kinematic velocity to accelerate simulation

参数
UseBI - root body instance
返回
: New GetComponentTransform() to use

重载 UPrimitiveComponent .

◆ GetCurrentClothingData_AnyThread()

const TMap< int32, FClothSimulData > & USkeletalMeshComponent::GetCurrentClothingData_AnyThread ( ) const

Get the current simulation data map for the clothing on this component.

This will stall until the cloth simulation is complete.

◆ GetCurrentClothingData_GameThread()

const TMap< int32, FClothSimulData > & USkeletalMeshComponent::GetCurrentClothingData_GameThread ( ) const

Get the current simulation data map for the clothing on this component.

For use on the game thread and only valid if bWaitForParallelClothTask is true.

◆ GetCurrentJointAngles()

void USkeletalMeshComponent::GetCurrentJointAngles ( FName  InBoneName,
float &  Swing1Angle,
float &  TwistAngle,
float &  Swing2Angle 
)

Gets the current Angular state for a named bone constraint

参数
InBoneNameName of bone to get constraint ranges for
Swing1Anglecurrent angular state of the constraint
TwistAnglecurrent angular state of the constraint
Swing2Anglecurrent angular state of the constraint

◆ GetFloatAttribute()

bool USkeletalMeshComponent::GetFloatAttribute ( const FName &  BoneName,
const FName &  AttributeName,
float  DefaultValue,
float &  OutValue,
ECustomBoneAttributeLookup  LookupType = ECustomBoneAttributeLookup::BoneOnly 
)

Get float type custom attribute value.

参数
BoneNameName of the bone to retrieve try and retrieve the attribute from
AttributeNameName of the attribute to retrieve
DefaultValueIn case the attribute could not be found
OutValueRetrieved attribute value if found, otherwise is set to DefaultValue
LookupTypeDetermines how the attribute is retrieved from the specified BoneName (see ECustomBoneAttributeLookup)
返回
Whether or not the atttribute was successfully retrieved

◆ GetFloatAttribute_Ref()

bool USkeletalMeshComponent::GetFloatAttribute_Ref ( const FName &  BoneName,
const FName &  AttributeName,
float &  OutValue,
ECustomBoneAttributeLookup  LookupType = ECustomBoneAttributeLookup::BoneOnly 
)

Get float type custom attribute value.

参数
BoneNameName of the bone to retrieve try and retrieve the attribute from
AttributeNameName of the attribute to retrieve
DefaultValueIn case the attribute could not be found
OutValue(reference) Retrieved attribute value if found, otherwise is set to DefaultValue
LookupTypeDetermines how the attribute is retrieved from the specified BoneName (see ECustomBoneAttributeLookup)
返回
Whether or not the atttribute was successfully retrieved

◆ GetIntegerAttribute()

bool USkeletalMeshComponent::GetIntegerAttribute ( const FName &  BoneName,
const FName &  AttributeName,
int32  DefaultValue,
int32 &  OutValue,
ECustomBoneAttributeLookup  LookupType = ECustomBoneAttributeLookup::BoneOnly 
)

Get integer type custom attribute value.

参数
BoneNameName of the bone to retrieve try and retrieve the attribute from
AttributeNameName of the attribute to retrieve
DefaultValueIn case the attribute could not be found
OutValueRetrieved attribute value if found, otherwise is set to DefaultValue
LookupTypeDetermines how the attribute is retrieved from the specified BoneName (see ECustomBoneAttributeLookup)
返回
Whether or not the atttribute was successfully retrieved

◆ GetIntegerAttribute_Ref()

bool USkeletalMeshComponent::GetIntegerAttribute_Ref ( const FName &  BoneName,
const FName &  AttributeName,
int32 &  OutValue,
ECustomBoneAttributeLookup  LookupType = ECustomBoneAttributeLookup::BoneOnly 
)

Get integer type custom attribute value.

参数
BoneNameName of the bone to retrieve try and retrieve the attribute from
AttributeNameName of the attribute to retrieve
DefaultValueIn case the attribute could not be found
OutValue(reference) Retrieved attribute value if found, otherwise is set to DefaultValue
LookupTypeDetermines how the attribute is retrieved from the specified BoneName (see ECustomBoneAttributeLookup)
返回
Whether or not the atttribute was successfully retrieved

◆ GetLinkedAnimGraphInstanceByTag()

UAnimInstance * USkeletalMeshComponent::GetLinkedAnimGraphInstanceByTag ( FName  InTag) const

Returns the a tagged linked instance node.

If no linked instances are found or none are tagged with the supplied name, this will return NULL.

◆ GetPostProcessInstance()

UAnimInstance * USkeletalMeshComponent::GetPostProcessInstance ( ) const

Returns the active post process instance is one is available.

This is set on the mesh that this component is using, and is evaluated immediately after the main instance.

◆ GetResourceSizeEx()

virtual void USkeletalMeshComponent::GetResourceSizeEx ( FResourceSizeEx &  CumulativeResourceSize)
overridevirtual

Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific).

参数
CumulativeResourceSizeStruct used to count up the cumulative size of the resource as to be displayed to artists/LDs in the Editor.

重载 USkinnedMeshComponent .

◆ GetSquaredDistanceToCollision()

virtual bool USkeletalMeshComponent::GetSquaredDistanceToCollision ( const FVector &  Point,
float &  OutSquaredDistance,
FVector &  OutClosestPointOnCollision 
) const
overridevirtual

Returns The square of the distance to closest Body Instance surface.

参数
PointWorld 3D vector
OutSquaredDistanceThe squared distance to closest Body Instance surface. 0 if inside of the body
OutPointOnBodyPoint on the surface of collision closest to Point
返回
true if a distance to the body was found and OutDistanceSquared has been populated

重载 UPrimitiveComponent .

◆ GetStringAttribute()

bool USkeletalMeshComponent::GetStringAttribute ( const FName &  BoneName,
const FName &  AttributeName,
FString  DefaultValue,
FString &  OutValue,
ECustomBoneAttributeLookup  LookupType = ECustomBoneAttributeLookup::BoneOnly 
)

Get string type custom attribute value.

参数
BoneNameName of the bone to retrieve try and retrieve the attribute from
AttributeNameName of the attribute to retrieve
DefaultValueIn case the attribute could not be found
OutValueRetrieved attribute value if found, otherwise is set to DefaultValue
LookupTypeDetermines how the attribute is retrieved from the specified BoneName (see ECustomBoneAttributeLookup)
返回
Whether or not the atttribute was successfully retrieved

◆ GetStringAttribute_Ref()

bool USkeletalMeshComponent::GetStringAttribute_Ref ( const FName &  BoneName,
const FName &  AttributeName,
FString &  OutValue,
ECustomBoneAttributeLookup  LookupType = ECustomBoneAttributeLookup::BoneOnly 
)

Get string type custom attribute value.

参数
BoneNameName of the bone to retrieve try and retrieve the attribute from
AttributeNameName of the attribute to retrieve
DefaultValueIn case the attribute could not be found
OutValue(reference) Retrieved attribute value if found, otherwise is set to DefaultValue
LookupTypeDetermines how the attribute is retrieved from the specified BoneName (see ECustomBoneAttributeLookup)
返回
Whether or not the atttribute was successfully retrieved

◆ GetTeleportDistanceThreshold()

float USkeletalMeshComponent::GetTeleportDistanceThreshold ( ) const

Gets the teleportation distance threshold.

返回
Threshold value.

◆ GetTeleportRotationThreshold()

float USkeletalMeshComponent::GetTeleportRotationThreshold ( ) const

Gets the teleportation rotation threshold.

返回
Threshold in degrees.

◆ HideBone()

virtual void USkeletalMeshComponent::HideBone ( int32  BoneIndex,
EPhysBodyOp  PhysBodyOption 
)
overridevirtual

Hides the specified bone.

You can also set option for physics body.

参数
BoneIndexIndex of the bone
PhysBodyOptionOption for physics bodies that attach to the bones to be hidden

重载 USkinnedMeshComponent .

◆ InitArticulated()

void USkeletalMeshComponent::InitArticulated ( FPhysScene *  PhysScene)

Initialize PhysicsAssetInstance for the physicsAsset

参数
PhysScenePhysics Scene

◆ InitializeComponent()

virtual void USkeletalMeshComponent::InitializeComponent ( )
overridevirtual

Initializes the component.

Occurs at level startup or actor spawn. This is before BeginPlay (Actor or Component).
All Components in the level will be Initialized on load before any Actor/Component gets BeginPlay Requires component to be registered, and bWantsInitializeComponent to be true.

重载 UActorComponent .

◆ InstantiatePhysicsAsset()

void USkeletalMeshComponent::InstantiatePhysicsAsset ( const UPhysicsAsset &  PhysAsset,
const FVector &  Scale3D,
TArray< FBodyInstance * > &  OutBodies,
TArray< FConstraintInstance * > &  OutConstraints,
FPhysScene *  PhysScene = nullptr,
USkeletalMeshComponent *  OwningComponent = nullptr,
int32  UseRootBodyIndex = INDEX_NONE,
const FPhysicsAggregateHandle &  UseAggregate = FPhysicsAggregateHandle() 
) const

Instantiates bodies given a physics asset.

Typically you should call InitArticulated unless you are planning to do something special with the bodies. The Created bodies and constraints are owned by the calling code and must be freed when necessary.

◆ InstantiatePhysicsAssetRefPose()

void USkeletalMeshComponent::InstantiatePhysicsAssetRefPose ( const UPhysicsAsset &  PhysAsset,
const FVector &  Scale3D,
TArray< FBodyInstance * > &  OutBodies,
TArray< FConstraintInstance * > &  OutConstraints,
FPhysScene *  PhysScene = nullptr,
USkeletalMeshComponent *  OwningComponent = nullptr,
int32  UseRootBodyIndex = INDEX_NONE,
const FPhysicsAggregateHandle &  UseAggregate = FPhysicsAggregateHandle(),
bool  bCreateBodiesInRefPose = false 
) const

Instantiates bodies given a physics asset like InstantiatePhysicsAsset but instead of reading the current component state, this reads the ref-pose from the reference skeleton of the mesh.

Useful if trying to create bodies to be used during any evaluation work

◆ IsBodyGravityEnabled()

bool USkeletalMeshComponent::IsBodyGravityEnabled ( FName  BoneName)

Checks whether or not gravity is enabled on the given bone.

NAME_None indicates the root body should be queried. If the bone name given is otherwise invalid, false is returned.

参数
BoneNameThe name of the bone to check.
返回
True if gravity is enabled on the bone.

◆ IsGravityEnabled()

virtual bool USkeletalMeshComponent::IsGravityEnabled ( ) const
overridevirtual

Returns whether this component is affected by gravity.

Returns always false if the component is not simulated.

重载 UPrimitiveComponent .

◆ IsWindEnabled()

virtual bool USkeletalMeshComponent::IsWindEnabled ( ) const
virtual
返回
true if wind is enabled

◆ K2_GetClosestPointOnPhysicsAsset()

bool USkeletalMeshComponent::K2_GetClosestPointOnPhysicsAsset ( const FVector &  WorldPosition,
FVector &  ClosestWorldPosition,
FVector &  Normal,
FName &  BoneName,
float &  Distance 
) const

Given a world position, find the closest point on the physics asset.

Note that this is independent of collision and welding. This is based purely on animation position

参数
WorldPositionThe point we want the closest point to (i.e. for all bodies in the physics asset, find the one that has a point closest to WorldPosition)
ClosestPointOnPhysicsAssetThe data associated with the closest point (position, normal, etc...)
返回
true if we found a closest point

◆ LineTraceComponent()

virtual bool USkeletalMeshComponent::LineTraceComponent ( FHitResult &  OutHit,
const FVector  Start,
const FVector  End,
const FCollisionQueryParams &  Params 
)
overridevirtual

Trace a ray against just this component.

参数
OutHitInformation about hit against this component, if true is returned
StartStart location of the ray
EndEnd location of the ray
ParamsAdditional parameters used for the trace
返回
true if a hit is found

重载 UPrimitiveComponent .

◆ LinkAnimClassLayers()

void USkeletalMeshComponent::LinkAnimClassLayers ( TSubclassOf< UAnimInstance >  InClass)

Runs through all layer nodes, attempting to find layer nodes that are implemented by the specified class, then sets up a linked instance of the class for each.

Allocates one linked instance to run each of the groups specified in the class, so state is shared. If a layer is not grouped (ie. NAME_None), then state is not shared and a separate linked instance is allocated for each layer node. If InClass is null, then all layers are reset to their defaults.

◆ OnPreEndOfFrameSync()

virtual void USkeletalMeshComponent::OnPreEndOfFrameSync ( )
overridevirtual

Allows components to wait on outstanding tasks prior to sending EOF update data.

Executed on Game Thread and may await tasks.

重载 UActorComponent .

◆ OnUnregister()

virtual void USkeletalMeshComponent::OnUnregister ( )
overrideprotectedvirtual

Called when a component is unregistered.

Called after DestroyRenderState_Concurrent and OnDestroyPhysicsState are called.

重载 USkinnedMeshComponent .

◆ OverlapComponent()

virtual bool USkeletalMeshComponent::OverlapComponent ( const FVector &  Pos,
const FQuat &  Rot,
const FCollisionShape &  CollisionShape 
)
overridevirtual

Test the collision of the supplied shape at the supplied location, and determine if it overlaps this component.

参数
PosLocation to place PrimComp geometry at
RotRotation of PrimComp geometry
CollisionShapeShape of collision of PrimComp geometry
返回
true if PrimComp overlaps this component at the specified location/rotation

重载 UPrimitiveComponent .

◆ OverrideAnimationData()

void USkeletalMeshComponent::OverrideAnimationData ( UAnimationAsset *  InAnimToPlay,
bool  bIsLooping = true,
bool  bIsPlaying = true,
float  Position = 0.f,
float  PlayRate = 1.f 
)

This overrides current AnimationData parameter in the SkeletalMeshComponent.

This will serialize when the component serialize so it can be used during construction script. However note that this will override current existing data This can be useful if you'd like to make a blueprint with custom default animation per component This sets single player mode, which means you can't use AnimBlueprint with it

◆ PerformAnimationProcessing()

void USkeletalMeshComponent::PerformAnimationProcessing ( const USkeletalMesh *  InSkeletalMesh,
UAnimInstance *  InAnimInstance,
bool  bInDoEvaluation,
TArray< FTransform > &  OutSpaceBases,
TArray< FTransform > &  OutBoneSpaceTransforms,
FVector &  OutRootBoneTranslation,
FBlendedHeapCurve &  OutCurve,
FHeapCustomAttributes &  OutAttributes 
)

Runs the animation evaluation for the current pose into the supplied variables PerformAnimationProcessing runs evaluation based on bInDoEvaluation.

PerformAnimationEvaluation always runs evaluation (and exists for backward compatibility)

参数
InSkeletalMeshThe skeletal mesh we are animating
InAnimInstanceThe anim instance we are evaluating
bInDoEvaluationWhether to perform evaluation (we may just want to update)
OutSpaceBasesComponent space bone transforms
OutBoneSpaceTransformsLocal space bone transforms
OutRootBoneTranslationCalculated root bone translation
OutCurvesBlended Curve

◆ PostLoad()

virtual void USkeletalMeshComponent::PostLoad ( )
overridevirtual

Do any object-specific cleanup required immediately after loading an object.

This is not called for newly-created objects, and by default will always execute on the game thread.

重载 UPrimitiveComponent .

◆ RecalcRequiredBones()

void USkeletalMeshComponent::RecalcRequiredBones ( int32  LODIndex)

Recalculates the RequiredBones array in this SkeletalMeshComponent based on current SkeletalMesh, LOD and PhysicsAsset.

Is called when bRequiredBonesUpToDate = false

参数
LODIndexIndex of LOD [0-(MaxLOD-1)]

◆ RefreshBoneTransforms()

virtual void USkeletalMeshComponent::RefreshBoneTransforms ( FActorComponentTickFunction *  TickFunction = NULL)
overridevirtual

Update functions

Refresh Bone Transforms Each class will need to implement this function Ideally this function should be atomic (not relying on Tick or any other update.)

参数
TickFunctionSupplied as non null if we are running in a tick, allows us to create graph tasks for parallelism

重载 USkinnedMeshComponent .

◆ RegisterComponentTickFunctions()

virtual void USkeletalMeshComponent::RegisterComponentTickFunctions ( bool  bRegister)
overrideprotectedvirtual

Virtual call chain to register all tick functions

参数
bRegister- true to register, false, to unregister

重载 UActorComponent .

◆ Serialize()

virtual void USkeletalMeshComponent::Serialize ( FArchive &  Ar)
overridevirtual

Handles reading, writing, and reference collecting using FArchive.

This implementation handles all FProperty serialization, but can be overridden for native variables.

重载 USkinnedMeshComponent .

◆ SetAllBodiesSimulatePhysics()

void USkeletalMeshComponent::SetAllBodiesSimulatePhysics ( bool  bNewSimulate)

Set bSimulatePhysics to true for all bone bodies.

Does not change the component bSimulatePhysics flag.

◆ SetAllMotorsAngularPositionDrive()

void USkeletalMeshComponent::SetAllMotorsAngularPositionDrive ( bool  bEnableSwingDrive,
bool  bEnableTwistDrive,
bool  bSkipCustomPhysicsType = false 
)

Enable or Disable AngularPositionDrive.

If motor is in SLERP mode it will be turned on if either EnableSwingDrive OR EnableTwistDrive are enabled. In Twist and Swing mode the twist and the swing can be controlled individually.

◆ SetAllMotorsAngularVelocityDrive()

void USkeletalMeshComponent::SetAllMotorsAngularVelocityDrive ( bool  bEnableSwingDrive,
bool  bEnableTwistDrive,
bool  bSkipCustomPhysicsType = false 
)

Enable or Disable AngularVelocityDrive.

If motor is in SLERP mode it will be turned on if either EnableSwingDrive OR EnableTwistDrive are enabled. In Twist and Swing mode the twist and the swing can be controlled individually.

◆ SetAllPhysicsAngularVelocityInRadians()

virtual void USkeletalMeshComponent::SetAllPhysicsAngularVelocityInRadians ( FVector const &  NewAngVel,
bool  bAddToCurrent = false 
)
overridevirtual

Set the angular velocity of all bodies in this component.

参数
NewAngVelNew angular velocity to apply to physics, in radians per second.
bAddToCurrentIf true, NewAngVel is added to the existing angular velocity of all bodies.

重载 UPrimitiveComponent .

◆ SetAllPhysicsLinearVelocity()

virtual void USkeletalMeshComponent::SetAllPhysicsLinearVelocity ( FVector  NewVel,
bool  bAddToCurrent = false 
)
overridevirtual

Set the linear velocity of all bodies in this component.

参数
NewVelNew linear velocity to apply to physics.
bAddToCurrentIf true, NewVel is added to the existing velocity of the body.

重载 UPrimitiveComponent .

◆ SetAllPhysicsPosition()

virtual void USkeletalMeshComponent::SetAllPhysicsPosition ( FVector  NewPos)
overridevirtual

Set the position of all bodies in this component.

If a SkeletalMeshComponent, the root body will be placed at the desired position, and the same delta is applied to all other bodies.

参数
NewPosNew position for the body

重载 UPrimitiveComponent .

◆ SetAllPhysicsRotation() [1/2]

virtual void USkeletalMeshComponent::SetAllPhysicsRotation ( const FQuat &  NewRot)
overridevirtual

Set the rotation of all bodies in this component.

If a SkeletalMeshComponent, the root body will be changed to the desired orientation, and the same delta is applied to all other bodies.

参数
NewRotNew orienatation for the body

重载 UPrimitiveComponent .

◆ SetAllPhysicsRotation() [2/2]

virtual void USkeletalMeshComponent::SetAllPhysicsRotation ( FRotator  NewRot)
overridevirtual

Set the rotation of all bodies in this component.

If a SkeletalMeshComponent, the root body will be changed to the desired orientation, and the same delta is applied to all other bodies.

参数
NewRotNew orienatation for the body

重载 UPrimitiveComponent .

◆ SetAngularLimits()

void USkeletalMeshComponent::SetAngularLimits ( FName  InBoneName,
float  Swing1LimitAngle,
float  TwistLimitAngle,
float  Swing2LimitAngle 
)

Sets the Angular Motion Ranges for a named bone

参数
InBoneNameName of bone to adjust constraint ranges for
Swing1LimitAngleSize of limit in degrees, 0 means locked, 180 means free
TwistLimitAngleSize of limit in degrees, 0 means locked, 180 means free
Swing2LimitAngleSize of limit in degrees, 0 means locked, 180 means free

◆ SetAnimClass()

virtual void USkeletalMeshComponent::SetAnimClass ( class UClass *  NewClass)
virtual

Set the anim instance class.

Clears and re-initializes the anim instance with the new class and sets animation mode to 'AnimationBlueprint'

◆ SetAnimInstanceClass()

void USkeletalMeshComponent::SetAnimInstanceClass ( class UClass *  NewClass)

Set the anim instance class.

Clears and re-initializes the anim instance with the new class and sets animation mode to 'AnimationBlueprint'

◆ SetBodyNotifyRigidBodyCollision()

virtual void USkeletalMeshComponent::SetBodyNotifyRigidBodyCollision ( bool  bNewNotifyRigidBodyCollision,
FName  BoneName = NAME_None 
)
virtual

Changes the value of bNotifyRigidBodyCollision for a given body

参数
bNewNotifyRigidBodyCollisionThe value to assign to bNotifyRigidBodyCollision
BoneNameName of the body to turn hit notifies on/off. None implies root body

◆ SetConstraintProfile()

void USkeletalMeshComponent::SetConstraintProfile ( FName  JointName,
FName  ProfileName,
bool  bDefaultIfNotFound = false 
)

Sets the constraint profile properties (limits, motors, etc...) to match the constraint profile as defined in the physics asset.

If profile name is not found the joint is set to use the default constraint profile.

◆ SetConstraintProfileForAll()

void USkeletalMeshComponent::SetConstraintProfileForAll ( FName  ProfileName,
bool  bDefaultIfNotFound = false 
)

Sets the constraint profile properties (limits, motors, etc...) to match the constraint profile as defined in the physics asset for all constraints.

If profile name is not found the joint is set to use the default constraint profile.

◆ SetDisablePostProcessBlueprint()

void USkeletalMeshComponent::SetDisablePostProcessBlueprint ( bool  bInDisablePostProcess)

Sets whether the post process blueprint is currently running for this component.

If it is not currently running, and is set to run, the instance will be reinitialized

◆ SetEnableBodyGravity()

void USkeletalMeshComponent::SetEnableBodyGravity ( bool  bEnableGravity,
FName  BoneName 
)

Enables or disables gravity for the given bone.

NAME_None indicates the root body will be edited. If the bone name given is otherwise invalid, nothing happens.

参数
bEnableGravityWhether gravity should be enabled or disabled.
BoneNameThe name of the bone to modify.

◆ SetEnableGravity()

virtual void USkeletalMeshComponent::SetEnableGravity ( bool  bGravityEnabled)
virtual

Enables/disables whether this component is affected by gravity.

This applies only to components with bSimulatePhysics set to true.

重载 UPrimitiveComponent .

◆ SetEnableGravityOnAllBodiesBelow()

void USkeletalMeshComponent::SetEnableGravityOnAllBodiesBelow ( bool  bEnableGravity,
FName  BoneName,
bool  bIncludeSelf = true 
)

Enables or disables gravity to all bodies below the given bone.

NAME_None indicates all bodies will be edited. In that case, consider using UPrimitiveComponent::EnableGravity.

参数
bEnableGravityWhether gravity should be enabled or disabled.
BoneNameThe name of the top most bone.
bIncludeSelfWhether the bone specified should be edited.

◆ SetForceRefPose()

void USkeletalMeshComponent::SetForceRefPose ( bool  bNewForceRefPose)

Change whether to force mesh into ref pose (and use cheaper vertex shader)

参数
bNewForceRefPosetrue if it would like to force ref pose

◆ SetMorphTarget()

void USkeletalMeshComponent::SetMorphTarget ( FName  MorphTargetName,
float  Value,
bool  bRemoveZeroWeight = true 
)

Set Morph Target with Name and Value(0-1)

参数
bRemoveZeroWeight: Used by editor code when it should stay in the active list with zero weight

◆ SetNotifyRigidBodyCollision()

virtual void USkeletalMeshComponent::SetNotifyRigidBodyCollision ( bool  bNewNotifyRigidBodyCollision)
overridevirtual

Changes the value of bNotifyRigidBodyCollision

参数
bNewNotifyRigidBodyCollision- The value to assign to bNotifyRigidBodyCollision

重载 UPrimitiveComponent .

◆ SetNotifyRigidBodyCollisionBelow()

virtual void USkeletalMeshComponent::SetNotifyRigidBodyCollisionBelow ( bool  bNewNotifyRigidBodyCollision,
FName  BoneName = NAME_None,
bool  bIncludeSelf = true 
)
virtual

Changes the value of bNotifyRigidBodyCollision on all bodies below a given bone

参数
bNewNotifyRigidBodyCollisionThe value to assign to bNotifyRigidBodyCollision
BoneNameName of the body to turn hit notifies on (and below)
bIncludeSelfWhether to modify the given body (useful for roots with multiple children)

◆ SetPhysicsAsset()

virtual void USkeletalMeshComponent::SetPhysicsAsset ( class UPhysicsAsset *  NewPhysicsAsset,
bool  bForceReInit = false 
)
overridevirtual

Override the Physics Asset of the mesh.

It uses SkeletalMesh.PhysicsAsset, but if you'd like to override use this function

参数
NewPhysicsAssetNew PhysicsAsset
bForceReInitForce reinitialize

重载 USkinnedMeshComponent .

◆ SetPhysicsBlendWeight()

void USkeletalMeshComponent::SetPhysicsBlendWeight ( float  PhysicsBlendWeight)

This is global set up for setting physics blend weight This does multiple things automatically If PhysicsBlendWeight == 1.f, it will enable Simulation, and if PhysicsBlendWeight == 0.f, it will disable Simulation.

Also it will respect each body's setup, so if the body is fixed, it won't simulate. Vice versa So if you'd like all bodies to change manually, do not use this function, but SetAllBodiesPhysicsBlendWeight

◆ SetPhysMaterialOverride()

virtual void USkeletalMeshComponent::SetPhysMaterialOverride ( UPhysicalMaterial *  NewPhysMaterial)
overridevirtual

Changes the current PhysMaterialOverride for this component.

Note that if physics is already running on this component, this will not alter its mass/inertia etc,
it will only change its surface properties like friction.

重载 UPrimitiveComponent .

◆ SetSimulatePhysics()

virtual void USkeletalMeshComponent::SetSimulatePhysics ( bool  bSimulate)
overridevirtual

Sets whether or not a single body should use physics simulation, or should be 'fixed' (kinematic).

Note that if this component is currently attached to something, beginning simulation will detach it.

参数
bSimulateNew simulation state for single body

重载 UPrimitiveComponent .

◆ SetSkeletalMesh()

virtual void USkeletalMeshComponent::SetSkeletalMesh ( class USkeletalMesh *  NewMesh,
bool  bReinitPose = true 
)
overridevirtual

Change the SkeletalMesh that is rendered for this Component.

Will re-initialize the animation tree etc.

参数
NewMeshNew mesh to set for this component
bReinitPoseWhether we should keep current pose or reinitialize.

重载 USkinnedMeshComponent .

◆ SetTeleportDistanceThreshold()

void USkeletalMeshComponent::SetTeleportDistanceThreshold ( float  Threshold)

Sets the teleportation distance threshold.

参数
thresholdThreshold value.

◆ SetTeleportRotationThreshold()

void USkeletalMeshComponent::SetTeleportRotationThreshold ( float  Threshold)

Sets the teleportation rotation threshold.

参数
thresholdThreshold in degrees.

◆ SetUpdateClothInEditor()

void USkeletalMeshComponent::SetUpdateClothInEditor ( const bool  NewUpdateState)

Sets whether or not to animate cloth in the editor.

Requires Update Animation In Editor to also be true. This is supported only in the editor

◆ ShouldCreatePhysicsState()

virtual bool USkeletalMeshComponent::ShouldCreatePhysicsState ( ) const
overrideprotectedvirtual

Return true if CreatePhysicsState() should be called.

Ideally CreatePhysicsState() should always succeed if this returns true, but this isn't currently the case

重载 UPrimitiveComponent .

◆ ShouldTickAnimation()

bool USkeletalMeshComponent::ShouldTickAnimation ( ) const
返回
whether we should tick animation (we may want to skip it due to URO)

◆ ShouldTickPose()

virtual bool USkeletalMeshComponent::ShouldTickPose ( ) const
overridevirtual

Should tick pose (by calling TickPose) in Tick

返回
: return true if should Tick. false otherwise.

重载 USkinnedMeshComponent .

◆ ShouldUpdateTransform()

virtual bool USkeletalMeshComponent::ShouldUpdateTransform ( bool  bLODHasChanged) const
overridevirtual

Should update transform in Tick

参数
bLODHasChanged: Has LOD been changed since last time?
返回
: return true if need transform update. false otherwise.

重载 USkinnedMeshComponent .

◆ SkelMeshCompOnParticleSystemFinished()

virtual void USkeletalMeshComponent::SkelMeshCompOnParticleSystemFinished ( class UParticleSystemComponent *  PSC)
virtual

We detach the Component once we are done playing it.

参数
ParticleSystemComponentthat finished

◆ SnapshotPose()

void USkeletalMeshComponent::SnapshotPose ( FPoseSnapshot &  Snapshot)

Takes a snapshot of this skeletal mesh component's pose and saves it to the specified snapshot.

The snapshot is taken at the current LOD, so if for example you took the snapshot at LOD1 and then used it at LOD0 any bones not in LOD1 will use the reference pose

◆ SuspendClothingSimulation()

void USkeletalMeshComponent::SuspendClothingSimulation ( )

Stops simulating clothing, but does not show clothing ref pose.

Keeps the last known simulation state

◆ SweepComponent()

virtual bool USkeletalMeshComponent::SweepComponent ( FHitResult &  OutHit,
const FVector  Start,
const FVector  End,
const FQuat &  ShapRotation,
const FCollisionShape &  CollisionShape,
bool  bTraceComplex = false 
)
overridevirtual

Trace a shape against just this component.

Will trace against each body, returning as soon as any collision is found. Note that this collision may not be the closest.

参数
OutHitInformation about hit against this component, if true is returned
StartStart location of the trace
EndEnd location of the trace
ShapeWorldRotationThe rotation applied to the collision shape in world space
CollisionShapeCollision Shape
bTraceComplexWhether or not to trace complex
返回
true if a hit is found

重载 UPrimitiveComponent .

◆ TermBodiesBelow()

void USkeletalMeshComponent::TermBodiesBelow ( FName  ParentBoneName)

Terminate physics on all bodies below the named bone, effectively disabling collision forever.

If you terminate, you won't be able to re-init later.

◆ TickComponent()

virtual void USkeletalMeshComponent::TickComponent ( float  DeltaTime,
enum ELevelTick  TickType,
FActorComponentTickFunction *  ThisTickFunction 
)
overridevirtual

Function called every frame on this ActorComponent.

Override this function to implement custom logic to be executed every frame. Only executes if the component is registered, and also PrimaryComponentTick.bCanEverTick must be set to true.

参数
DeltaTime- The time since the last tick.
TickType- The kind of tick this is, for example, are we paused, or 'simulating' in the editor
ThisTickFunction- Internal tick function struct that caused this to run

重载 USkinnedMeshComponent .

◆ TickPose()

virtual void USkeletalMeshComponent::TickPose ( float  DeltaTime,
bool  bNeedsValidRootMotion 
)
overridevirtual

Tick Pose, this function ticks and do whatever it needs to do in this frame, should be called before RefreshBoneTransforms

参数
DeltaTimeDeltaTime
返回
Return true if anything modified. Return false otherwise
参数
bNeedsValidRootMotion- Networked games care more about this, but if false we can do less calculations

重载 USkinnedMeshComponent .

◆ UnbindClothFromMasterPoseComponent()

void USkeletalMeshComponent::UnbindClothFromMasterPoseComponent ( bool  bRestoreSimulationSpace = true)

If this component has a valid MasterPoseComponent and has previously had its cloth bound to the MCP, this function will unbind the cloth and resume simulation.

参数
bRestoreSimulationSpaceif true and the master pose cloth was originally simulating in world space, we will restore this setting. This will cause the master component to reset which may be undesirable.

◆ UnHideBone()

virtual void USkeletalMeshComponent::UnHideBone ( int32  BoneIndex)
overridevirtual

Unhides the specified bone.


参数
BoneIndexIndex of the bone

重载 USkinnedMeshComponent .

◆ UnlinkAnimClassLayers()

void USkeletalMeshComponent::UnlinkAnimClassLayers ( TSubclassOf< UAnimInstance >  InClass)

Runs through all layer nodes, attempting to find layer nodes that are currently running the specified class, then resets each to its default value.

State sharing rules are as with SetLayerOverlay. If InClass is null, does nothing.

◆ UpdateBoneBodyMapping()

void USkeletalMeshComponent::UpdateBoneBodyMapping ( )

Update the bone mapping on each body instance.

This is useful when changing skeletal mesh without recreating bodies

◆ UpdateClothCollision()

void USkeletalMeshComponent::UpdateClothCollision ( )

Updates cloth collision inside the cloth asset (from a physics asset).

Should be called when the physics asset changes and the effects are needed straight away.

◆ UpdateKinematicBonesToAnim()

void USkeletalMeshComponent::UpdateKinematicBonesToAnim ( const TArray< FTransform > &  InComponentSpaceTransforms,
ETeleportType  Teleport,
bool  bNeedsSkinning,
EAllowKinematicDeferral  DeferralAllowed = EAllowKinematicDeferral::AllowDeferral 
)

Iterate over each physics body in the physics for this mesh, and for each 'kinematic' (ie fixed or default if owner isn't simulating) one, update its transform based on the animated transform.

参数
InComponentSpaceTransformsArray of bone transforms in component space
TeleportWhether movement is a 'teleport' (ie infers no physics velocity, but moves simulating bodies) or not
bNeedsSkinningWhether we may need to send new triangle data for per-poly skeletal mesh collision
AllowDeferralWhether we can defer actual update of bodies (if 'physics only' collision)

◆ UpdateLODStatus()

virtual bool USkeletalMeshComponent::UpdateLODStatus ( )
overridevirtual

Update the PredictedLODLevel and MaxDistanceFactor in the component from its MeshObject.

返回
true if LOD has been changed. false otherwise.

重载 USkinnedMeshComponent .

◆ UpdateMeshForBrokenConstraints()

void USkeletalMeshComponent::UpdateMeshForBrokenConstraints ( )

Look up all bodies for broken constraints.

Makes sure child bodies of a broken constraints are not fixed and using bone springs, and child joints not motorized.

◆ UpdateOverlapsImpl()

virtual bool USkeletalMeshComponent::UpdateOverlapsImpl ( const TOverlapArrayView *  NewPendingOverlaps = NULL,
bool  bDoNotifies = true,
const TOverlapArrayView *  OverlapsAtEndLocation = NULL 
)
overridevirtual

Queries world and updates overlap tracking state for this component.

参数
NewPendingOverlapsAn ordered list of components that the MovedComponent overlapped during its movement (eg. generated during a sweep). Only used to add potentially new overlaps. Might not be overlapping them now.
bDoNotifiesTrue to dispatch being/end overlap notifications when these events occur.
OverlapsAtEndLocationIf non-null, the given list of overlaps will be used as the overlaps for this component at the current location, rather than checking for them with a scene query. Generally this should only be used if this component is the RootComponent of the owning actor and overlaps with other descendant components have been verified.
返回
True if we can skip calling this in the future (i.e. no useful work is being done.)

重载 USkinnedMeshComponent .

◆ UpdateSlaveComponent()

virtual void USkeletalMeshComponent::UpdateSlaveComponent ( )
overridevirtual

Update Slave Component.

This gets called when MasterPoseComponent!=NULL

重载 USkinnedMeshComponent .

类成员变量说明

◆ AnimBlueprintGeneratedClass

class UAnimBlueprintGeneratedClass* USkeletalMeshComponent::AnimBlueprintGeneratedClass

Animation

@Todo anim: Matinee related data start - this needs to be replaced to new system. @Todo anim: Matinee related data end - this needs to be replaced to new system.

◆ bDeferKinematicBoneUpdate

uint8 USkeletalMeshComponent::bDeferKinematicBoneUpdate

Optimization

Whether animation and world transform updates are deferred. If this is on, the kinematic bodies (scene query data) will not update until the next time the physics simulation is run

◆ bEnablePhysicsOnDedicatedServer

uint8 USkeletalMeshComponent::bEnablePhysicsOnDedicatedServer

If true, simulate physics for this component on a dedicated server.

This should be set if simulating physics and replicating with a dedicated server. Note: This property cannot be changed at runtime.

◆ bForceRefpose

uint8 USkeletalMeshComponent::bForceRefpose

Misc

If true, force the mesh into the reference pose - is an optimization.

◆ bIsAutonomousTickPose

uint8 USkeletalMeshComponent::bIsAutonomousTickPose

True if calling TickPose() from Autonomous networking updates.

See ACharacter.

◆ bLocalSpaceKinematics

uint8 USkeletalMeshComponent::bLocalSpaceKinematics

Temporary fix for local space kinematics.

This only works for bodies that have no constraints and is needed by vehicles. Proper support will remove this flag

◆ bLocalSpaceSimulation

uint8 USkeletalMeshComponent::bLocalSpaceSimulation

It's worth trying this option when you feel that the current cloth simulation is unstable.

The scale of the actor is maintained during the simulation. It is possible to add the inertia effects to the simulation, through the inertiaScale parameter of the clothing material. So with an inertiaScale of 1.0 there should be no visible difference between local space and global space simulation. Known issues: - Currently there's simulation issues when this feature is used in 3.x (DE4076) So if localSpaceSim is enabled there's no inertia effect when the global pose of the clothing actor changes.

◆ BodySetup

class UBodySetup* USkeletalMeshComponent::BodySetup

Used for per poly collision.

In 99% of cases you will be better off using a Physics Asset. This BodySetup is per instance because all modification of vertices is done in place

◆ BoneSpaceTransforms

TArray<FTransform> USkeletalMeshComponent::BoneSpaceTransforms

Temporary array of local-space (relative to parent bone) rotation/translation for each bone.

This property is not safe to access during evaluation, so we created wrapper.

◆ bOnlyAllowAutonomousTickPose

uint8 USkeletalMeshComponent::bOnlyAllowAutonomousTickPose

If true TickPose() will not be called from the Component's TickComponent function.

It will instead be called from Autonomous networking updates. See ACharacter.

◆ bShowPrePhysBones

uint8 USkeletalMeshComponent::bShowPrePhysBones

Bool that enables debug drawing of the skeleton before it is passed to the physics.

Useful for debugging animation-driven physics.

◆ bSimulationUpdatesChildTransforms

uint8 USkeletalMeshComponent::bSimulationUpdatesChildTransforms

Indicates that simulation (if it's enabled) is entirely responsible for children transforms.

This is only ok if you are not animating attachment points relative to the simulation

◆ bSkipBoundsUpdateWhenInterpolating

uint8 USkeletalMeshComponent::bSkipBoundsUpdateWhenInterpolating

Whether to skip bounds update when interpolating.

Bounds are updated to the target interpolation pose only on ticks when they are evaluated.

◆ bSkipKinematicUpdateWhenInterpolating

uint8 USkeletalMeshComponent::bSkipKinematicUpdateWhenInterpolating

Whether to skip UpdateKinematicBonesToAnim() when interpolating.

Kinematic bones are updated to the target interpolation pose only on ticks when they are evaluated.

◆ bWaitForParallelClothTask

bool USkeletalMeshComponent::bWaitForParallelClothTask

Whether we should stall the Cloth tick task until the cloth simulation is complete.

This is required if we want up-to-date cloth data on the game thread, for example if we want to generate particles at cloth vertices.

◆ CurrentSimulationData

TMap<int32, FClothSimulData> USkeletalMeshComponent::CurrentSimulationData
protected

Simulation data written back to the component after the simulation has taken place.

If this data is required by any system other than rendering, bWaitForParallelClothTask must be true. If bWaitForParallelClothTask is false, this data cannot be read on the game thread, and there must be a call to HandleExistingParallelClothSimulation() prior to accessing it.

◆ PendingRadialForces

TArray<FPendingRadialForces> USkeletalMeshComponent::PendingRadialForces

Array of physical interactions for the frame.

This is a temporary solution for a more permanent force system and should not be used directly

◆ RequiredBones

TArray<FBoneIndexType> USkeletalMeshComponent::RequiredBones

Temporary array of bone indices required this frame.

Filled in by UpdateSkelPose.

◆ 

struct { ... } USkeletalMeshComponent::RootBodyData

Index of the 'Root Body', or top body in the asset hierarchy.

Filled in by InitInstance, so we don't need to save it. To save root body index/bone index consistently

◆ RootBoneTranslation

FVector USkeletalMeshComponent::RootBoneTranslation

Offset of the root bone from the reference pose.

Used to offset bounding box.


该类的文档由以下文件生成: