Skip to main content

SplineProfile

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​

MemberWhat it is
SplineProfile()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

MemberWhat it is
AnimationCurve flowFlatFlow speed across the river's width where the surface is flat.
AnimationCurve flowWaterfallFlow speed across the width on steep parts. Blended with flowFlat by surface slope.
float maxValShapes how vertices are spread over the right half of the width.
AnimationCurve meshCurveCross-section curve of the river surface across its width.
float minValShapes how vertices are spread over the left half of the width.
Material splineMaterialMaterial for the generated river mesh.
float triangleDensityStep along each spline segment, as a fraction. Smaller values give more triangles.
bool uvRotationWhether the UVs are rotated.
float uvScaleScale of the UVs along the river.
int vertsInShapeNumber of vertices across the river's width.

Used in​

Members of other types that take, return or hold a SplineProfile: