Class ScenePlacementModule
Module that handles placing objects in the scene onto interaction targets
when dragging objects from the project window and translating objects while holding Shift
Inheritance
ScenePlacementModule
Syntax
[MovedFrom("Unity.MARS")]
public class ScenePlacementModule : IModuleDependency<SceneViewInteractionModule>, IModuleDependency<SimulationSceneModule>, IModule
Properties
isDragging
Declaration
public bool isDragging { get; }
Property Value
orientAxis
Axis for the up direction of an object being oriented to a surface
Declaration
public AxisEnum orientAxis { get; set; }
Property Value
orientToSurface
If enabled, objects being placed in the editor should orient to the surface
Declaration
public bool orientToSurface { get; set; }
Property Value
PlacementOverrides
Declaration
public ScenePlacementModule.PlacementOverrideData PlacementOverrides { get; }
Property Value
snapToPivot
If enabled, objects being placed in the editor should snap to the pivot of the target
Declaration
public bool snapToPivot { get; set; }
Property Value
Events
ObjectDropped
Action when a gameobject is dropped onto another gameobject and attached to it.
Declaration
public event Action<GameObject, GameObject> ObjectDropped
Event Type
Explicit Interface Implementations
Declaration
void IModule.LoadModule()
Implements
Declaration
void IModule.UnloadModule()
Implements
Declaration
void IModuleDependency<SceneViewInteractionModule>.ConnectDependency(SceneViewInteractionModule dependency)
Parameters
Implements
Declaration
void IModuleDependency<SimulationSceneModule>.ConnectDependency(SimulationSceneModule dependency)
Parameters
Implements