Between
Editor-time (and play-mode-guarded) single-axis corridor placement. Drives transform.position along one axis so a sibling Renderer's bounds land flush against from at fraction 0 and flush against to at fraction 1, independent of the object's own pivot.
public sealed partial class Between : MonoBehaviour, IPositionDriverMembers
fromfield
public Transform fromtofield
public Transform toorientationfield
public Transform orientationfractionfield
public float fractionaxisfield
public Axis axisEvaluatemethod
public void Evaluate()Recompute transform.position along the configured axis so self's bounds land flush against from at fraction 0 and flush against to at fraction 1 (unclamped past either end). The axis is a world direction by default, or the local axis of orientation when set. Only the position component along that axis is touched.
Nested types
Axisenum
| Value | Description |
|---|---|
X | |
Y | |
Z |