RopePoweredElementBoard
A class in Root.Township, the global namespace.
Scrolling list board driven by pulling ropes: places its element transforms along a spline and moves them as the ropes are pulled. Used by the friends board and RopeUIList. Client side.
- Listed in Global namespace: Q to R
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
RopePoweredElementBoard() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
15 private and internal fields
| Member | What it is |
|---|---|
private Vector3 alongsideAxis | Local axis used with the spline direction to work out each element's up direction. |
private int boardDisplayCount | How many elements fit on the board at once. |
private List<Transform> elements | Backing field for Elements. |
private float firstValue | Spline position of the first element when scrolled to the start. |
private bool isSettingParent | Whether added elements are parented to the spline transform. |
private float lastValue | Spline position of the last element when scrolled to the end; worked out by CalculateStartValue. |
private float maximumEnabledTime | Elements past this spline position are hidden. |
private float minimumEnabledTime | Elements before this spline position are hidden. |
private float moveToTimeAnimationDuration | Default duration for a move animation. Not read in this class. |
private Coroutine moveToTimeCoroutine | Running move animation, or null. |
private RopeGrab[] ropeGrabs | Ropes whose pulling scrolls the board. |
private float ropeSpeedMultiplier | How much the scroll position changes per unit of rope progress. |
private float spacing | Gap between elements along the spline, in spline position units. |
private BezierSpline spline | Bezier spline the elements sit on. |
private float time | Backing field for Value. |
Properties
Methods
10 private and internal methods
Used in
Members of other types that take, return or hold a RopePoweredElementBoard: