MSkeletalMeshComponent
- Module
- Game
- Header
#include "Game/MSkeletalMeshComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
bool | autoPlay | Default true. |
std::string | initialClipAsset | The clip autoPlay starts, as an AnimSequence package (id or path). Wins over initialClip, which only legacy content sets. |
int32_t | initialClip | Default 0. |
bool | dualQuaternionSkinning | Mirrored onto the AnimatorComponent's skinningMethod: dual quaternion keeps a twisted joint's volume where linear blend skinning pinches it. Default false. |
bool | capsuleShadows | UE's Cast Capsule Shadows: the posed skeleton casts soft capsule occlusion (sky light and sun) that grounds the character where the shadow map is too coarse. Mirrored onto MeshRendererComponent. Default false. |
float | capsuleRadiusScale | Default 1.0f. |
Constructors
| Signature | Name | Description |
|---|---|---|
MSkeletalMeshComponent() = default | MSkeletalMeshComponent |
Public functions
| Returns | Name | Description |
|---|---|---|
void | OnRegister | |
void | PullFromMirror | |
bool | PlayAnimationAsset | Playback (mirrored AnimatorComponent). |
void | PlayAnimation | |
void | StopAnimation | |
void | SetPlayRate | |
bool | IsPlayingAnimation | |
int32_t | GetClipCount | |
bool | PlayMontage | Montages ride the animator's slots: a montage asset listed on the animator plays by name, over the base pose on the slot it names. |
void | StopMontage | |
bool | IsMontagePlaying | |
std::string | GetMontageSection | |
void | SetAnimBool | |
void | SetAnimFloat | |
void | SetAnimTrigger | |
std::string | GetCurrentAnimState | Current state name, or empty without a controller. |
float | GetAnimCurveValue | Named curve track value evaluated this frame (blend-weighted across the playing clips). |
bool | GetSocketLocalTransform | Sockets are the skeleton's bones: the named bone's CURRENT global pose (mesh space) from this frame's evaluated animation, falling back to the rest pose before the first evaluation. |
Function details
MSkeletalMeshComponent
MSkeletalMeshComponent() = defaultOnRegister
void OnRegister() overridePullFromMirror
void PullFromMirror(World* ecs, EntityID entity) overridePlayAnimationAsset
bool PlayAnimationAsset(const std::string& clip, bool loopAnim = true)Playback (mirrored AnimatorComponent). A clip is addressed by its AnimSequence package — the id, or its path as a soft reference — which survives a reimport, a rename and a shared skeleton reordering the model's clip list; a bare name still finds a clip that came out of a model's render data. The index form reads what older content wrote.
PlayAnimation
void PlayAnimation(int32_t clipIndex, bool loopAnim = true)StopAnimation
void StopAnimation()SetPlayRate
void SetPlayRate(float rate)IsPlayingAnimation
bool IsPlayingAnimation() constGetClipCount
int32_t GetClipCount() constPlayMontage
bool PlayMontage(const std::string& montageName, const std::string& startSection)Montages ride the animator's slots: a montage asset listed on the animator plays by name, over the base pose on the slot it names.
StopMontage
void StopMontage(const std::string& slot, float blendOutSeconds)IsMontagePlaying
bool IsMontagePlaying(const std::string& slot) constGetMontageSection
std::string GetMontageSection(const std::string& slot) constSetAnimBool
void SetAnimBool(const std::string& name, bool value)SetAnimFloat
void SetAnimFloat(const std::string& name, float value)SetAnimTrigger
void SetAnimTrigger(const std::string& name)GetCurrentAnimState
std::string GetCurrentAnimState() constCurrent state name, or empty without a controller.
GetAnimCurveValue
float GetAnimCurveValue(const std::string& curveName) constNamed curve track value evaluated this frame (blend-weighted across the playing clips). MFUNCTION so Visual Script graphs read curves directly.
GetSocketLocalTransform
bool GetSocketLocalTransform(const std::string& socketName, Vec3& outPos, Quat& outRot) const overrideSockets are the skeleton's bones: the named bone's CURRENT global pose (mesh space) from this frame's evaluated animation, falling back to the rest pose before the first evaluation. What makes "attach the sword to hand_r" work.