Class PlaneGenerationModule
Module used to generate planes for a synthetic environment
Namespace: UnityEditor.MARS.Data.Synthetic
Syntax
public class PlaneGenerationModule : IModule, IUsesPlaneFinding, IFunctionalitySubscriber<IProvidesPlaneFinding>
Properties
provider
Declaration
public IProvidesPlaneFinding provider { get; set; }
Property Value
Type | Description |
---|---|
IProvidesPlaneFinding |
Methods
ExtractPlanes(PlaneExtractionSettings)
Run planes extraction from the PlanesExtractionManager
Declaration
public static void ExtractPlanes(PlaneExtractionSettings settings)
Parameters
Type | Name | Description |
---|---|---|
PlaneExtractionSettings | settings | Settings to use when running extraction |
SavePlanesFromSimulation(GameObject)
Save all plane data from the current simulation to the synthetic environment
Declaration
public void SavePlanesFromSimulation(GameObject environmentRoot)
Parameters
Type | Name | Description |
---|---|---|
GameObject | environmentRoot | Root game object for the synthetic environment |
TryDestroyPreviousPlanes(GameObject, String, UndoBlock)
Try to destroy game objects in the synthetic environment that have the GeneratedPlanesRoot
component
Declaration
public static bool TryDestroyPreviousPlanes(GameObject environmentRoot, string confirmDestroyDialogTitle, UndoBlock undoBlock)
Parameters
Type | Name | Description |
---|---|---|
GameObject | environmentRoot | Synthetic environment root game object |
String | confirmDestroyDialogTitle | Confirmation dialog title |
UndoBlock | undoBlock | Undo block used for editing action |
Returns
Type | Description |
---|---|
Boolean |
|