Vixen
02b45cc4
csharp
public struct SplinePlacedComponent

What a spline-placed mesh entity is, so a regeneration can find the ones it made.

Read the guide page for this →

Remarks

⚠ Without a tag, regenerating a road either duplicates every post along it or deletes something an artist placed by hand. A generated entity has to be distinguishable from an authored one, and the only place that distinction can live is on the entity.

⚠ The spline's name rather than a handle, for the reason every asset reference in a scene is a name: a handle names a slot in a world that issued it, and a scene file is read by a world that has not run yet.

Fields and properties (2)

  • public string Spline

    Which spline placed it.

  • public float Distance

    How far along that spline it stands, in metres.

Used by (5)

  • ComponentRegistrationVixen.Rendering.Terrain
  • TerrainSplineSpawnerVixen.Rendering.Terrain
  • TerrainSplineSpawnerTestsVixen.Rendering.Terrain.Tests
  • Vixen_Rendering_Terrain_SplinePlacedComponentSerializerVixen.Rendering.Terrain
  • MaterialIconsVixen.Editor.App