Class SlicerConfiguration
Static class used for managing configuration and other useful information for the slicer.
Namespace: Slicer.Core
Assembly: 27Slicer.Core.dll
Syntax
public static class SlicerConfiguration
Remarks
Warning
The configuration should not be changed during runtime and instead should only be modified using the "27 Slicer Configuration" window. This window can be found by navigating to Window -> 27 Slicer -> Configuration in the Unity Editor.
Fields
Name | Description |
---|---|
ComponentsManualPath | The path to the reference manuals for components on the web site. |
ManualPath | The path to the reference manuals. |
SiteUrl | The URL to the 27 Slicer web site. |
Properties
Name | Description |
---|---|
CustomConfigurationLoaded | Gets a value indicating whether the configuration has been customized and loaded from file. |
FinalizeOnStart | When enabled all slicers will be finalized immediately after they start at runtime. |
OptimizeFinalizedSlicedMesh | When finalizing a sliced mesh also Optimize it. |
RefreshSlicesOnUpdate | Optimization - When enabled the slicer will update every frame.
It is recommended to leave this disabled and call |
SetFinalizedSlicedMeshToBeNoLongerReadable | When finalizing a sliced mesh also set it to be no longer readable. |
SkipUnmodifiedSlices | Optimization - When enabled the slicer will only update if the slicer has been modified. It is recommended to leave this enabled but is useful for debugging. |
UseFinalizedSlicedMeshComponent | When finalizing sliced meshes also initialize a FinalizedSlicedMesh component that will manage the lifecycle of the sliced mesh. e.g. The sliced mesh will be destroyed when the |
Methods
Name | Description |
---|---|
LoadConfiguration() | Loads the configuration. If a custom configuration is being used the configuration file asset will be loaded and will overwrite the default configuration. |
ToString() |