Table of Contents

Class WitPoseLibrary

Namespace
WitShells.WitPose

Singleton ScriptableObject that stores and manages all saved poses Automatically loads from Resources and persists between sessions

public class WitPoseLibrary : ScriptableObject
Inheritance
WitPoseLibrary

Properties

Instance

Get singleton instance, loading from Resources or creating if needed

public static WitPoseLibrary Instance { get; }

Property Value

WitPoseLibrary

Methods

ClearAllPoses()

Clear all poses from the library

public void ClearAllPoses()

ExportPosesToJSON(string)

Export all poses to JSON file

public void ExportPosesToJSON(string filePath)

Parameters

filePath string

GetAllPoses()

Get all saved poses

public List<PoseData> GetAllPoses()

Returns

List<PoseData>

GetPose(string)

Get a pose by name

public PoseData GetPose(string poseName)

Parameters

poseName string

Returns

PoseData

GetPoseCount()

Get pose count

public int GetPoseCount()

Returns

int

GetPoseNames()

Get pose names for dropdown/selection

public string[] GetPoseNames()

Returns

string[]

ImportPosesFromJSON(string)

Import poses from JSON file

public void ImportPosesFromJSON(string filePath)

Parameters

filePath string

RemovePose(string)

Remove a pose from the library

public bool RemovePose(string poseName)

Parameters

poseName string

Returns

bool

SavePose(PoseData)

Save a new pose to the library

public bool SavePose(PoseData poseData)

Parameters

poseData PoseData

Returns

bool

UpdatePose(string, PoseData)

Update an existing pose

public bool UpdatePose(string poseName, PoseData newPoseData)

Parameters

poseName string
newPoseData PoseData

Returns

bool