Skip to main content

RopePersistManager

A static class in Root.Township, the global namespace.

Leftover from the Ultimate Rope Editor asset that records rope transform data. In this build only the helpers remain and nothing calls them.

Fields​

1 private and internal field
MemberWhat it is
private static Dictionary<int, RopePersistManager.RopeData> s_hashInstanceID2RopeDataStored rope data by rope instance ID. Never filled in this build.

Methods​

2 private and internal methods
MemberWhat it is
private static RopePersistManager.RopeData.TransformInfo ComputeTransformInfo(UltimateRope rope, GameObject node, GameObject parent)Records a rope node's name, parent, position and rotation relative to the parent, scale and kinematic flags.
private static void SetTransformInfo(RopePersistManager.RopeData.TransformInfo transformInfo, GameObject node)Restores a node's position, rotation and scale from recorded transform info.