|
TrackFlow Pro Documentation 1
Generate roller coasters, railroads, conveyors and more with a physics aware spline and meshing system.
|
Editor-only selection state for TrackFlowSpline elements. More...
Static Public Member Functions | |
| static void | SetActiveSpline (TrackFlowSpline spline, bool clearKnots=true) |
| Set the active selected spline, optionally clear the currently selected knots. | |
| static void | SetSelectedKnots (TrackFlowSpline spline, IEnumerable< int > indices) |
| Set the selection state of knots from a TrackFlowSpline. | |
| static void | Clear () |
Properties | |
| static TrackFlowSpline | ActiveSpline [get] |
| static IReadOnlyList< int > | SelectedKnots [get] |
| static int | PrimaryKnotIndex [get] |
Events | |
| static Action | Changed |
Static Private Member Functions | |
| static | TrackFlowEditorSelection () |
| static void | OnUnitySelectionChanged () |
Static Private Attributes | |
| static int | _activeSplineInstanceId |
| static readonly List< int > | _selectedKnots = new List<int>(4) |
Editor-only selection state for TrackFlowSpline elements.
Unity Splines has a concept of "selected element" (knot/tangent/etc) that drives overlays. TrackFlowSpline is a single GameObject, so we provide this lightweight state holder to coordinate Scene handles, Inspector ListView selection, and the Scene overlay.
|
staticprivate |
|
static |
|
staticprivate |
|
static |
Set the active selected spline, optionally clear the currently selected knots.
| spline | |
| clearKnots |
|
static |
Set the selection state of knots from a TrackFlowSpline.
| spline | |
| indices |
|
staticprivate |
|
staticprivate |
|
staticget |
|
staticget |
|
staticget |
|
static |