Class WitPoseLibrary
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
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
filePathstring
GetAllPoses()
Get all saved poses
public List<PoseData> GetAllPoses()
Returns
GetPose(string)
Get a pose by name
public PoseData GetPose(string poseName)
Parameters
poseNamestring
Returns
GetPoseCount()
Get pose count
public int GetPoseCount()
Returns
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
filePathstring
RemovePose(string)
Remove a pose from the library
public bool RemovePose(string poseName)
Parameters
poseNamestring
Returns
SavePose(PoseData)
Save a new pose to the library
public bool SavePose(PoseData poseData)
Parameters
poseDataPoseData
Returns
UpdatePose(string, PoseData)
Update an existing pose
public bool UpdatePose(string poseName, PoseData newPoseData)