class

MSkeletalMeshComponent

Module
Game
Header
#include "Game/MSkeletalMeshComponent.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Properties

TypeNameDescription
boolautoPlayDefault true.
std::stringinitialClipAssetThe clip autoPlay starts, as an AnimSequence package (id or path). Wins over initialClip, which only legacy content sets.
int32_tinitialClipDefault 0.
booldualQuaternionSkinningMirrored onto the AnimatorComponent's skinningMethod: dual quaternion keeps a twisted joint's volume where linear blend skinning pinches it. Default false.
boolcapsuleShadowsUE'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.
floatcapsuleRadiusScaleDefault 1.0f.

Constructors

SignatureNameDescription
MSkeletalMeshComponent() = defaultMSkeletalMeshComponent

Public functions

ReturnsNameDescription
voidOnRegister
voidPullFromMirror
boolPlayAnimationAssetPlayback (mirrored AnimatorComponent).
voidPlayAnimation
voidStopAnimation
voidSetPlayRate
boolIsPlayingAnimation
int32_tGetClipCount
boolPlayMontageMontages ride the animator's slots: a montage asset listed on the animator plays by name, over the base pose on the slot it names.
voidStopMontage
boolIsMontagePlaying
std::stringGetMontageSection
voidSetAnimBool
voidSetAnimFloat
voidSetAnimTrigger
std::stringGetCurrentAnimStateCurrent state name, or empty without a controller.
floatGetAnimCurveValueNamed curve track value evaluated this frame (blend-weighted across the playing clips).
boolGetSocketLocalTransformSockets 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

C++
MSkeletalMeshComponent() = default

OnRegister

C++
void OnRegister() override

PullFromMirror

C++
void PullFromMirror(World* ecs, EntityID entity) override

PlayAnimationAsset

C++
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

C++
void PlayAnimation(int32_t clipIndex, bool loopAnim = true)

StopAnimation

C++
void StopAnimation()

SetPlayRate

C++
void SetPlayRate(float rate)

IsPlayingAnimation

C++
bool IsPlayingAnimation() const

GetClipCount

C++
int32_t GetClipCount() const

PlayMontage

C++
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

C++
void StopMontage(const std::string& slot, float blendOutSeconds)

IsMontagePlaying

C++
bool IsMontagePlaying(const std::string& slot) const

GetMontageSection

C++
std::string GetMontageSection(const std::string& slot) const

SetAnimBool

C++
void SetAnimBool(const std::string& name, bool value)

SetAnimFloat

C++
void SetAnimFloat(const std::string& name, float value)

SetAnimTrigger

C++
void SetAnimTrigger(const std::string& name)

GetCurrentAnimState

C++
std::string GetCurrentAnimState() const

Current state name, or empty without a controller.

GetAnimCurveValue

C++
float GetAnimCurveValue(const std::string& curveName) const

Named curve track value evaluated this frame (blend-weighted across the playing clips). MFUNCTION so Visual Script graphs read curves directly.

GetSocketLocalTransform

C++
bool GetSocketLocalTransform(const std::string& socketName, Vec3& outPos, Quat& outRot) const override

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. What makes "attach the sword to hand_r" work.

Generated from Game/MSkeletalMeshComponent.h via game.json · Nov 5, 2026Version 1.0.0