API references
Connected cord
public abstract class ConnectedCordBase : MonoBehaviour
A basic abstract class that defines an interface for connecting cables to sockets and visualizing this process.
Uses ConnectorProperty to store information for each side of the cable.
public class ConnectedCordPhysics : ConnectedCordBase
Implementation of a physically correct cable.
Uses ConnectedCordHelper to control the connection creation process.
public class ConnectorProperty : ConnectedCordBase
Stores cable plugs settings such as Transform, Renderer, plug type and format
public class ConnectedCordHelper : MonoBehaviour
Responds to user input and manages the process of creating a connection, changing the length of the cable, and visualizing.
Controls the length of the cable and allows you to fix the cable at intermediate points.
Uses the WireControllerRuntime to control the connected cable
public class WireControllerRuntime : MonoBehaviour
Controls the behavior of the connected cable.
Allows you to add and remove segments, as well as freeze the physics of the cable.
Uses TubeRenderer to render the cable.
public class TubeRenderer : MonoBehaviour
Responsible for rendering and rebuilding the mesh of the cable.
Coil of cord
public class CoilOfCord : MonoBehaviour
Provides an interface for creating a ConnectedCordBase instance from a prefab.
Sets basic parameters such as cable length and number of uses.
It is usually used by the player to create cables.
public class UniversalCoilOfCord : CoilOfCord
Expands the capabilities of CoilOfCord by allowing you to set several prefabs for wires, from which the appropriate one for connection will be selected.
Uses CordConnectedPrefabParams to store the configuration of each prefab.
public class CordConnectedPrefabParams
Stores the configuration of the ConnectedCordBase prefab.
Physical sockets
public abstract class PhysicalPortSimple : MonoBehaviour, IHaveSnapPoint
The base class is a simple implementation of a physical socket with all the necessary interfaces.
Defines the plug format - ConnectorFormat.
It has an interface implementation for the correct placement of plugs in the sockets - IHaveSnapPoint.
public class WiredPhysicalPort : PhysicalPortSimple
A specific implementation of the physical socket where the cables are connected.
Defines the types of plug that can be connected to this socket - List.
Selection
public class Selectable : MonoBehaviour
Implements an interface for creating a semi-transparent model on top of an existing one while maintaining its mesh.
It is used to create the effect of highlighting and highlighting an object.
public class SelectionMaterials : SharedResourcesBase
Provides easy access to materials stored in the Resources folder.
public class SelectionProperties
Stores pre-prepared materials and parameters for selecting objects.
Utils
public class ConnectionSnapPoint : MonoBehaviour
It is an anchor point that allows you to correctly position objects relative to each other.
public abstract class SharedResourcesBase<Property_T> where Property_T : Object
A universal class that allows you to conveniently describe and retrieve objects that are stored in the Resources folder.
public interface IHaveSnapPoint
An interface that says that this object can be positioned relative to another object.
public enum WiredConnectorType
The type of wired connection.
You can add your own types to use when configuring your sockets and plugs.
public enum ConnectorFormat
Plug format. It's always Mom or Dad.
The plugs can only be connected to sockets of a different type.