TrackFlow Pro Documentation 1
Generate roller coasters, railroads, conveyors and more with a physics aware spline and meshing system.
Loading...
Searching...
No Matches
TrackFlowPro.Editor.TrackFlowMeshPrefabExporter Class Reference

Export prefabs generated by the Runtime.Core.Meshing.TrackFlowSpawner. This can be triggered with a button in the mesh menu of the spawner object. More...

Static Public Member Functions

static void ExportPrefabFromMeshFilter (MeshFilter mf)

Private Types

enum  PivotMode { Keep = 0 , Center = 1 , StartMinZ = 2 }

Static Private Member Functions

static void ExportPrefabFromMeshFilter (MenuCommand command)
static void RebakeMesh (Mesh mesh, Transform sourceTransform, bool verticesAreWorldBaked, PivotMode pivotMode)
static string SanitizeFileName (string name)

Detailed Description

Export prefabs generated by the Runtime.Core.Meshing.TrackFlowSpawner. This can be triggered with a button in the mesh menu of the spawner object.

Member Enumeration Documentation

◆ PivotMode

Enumerator
Keep 
Center 
StartMinZ 

Member Function Documentation

◆ ExportPrefabFromMeshFilter() [1/2]

void TrackFlowPro.Editor.TrackFlowMeshPrefabExporter.ExportPrefabFromMeshFilter ( MenuCommand command)
staticprivate

◆ ExportPrefabFromMeshFilter() [2/2]

void TrackFlowPro.Editor.TrackFlowMeshPrefabExporter.ExportPrefabFromMeshFilter ( MeshFilter mf)
static

◆ RebakeMesh()

void TrackFlowPro.Editor.TrackFlowMeshPrefabExporter.RebakeMesh ( Mesh mesh,
Transform sourceTransform,
bool verticesAreWorldBaked,
PivotMode pivotMode )
staticprivate

◆ SanitizeFileName()

string TrackFlowPro.Editor.TrackFlowMeshPrefabExporter.SanitizeFileName ( string name)
staticprivate

The documentation for this class was generated from the following file: