docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PlaneGenerationModule

    Module used to generate planes for a synthetic environment

    Inheritance
    object
    PlaneGenerationModule
    Implements
    IModule
    IUsesPlaneFinding
    IFunctionalitySubscriber<IProvidesPlaneFinding>
    IFunctionalitySubscriber
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.MARS.Data.Synthetic
    Assembly: Unity.MARS.Editor.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public class PlaneGenerationModule : IModule, IUsesPlaneFinding, IFunctionalitySubscriber<IProvidesPlaneFinding>, IFunctionalitySubscriber

    Properties

    provider

    The functionality 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
    bool

    True if planes were destroyed

    Implements

    Unity.XRTools.ModuleLoader.IModule
    IUsesPlaneFinding
    Unity.XRTools.ModuleLoader.IFunctionalitySubscriber<TProvider>
    Unity.XRTools.ModuleLoader.IFunctionalitySubscriber
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)