A class in Root.Township, the global namespace.
A preset of river mesh settings that a RamSpline can load (from the R.A.M. river tool).
- Listed in Global namespace: S
- Inherits or implements
ScriptableObject
- Attributes
CreateAssetMenu
Constructors
| Member | What it is |
|---|
SplineProfile() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
| Member | What it is |
|---|
AnimationCurve flowFlat | Flow speed across the river's width where the surface is flat. |
AnimationCurve flowWaterfall | Flow speed across the width on steep parts. Blended with flowFlat by surface slope. |
float maxVal | Shapes how vertices are spread over the right half of the width. |
AnimationCurve meshCurve | Cross-section curve of the river surface across its width. |
float minVal | Shapes how vertices are spread over the left half of the width. |
Material splineMaterial | Material for the generated river mesh. |
float triangleDensity | Step along each spline segment, as a fraction. Smaller values give more triangles. |
bool uvRotation | Whether the UVs are rotated. |
float uvScale | Scale of the UVs along the river. |
int vertsInShape | Number of vertices across the river's width. |
Used in
Members of other types that take, return or hold a SplineProfile: