Class Manus::Skeletons::Skeleton
ClassList > Manus > Skeletons > Skeleton
Skeleton handles all animation based on Polygon data fromManus Core.
Inherits the following classes: MonoBehaviour
Public Attributes
| Type | Name |
|---|---|
| bool | debugAnimatedSkeleton |
| bool | debugColliders |
| bool | enableHaptics = false |
| bool | isLocalPlayer = true |
| OnDataApplied | onDataApplied |
| uint? | sessionId |
| SkeletonData | skeletonData |
| uint? | sklSetupIdx |
Public Functions
| Type | Name |
|---|---|
| bool | AllocateChains () Setup and create chains on skeleton and update their names. |
| void | ApplyData (CoreSDK.Skeleton p_Skeleton, CoreSDK.ManusTimestamp? p_Time=null) Apply Manus Core skeleton data to plugin skeleton. |
| void | ContinueAnimating () Continue animating after resetting it to the bindpose. |
| void | LoadSkeleton () Load skeleton from Manus Development Dashboard. |
| delegate void | OnDataApplied () |
| bool | PrepareSkeleton () Generate rotation offsets for skeleton. |
| void | ReSetupNodeTransforms () Redo node transform values. |
| void | ResetSkeletonData () Resets SkeletonData and clears anti scale nodes. |
| void | ResetToBindPose (bool p_AlsoResetScale=false) Reset to original starting pose. |
| void | SendSkeleton () Send skeleton to Manus Core and setup skeleton to allow for scaling. |
| void | SendSkeletonToDevTools () Send skeleton to Manus Development Dashboard. |
| void | SetupHands () Setup hands by adding missing hand and finger haptics components. |
| List< MeshSetup > | SetupMeshes () Find and setup all meshes in the skeleton. |
| void | SetupNodes () Create nodes from mesh transforms and add them to the skeleton. |
| void | UpdateEnableHaptics () Update the boolean associated to the haptics enabled based on the input from the user in the GUI. |
Protected Functions
| Type | Name |
|---|---|
| virtual void | OnNodeCreated (Node p_Node) Called upon node creation. |
| virtual void | OnNodeSetup () Called on node setup. |
| virtual void | UpdateNames () Update names of skeleton, chains and nodes. |
| void | UpdateNodesAndChainsNames () Update all names of chains and nodes. |
Public Attributes Documentation
variable debugAnimatedSkeleton
variable debugColliders
variable enableHaptics
variable isLocalPlayer
variable onDataApplied
variable sessionId
variable skeletonData
variable sklSetupIdx
Public Functions Documentation
function AllocateChains
Setup and create chains on skeleton and update their names.
function ApplyData
Apply Manus Core skeleton data to plugin skeleton.
inline void Manus::Skeletons::Skeleton::ApplyData (
CoreSDK.Skeleton p_Skeleton,
CoreSDK.ManusTimestamp ? p_Time=null
)
Parameters:
p_SkeletonSkeleton data to apply
function ContinueAnimating
Continue animating after resetting it to the bindpose.
function LoadSkeleton
Load skeleton from Manus Development Dashboard.
function OnDataApplied
function PrepareSkeleton
Generate rotation offsets for skeleton.
function ReSetupNodeTransforms
Redo node transform values.
function ResetSkeletonData
Resets SkeletonData and clears anti scale nodes.
function ResetToBindPose
Reset to original starting pose.
function SendSkeleton
Send skeleton to Manus Core and setup skeleton to allow for scaling.
function SendSkeletonToDevTools
Send skeleton to Manus Development Dashboard.
function SetupHands
Setup hands by adding missing hand and finger haptics components.
function SetupMeshes
Find and setup all meshes in the skeleton.
function SetupNodes
Create nodes from mesh transforms and add them to the skeleton.
function UpdateEnableHaptics
Update the boolean associated to the haptics enabled based on the input from the user in the GUI.
Protected Functions Documentation
function OnNodeCreated
Called upon node creation.
Parameters:
p_Node
function OnNodeSetup
Called on node setup.
function UpdateNames
Update names of skeleton, chains and nodes.
function UpdateNodesAndChainsNames
Update all names of chains and nodes.
The documentation for this class was generated from the following file api/unity-plugin/Scripts/Skeletons/Skeleton.cs