docs.unity3d.com
    目次を表示する/隠す

    Class PlaneGenerationModule

    Module used to generate planes for a synthetic environment

    Inheritance
    Object
    PlaneGenerationModule
    Namespace: UnityEditor.MARS.Data.Synthetic
    Syntax
    [MovedFrom("Unity.MARS")]
    public class PlaneGenerationModule : IModule, IUsesPlaneFinding, IFunctionalitySubscriber<IProvidesPlaneFinding>, IFunctionalitySubscriber

    Properties

    provider

    Declaration
    public IProvidesPlaneFinding provider { get; set; }
    Property Value
    Type Description
    IProvidesPlaneFinding
    Implements
    IFunctionalitySubscriber<TProvider>.provider

    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

    True if planes were destroyed

    Explicit Interface Implementations

    IModule.LoadModule()

    Declaration
    void IModule.LoadModule()
    Implements
    IModule.LoadModule()

    IModule.UnloadModule()

    Declaration
    void IModule.UnloadModule()
    Implements
    IModule.UnloadModule()

    Extension Methods

    IUsesPlaneFindingMethods.GetPlanes(IUsesPlaneFinding, List<MRPlane>)
    IUsesPlaneFindingMethods.SubscribePlaneAdded(IUsesPlaneFinding, Action<MRPlane>)
    IUsesPlaneFindingMethods.UnsubscribePlaneAdded(IUsesPlaneFinding, Action<MRPlane>)
    IUsesPlaneFindingMethods.SubscribePlaneUpdated(IUsesPlaneFinding, Action<MRPlane>)
    IUsesPlaneFindingMethods.UnsubscribePlaneUpdated(IUsesPlaneFinding, Action<MRPlane>)
    IUsesPlaneFindingMethods.SubscribePlaneRemoved(IUsesPlaneFinding, Action<MRPlane>)
    IUsesPlaneFindingMethods.UnsubscribePlaneRemoved(IUsesPlaneFinding, Action<MRPlane>)
    IUsesPlaneFindingMethods.StopDetectingPlanes(IUsesPlaneFinding)
    IUsesPlaneFindingMethods.StartDetectingPlanes(IUsesPlaneFinding)
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)