PositionLerp
A class in Root.Township, the global namespace.
Moves its object between two local positions by a progress value, for example from a UnityEvent.
- Listed in Global namespace: P
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
PositionLerp() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
Methods
| Member | What it is |
|---|---|
void SetPosition(float progress) | Sets the local position between position0 (0) and position1 (1). |